struct Protocol::DOMSnapshot::LayoutTreeNode
- Protocol::DOMSnapshot::LayoutTreeNode
- Struct
- Value
- Object
Overview
Details of an element in the DOM tree with a LayoutObject.
Included Modules
- JSON::Serializable
Defined in:
protocol/dom_snapshot.crConstructors
Instance Method Summary
-
#bounding_box : DOM::Rect
The bounding box in document coordinates.
-
#dom_node_index : Int::Primitive
The index of the related DOM node in the
domNodes
array returned bygetSnapshot
. -
#inline_text_nodes : Array(InlineTextBox) | Nil
The post-layout inline text nodes, if any.
-
#is_stacking_context : Bool | Nil
Set to true to indicate the element begins a new stacking context.
-
#layout_text : String | Nil
Contents of the LayoutText, if any.
-
#paint_order : Int::Primitive | Nil
Global paint order index, which is determined by the stacking order of the nodes.
-
#style_index : Int::Primitive | Nil
Index into the
computedStyles
array returned bygetSnapshot
.
Constructor Detail
Instance Method Detail
The bounding box in document coordinates. Note that scroll offset of the document is ignored.
The index of the related DOM node in the domNodes
array returned by getSnapshot
.
Set to true to indicate the element begins a new stacking context.
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.
Index into the computedStyles
array returned by getSnapshot
.