if (pendingFloats.size() > 0) { block.y = 0; }
    public static FloatedBlockBox generateFloated(            LayoutContext c, Content content, int avail, LineBox curr_line, List pendingFloats) {        Rectangle oe = c.getExtents();        c.setExtents(new Rectangle(oe));                MarkerData markerData = c.getCurrentMarkerData();        c.setCurrentMarkerData(null);            c.setFloatingY(curr_line.y + ((FloatedBlockContent)content).getMarginFromPrevious());        FloatedBlockBox block = new FloatedBlockBox();        block.setContainingBlock(curr_line.getParent());        block.setContainingLayer(curr_line.getContainingLayer());        block.element = content.getElement();        Boxing.realLayout(c, block, content);                if (! block.getStyle().isFloated()) {            throw new XRRuntimeException("Invalid call to generateFloatedBlock(); where float: none ");        }                c.setCurrentMarkerData(markerData);            c.setExtents(oe);                if (pendingFloats.size() > 0 || block.getWidth() > avail) {            pendingFloats.add(block);            c.getBlockFormattingContext().getFloatManager().removeFloat(block);            c.getLayer().removeFloat(block);            block.setPending(true);        }                return block;    }