boolean didRelayout = false;
boolean clearedPage = false; int clearDelta = 0;
    private static void positionFloatOnPage(            final LayoutContext c, FloatedBlockContent content,             LineBox curr_line, FloatedBlockBox block, boolean movedVertically) {        boolean didRelayout = false;                if (block.getStyle().isForcePageBreakBefore() ||                 (block.getStyle().isAvoidPageBreakInside() &&                         block.crossesPageBreak(c))) {            didRelayout = true;            block.moveToNextPage(c);            block.calcCanvasLocation();            block.detach();            Boxing.layout(c, block, content);            c.getBlockFormattingContext().floatBox(c, (FloatedBlockBox) block);        }                if (! didRelayout && movedVertically) {            block.detach();            Boxing.layout(c, block, content);            c.getBlockFormattingContext().floatBox(c, (FloatedBlockBox) block);        }    }