int xoff = -rect.x; int yoff = -rect.y;
int xoff = 0; int yoff = 0; BlockFormattingContext bfc = c.getBlockFormattingContext(); xoff += bfc.getX(); yoff += bfc.getY(); xoff += bfc.getMaster().getPaddingEdge().left; yoff += bfc.getMaster().getPaddingEdge().top;
    public static void paintAbsoluteBox( Context c, Box block, boolean restyle ) {        Rectangle rect = c.getExtents();        //why this?        int xoff = -rect.x;        int yoff = -rect.y;        if ( block.top_set ) {            yoff += block.top;        }        if ( block.right_set ) {            xoff = -rect.x + rect.width - block.width - block.right;        }        if ( block.left_set ) {            xoff = block.left;        }        if ( block.bottom_set ) {            yoff = -rect.y + rect.height - block.height - block.bottom;        }        c.translate( xoff, yoff );        paintNormal( c, block, restyle );        c.translate( -xoff, -yoff );    }