-
public final class LayoutTreeNodeDetails of an element in the DOM tree with a LayoutObject.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerdomNodeIndexprivate final RectboundingBoxprivate final StringlayoutTextprivate final List<InlineTextBox>inlineTextNodesprivate final IntegerstyleIndexprivate final IntegerpaintOrderprivate final BooleanisStackingContext
-
Constructor Summary
Constructors Constructor Description LayoutTreeNode(Integer domNodeIndex, Rect boundingBox, String layoutText, List<InlineTextBox> inlineTextNodes, Integer styleIndex, Integer paintOrder, Boolean isStackingContext)
-
Method Summary
Modifier and Type Method Description final Integercomponent1()final Rectcomponent2()final Stringcomponent3()final List<InlineTextBox>component4()final Integercomponent5()final Integercomponent6()final Booleancomponent7()final LayoutTreeNodecopy(Integer domNodeIndex, Rect boundingBox, String layoutText, List<InlineTextBox> inlineTextNodes, Integer styleIndex, Integer paintOrder, Boolean isStackingContext)final IntegergetDomNodeIndex()The index of the related DOM node in the domNodesarray returned bygetSnapshot.final RectgetBoundingBox()The bounding box in document coordinates. final StringgetLayoutText()Contents of the LayoutText, if any. final List<InlineTextBox>getInlineTextNodes()The post-layout inline text nodes, if any. final IntegergetStyleIndex()Index into the computedStylesarray returned bygetSnapshot.final IntegergetPaintOrder()Global paint order index, which is determined by the stacking order of the nodes. final BooleangetIsStackingContext()Set to true to indicate the element begins a new stacking context. -
-
Method Detail
-
component1
final Integer component1()
-
component2
final Rect component2()
-
component3
final String component3()
-
component4
final List<InlineTextBox> component4()
-
component5
final Integer component5()
-
component6
final Integer component6()
-
component7
final Boolean component7()
-
copy
final LayoutTreeNode copy(Integer domNodeIndex, Rect boundingBox, String layoutText, List<InlineTextBox> inlineTextNodes, Integer styleIndex, Integer paintOrder, Boolean isStackingContext)
-
getDomNodeIndex
final Integer getDomNodeIndex()
The index of the related DOM node in the
domNodesarray returned bygetSnapshot.
-
getBoundingBox
final Rect getBoundingBox()
The bounding box in document coordinates. Note that scroll offset of the document is ignored.
-
getLayoutText
final String getLayoutText()
Contents of the LayoutText, if any.
-
getInlineTextNodes
final List<InlineTextBox> getInlineTextNodes()
The post-layout inline text nodes, if any.
-
getStyleIndex
final Integer getStyleIndex()
Index into the
computedStylesarray returned bygetSnapshot.
-
getPaintOrder
final Integer getPaintOrder()
Global paint order index, which is determined by the stacking order of the nodes. Nodes that are painted together will have the same index. Only provided if includePaintOrder in getSnapshot was true.
-
getIsStackingContext
final Boolean getIsStackingContext()
Set to true to indicate the element begins a new stacking context.
-
-
-
-