struct Protocol::DOMSnapshot::LayoutTreeNode

Overview

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

Included Modules

Defined in:

protocol/dom_snapshot.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def bounding_box : DOM::Rect #

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


[View source]
def dom_node_index : Int::Primitive #

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


[View source]
def inline_text_nodes : Array(InlineTextBox) | Nil #

The post-layout inline text nodes, if any.


[View source]
def is_stacking_context : Bool | Nil #

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


[View source]
def layout_text : String | Nil #

Contents of the LayoutText, if any.


[View source]
def paint_order : Int::Primitive | Nil #

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.


[View source]
def style_index : Int::Primitive | Nil #

Index into the computedStyles array returned by getSnapshot.


[View source]