Element to an
InlineBox or a BlockBox (or some subclass of
BlockBox), but the tree is reorganized according to the CSS rules.
This includes inserting anonymous block and inline boxes, anonymous table
content, and :before and :after content. White
space is also normalized at this point. Table columns and table column groups
are added to the table which owns them, but are not created as regular boxes.
Floated and absolutely positioned content is always treated as inline
content for purposes of inserting anonymous block boxes and calculating
the kind of content contained in a given block box.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static void | |
| private static boolean | |
| private static void | createAnonymousBlock(SharedContext c, Box parent, List<Styleable> inline, List<InlineBox> savedParents)
|
| private static void | createAnonymousBlock(SharedContext c, Box parent, List<Styleable> inline, List<InlineBox> savedParents, IdentValue display)
|
| private static void | createAnonymousTableContent(LayoutContext c, BlockBox source, IdentValue next, List<Styleable> childrenForAnonymous, List<Styleable> childrenWithAnonymous)
|
| private static BlockBox | |
| private static Styleable | createChildBlockBox(LayoutContext c, BoxBuilder.
|
| public static void | |
| private static void | createChildren(LayoutContext c, BlockBox blockParent, Element parent, List<Styleable> children, BoxBuilder.
|
| private static void | |
| private static void | createElementChild(LayoutContext c, Element parent, BlockBox blockParent, Node working, List<Styleable> children, BoxBuilder.
|
| private static BlockBox | createFootnoteBody(LayoutContext c, Element element, CalculatedStyle style)
Creates the footnote body to put at the bottom of the page inside a page's footnote area. |
| private static Element | createFootnoteCallAnchor(LayoutContext c, Element parent)
Used to create the anchor element to link to the footnote body for the footnote-call pseudo element. |
| private static Element | createFootnoteTarget(LayoutContext c, Element parent)
Creates an element with id for the footnote-marker pseudo element so we can link to it from the footnote-call pseduo element. |
| private static List | Returns: The generated box(es). Typically oneBlockBox or multiple inline boxes.The containing element where the pseudo element appears.
For element, String span::before the element would be a span.Examples include peName, CalculatedStyle before, after,
footnote-call and footnote-marker.The child style for this pseudo element. For style, PropertyValue span::before
this would include all the styles set explicitly on ::before as well as
those that inherit from span following the cascade rules.The values of the property, BoxBuilder.content CSS property.In/out param. Whether the resultant box(es) contain block level content. infoCreates generated content boxes for pseudo elements such as |
| private static List | createGeneratedContentList(LayoutContext c, Element element, List<PropertyValue> values, String peName, CalculatedStyle style, int mode, BoxBuilder.
|
| private static List | createGeneratedMarginBoxContent(LayoutContext c, Element element, PropertyValue property, CalculatedStyle style, BoxBuilder.
|
| private static InlineBox | |
| private static void | createInlineChildren(LayoutContext c, Element parent, List<Styleable> children, BoxBuilder.
|
| private static TableCellBox | |
| public static TableBox | createMarginTable(LayoutContext c, PageInfo pageInfo, MarginBoxName[] names, int height, int direction)
|
| public static BlockBox | |
| private static InlineBox | Returns: the previousIB.Attempts to divide a Text node further into directional text runs, either LTR or RTL. |
| private static InlineBox | doFakeBidi(LayoutContext c, Text textNode, Element parent, CalculatedStyle parentStyle, InlineBox previousIB, List<Styleable> children)
|
| private static String | |
| private static IdentValue | |
| private static IdentValue | |
| public static BlockBox | |
| private static void | insertAnonymousBlocks(SharedContext c, Box parent, List<Styleable> children, boolean layoutRunningBlocks)
|
| private static void | insertGeneratedContent(LayoutContext c, Element element, CalculatedStyle parentStyle, String peName, List<Styleable> children, BoxBuilder.
|
| private static boolean | |
| private static boolean | |
| public static boolean | |
| private static boolean | isGeneratedElement(Element element)
Don't output elements that have been artificially created to support footnotes and content property images. |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static void | |
| private static void | |
| private static BoxBuilder. | |
| private static CounterFunction | |
| private static boolean | |
| private static void | rebalanceInlineContent(List<Styleable> content)
Makes sure that any |
| private static BlockBox | reorderTableContent(LayoutContext c, TableBox table)
Reorganizes a table so that the header is the first row group and the footer the last. |
| private static void | resolveChildren(LayoutContext c, BlockBox owner, List<Styleable> children, BoxBuilder.
|
| private static void | resolveChildTableContent(LayoutContext c, BlockBox parent, List<Styleable> children, BoxBuilder.
Handles the situation when we find table content, but our parent is not table related. |
| private static void | |
| private static void | resolveTableContent(LayoutContext c, BlockBox parent, List<Styleable> children, BoxBuilder.
Handles the situation when our current parent is table related. |
| private static InlineBox | |
| private static void | splitParagraphs(LayoutContext c, Document document)
Split the document into paragraphs for use in analyzing bi-directional text runs. |
| private static void | |
| private static List | wrapGeneratedContent(LayoutContext c, Element element, String peName, CalculatedStyle style, BoxBuilder.
|