struct Protocol::DOMSnapshot::LayoutTreeSnapshot
- Protocol::DOMSnapshot::LayoutTreeSnapshot
- Struct
- Value
- Object
Overview
Table of details of an element in the DOM tree with a LayoutObject.
Included Modules
- JSON::Serializable
Defined in:
protocol/dom_snapshot.crConstructors
Instance Method Summary
-
#blended_background_colors : Array(StringIndex) | Nil
The list of background colors that are blended with colors of overlapping elements.
-
#bounds : Array(Rectangle)
The absolute position bounding box.
-
#client_rects : Array(Rectangle) | Nil
The client rect of nodes.
-
#node_index : Array(Int::Primitive)
Index of the corresponding node in the
NodeTreeSnapshot
array returned bycaptureSnapshot
. -
#offset_rects : Array(Rectangle) | Nil
The offset rect of nodes.
-
#paint_orders : Array(Int::Primitive) | Nil
Global paint order index, which is determined by the stacking order of the nodes.
-
#scroll_rects : Array(Rectangle) | Nil
The scroll rect of nodes.
-
#stacking_contexts : RareBooleanData
Stacking context information.
-
#styles : Array(ArrayOfStrings)
Array of indexes specifying computed style strings, filtered according to the
computedStyles
parameter passed tocaptureSnapshot
. -
#text : Array(StringIndex)
Contents of the LayoutText, if any.
-
#text_color_opacities : Array(Number::Primitive) | Nil
The list of computed text opacities.
Constructor Detail
Instance Method Detail
The list of background colors that are blended with colors of overlapping elements.
The client rect of nodes. Only available when includeDOMRects is set to true
Index of the corresponding node in the NodeTreeSnapshot
array returned by captureSnapshot
.
The offset rect of nodes. Only available when includeDOMRects is set to true
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 captureSnapshot was true.
The scroll rect of nodes. Only available when includeDOMRects is set to true
Array of indexes specifying computed style strings, filtered according to the computedStyles
parameter passed to captureSnapshot
.