private static ChildBoxInfo lookForBlockContent(List styleables) { ChildBoxInfo result = new ChildBoxInfo(); for (Iterator i = styleables.iterator(); i.hasNext();) { Styleable s = (Styleable) i.next(); if (!s.getStyle().isLayedOutInInlineContext()) { result.setContainsBlockLevelContent(true); break; } } return result; }
private static ChildBoxInfo lookForBlockContent(List styleables) { ChildBoxInfo result = new ChildBoxInfo(); for (Iterator i = styleables.iterator(); i.hasNext();) { Styleable s = (Styleable) i.next(); if (!s.getStyle().isLayedOutInInlineContext()) { result.setContainsBlockLevelContent(true); break; } } return result; }
public static void createChildren(LayoutContext c, BlockBox parent) { List children = new ArrayList(); ChildBoxInfo info = new ChildBoxInfo(); createChildren(c, parent, parent.getElement(), children, info, false); boolean parentIsNestingTableContent = isNestingTableContent(parent.getStyle().getIdent( CSSName.DISPLAY)); if (!parentIsNestingTableContent && !info.isContainsTableContent()) { resolveChildren(c, parent, children, info); } else { stripAllWhitespace(children); if (parentIsNestingTableContent) { resolveTableContent(c, parent, children, info); } else { resolveChildTableContent(c, parent, children, info, IdentValue.TABLE_CELL); } } }
ChildBoxInfo info = new ChildBoxInfo(); CalculatedStyle pageStyle = new EmptyStyle().deriveStyle(pageInfo.getPageStyle());
ChildBoxInfo info = new ChildBoxInfo(); CalculatedStyle pageStyle = new EmptyStyle().deriveStyle(pageInfo.getPageStyle());
ChildBoxInfo info = new ChildBoxInfo(); info.setContainsTableContent(true); info.setLayoutRunningBlocks(true);
ChildBoxInfo info = new ChildBoxInfo(); info.setContainsTableContent(true); info.setLayoutRunningBlocks(true);
public static void createChildren(LayoutContext c, BlockBox parent) { List children = new ArrayList(); ChildBoxInfo info = new ChildBoxInfo(); createChildren(c, parent, parent.getElement(), children, info, false); boolean parentIsNestingTableContent = isNestingTableContent(parent.getStyle().getIdent( CSSName.DISPLAY)); if (!parentIsNestingTableContent && !info.isContainsTableContent()) { resolveChildren(c, parent, children, info); } else { stripAllWhitespace(children); if (parentIsNestingTableContent) { resolveTableContent(c, parent, children, info); } else { resolveChildTableContent(c, parent, children, info, IdentValue.TABLE_CELL); } } }