struct Protocol::DOMSnapshot::LayoutTreeSnapshot

Overview

Table of 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 blended_background_colors : Array(StringIndex) | Nil #

The list of background colors that are blended with colors of overlapping elements.


[View source]
def bounds : Array(Rectangle) #

The absolute position bounding box.


[View source]
def client_rects : Array(Rectangle) | Nil #

The client rect of nodes. Only available when includeDOMRects is set to true


[View source]
def node_index : Array(Int::Primitive) #

Index of the corresponding node in the NodeTreeSnapshot array returned by captureSnapshot.


[View source]
def offset_rects : Array(Rectangle) | Nil #

The offset rect of nodes. Only available when includeDOMRects is set to true


[View source]
def paint_orders : Array(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 captureSnapshot was true.


[View source]
def scroll_rects : Array(Rectangle) | Nil #

The scroll rect of nodes. Only available when includeDOMRects is set to true


[View source]
def stacking_contexts : RareBooleanData #

Stacking context information.


[View source]
def styles : Array(ArrayOfStrings) #

Array of indexes specifying computed style strings, filtered according to the computedStyles parameter passed to captureSnapshot.


[View source]
def text : Array(StringIndex) #

Contents of the LayoutText, if any.


[View source]
def text_color_opacities : Array(Number::Primitive) | Nil #

The list of computed text opacities.


[View source]