chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.domsnapshot / LayoutTreeNode

LayoutTreeNode

data class LayoutTreeNode

Details of an element in the DOM tree with a LayoutObject.

Constructors

<init>

Details of an element in the DOM tree with a LayoutObject.

LayoutTreeNode(domNodeIndex: Int, boundingBox: Rect, layoutText: String? = null, inlineTextNodes: List<InlineTextBox>? = null, styleIndex: Int? = null, paintOrder: Int? = null, isStackingContext: Boolean? = null)

Properties

boundingBox

The bounding box in document coordinates. Note that scroll offset of the document is ignored.

val boundingBox: Rect

domNodeIndex

The index of the related DOM node in the domNodes array returned by getSnapshot.

val domNodeIndex: Int

inlineTextNodes

The post-layout inline text nodes, if any.

val inlineTextNodes: List<InlineTextBox>?

isStackingContext

Set to true to indicate the element begins a new stacking context.

val isStackingContext: Boolean?

layoutText

Contents of the LayoutText, if any.

val layoutText: String?

paintOrder

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.

val paintOrder: Int?

styleIndex

Index into the computedStyles array returned by getSnapshot.

val styleIndex: Int?