553554555556557558559560561562563
if (linebox instanceof ParagraphPoolBox == false) { throw new NullPointerException("Line must not be null"); } paragraph.addGeneratedChild(linebox); } } protected TextAlignmentProcessor create(final CSSValue alignment, final CSSValue lastLine)
if (linebox instanceof ParagraphPoolBox == false) { throw new NullPointerException("Line must not be null"); } paragraph.addGeneratedChild(linebox); } } protected TextAlignmentProcessor create(CSSValue alignment, CSSValue lastLine)
300301302303304305306307308309310
} else { final RenderNode node = box; box = (RenderBox) contexts.peek(); box.addGeneratedChild(node); } continue; } if (element instanceof StartSequenceElement)
331332333334335336337338339340341
final RenderNode child = element.getNode().derive(true); child.setX(elementPositions[i]); child.setWidth(elementDimensions[i]); if (box.isPreserveSpace() != false) { box.addGeneratedChild(child); continue; } if (child.isIgnorableForRendering()) {
344345346347348349350351352353354
else { for (int j = 0; j < pendingElements.size(); j++) { final RenderNode node = (RenderNode) pendingElements.get(j); box.addGeneratedChild(node); } pendingElements.clear(); box.addGeneratedChild(child); } }
347348349350351352353354355356357
{ final RenderNode node = (RenderNode) pendingElements.get(j); box.addGeneratedChild(node); } pendingElements.clear(); box.addGeneratedChild(child); } } // Remove all spacers and other non printable content that might // look ugly at the beginning of a new line ..