private static void layoutBlockChild( LayoutContext c, BlockBox parent, BlockBox child, boolean needPageClear, int childOffset, int trimmedPageCount, LayoutState layoutState) { layoutBlockChild0(c, parent, child, needPageClear, childOffset, trimmedPageCount); BreakAtLineContext bContext = child.calcBreakAtLineContext(c); if (bContext != null) { c.setBreakAtLineContext(bContext); c.restoreStateForRelayout(layoutState); child.reset(c); layoutBlockChild0(c, parent, child, needPageClear, childOffset, trimmedPageCount); c.setBreakAtLineContext(null); } }
private static void layoutBlockChild( LayoutContext c, BlockBox parent, BlockBox child, boolean needPageClear, int childOffset, int trimmedPageCount, LayoutState layoutState) { layoutBlockChild0(c, parent, child, needPageClear, childOffset, trimmedPageCount); BreakAtLineContext bContext = child.calcBreakAtLineContext(c); if (bContext != null) { c.setBreakAtLineContext(bContext); c.restoreStateForRelayout(layoutState); child.reset(c); layoutBlockChild0(c, parent, child, needPageClear, childOffset, trimmedPageCount); c.setBreakAtLineContext(null); } }
c.restoreStateForRelayout(relayoutData.getLayoutState()); relayoutData.setChildOffset(childOffset); boolean mayCheckKeepTogether = false; boolean keepWithInline = child.isNeedsKeepWithInline(c); if (tryToAvoidPageBreak || needPageClear || keepWithInline) { c.restoreStateForRelayout(relayoutData.getLayoutState()); child.reset(c); layoutBlockChild( c.restoreStateForRelayout(relayoutData.getLayoutState()); child.reset(c); layoutBlockChild(
c.restoreStateForRelayout(relayoutData.getLayoutState()); relayoutData.setChildOffset(childOffset); boolean mayCheckKeepTogether = false; boolean keepWithInline = child.isNeedsKeepWithInline(c); if (tryToAvoidPageBreak || needPageClear || keepWithInline) { c.restoreStateForRelayout(relayoutData.getLayoutState()); child.reset(c); layoutBlockChild( c.restoreStateForRelayout(relayoutData.getLayoutState()); child.reset(c); layoutBlockChild(
boolean keepWithInline = child.isNeedsKeepWithInline(c); if (tryToAvoidPageBreak || needPageClear || keepWithInline) { c.restoreStateForRelayout(relayoutData.getLayoutState()); child.reset(c); layoutBlockChild( c.restoreStateForRelayout(relayoutData.getLayoutState()); child.reset(c); layoutBlockChild(
boolean keepWithInline = child.isNeedsKeepWithInline(c); if (tryToAvoidPageBreak || needPageClear || keepWithInline) { c.restoreStateForRelayout(relayoutData.getLayoutState()); child.reset(c); layoutBlockChild( c.restoreStateForRelayout(relayoutData.getLayoutState()); child.reset(c); layoutBlockChild(