if (child.isRequiresLayout()) {
if (child.isRequiresLayout() && ! child.getMaster().getStyle().isAlternateFlow()) {
    private void layoutAbsoluteChildren(LayoutContext c) {        List children = getChildren();        if (children.size() > 0) {            LayoutState state = c.captureLayoutState();            for (int i = 0; i < children.size(); i++) {                Layer child = (Layer)children.get(i);                if (child.isRequiresLayout()) {                    layoutAbsoluteChild(c, child);                    if (child.getMaster().getStyle().isAvoidPageBreakInside() &&                            child.getMaster().crossesPageBreak(c)) {                        ((BlockBox)child.getMaster()).setNeedPageClear(true);                        child.getMaster().detach();                        layoutAbsoluteChild(c, child);                        ((BlockBox)child.getMaster()).setNeedPageClear(false);                    }                    child.setRequiresLayout(false);                    child.finish(c);                }            }            c.restoreLayoutState(state);        }    }