pub struct LayoutTreeSnapshot { /* private fields */ }experimental and DOMSnapshot and CSS and DOM and DOMDebugger and Page only.Expand description
Table of details of an element in the DOM tree with a LayoutObject.
Implementations§
Source§impl LayoutTreeSnapshot
impl LayoutTreeSnapshot
pub fn builder() -> LayoutTreeSnapshotBuilder
Sourcepub fn node_index(&self) -> &[u32]
pub fn node_index(&self) -> &[u32]
Index of the corresponding node in the NodeTreeSnapshot array returned by captureSnapshot.
Sourcepub fn styles(&self) -> &[ArrayOfStrings]
pub fn styles(&self) -> &[ArrayOfStrings]
Array of indexes specifying computed style strings, filtered according to the computedStyles parameter passed to captureSnapshot.
Sourcepub fn text(&self) -> &[StringIndex]
pub fn text(&self) -> &[StringIndex]
Contents of the LayoutText, if any.
Sourcepub fn stacking_contexts(&self) -> &RareBooleanData
pub fn stacking_contexts(&self) -> &RareBooleanData
Stacking context information.
Sourcepub fn paint_orders(&self) -> Option<&Vec<u32>>
pub fn paint_orders(&self) -> Option<&Vec<u32>>
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.
Sourcepub fn offset_rects(&self) -> Option<&Vec<Rectangle>>
pub fn offset_rects(&self) -> Option<&Vec<Rectangle>>
The offset rect of nodes. Only available when includeDOMRects is set to true
Sourcepub fn scroll_rects(&self) -> Option<&Vec<Rectangle>>
pub fn scroll_rects(&self) -> Option<&Vec<Rectangle>>
The scroll rect of nodes. Only available when includeDOMRects is set to true
Sourcepub fn client_rects(&self) -> Option<&Vec<Rectangle>>
pub fn client_rects(&self) -> Option<&Vec<Rectangle>>
The client rect of nodes. Only available when includeDOMRects is set to true
Trait Implementations§
Source§impl Clone for LayoutTreeSnapshot
impl Clone for LayoutTreeSnapshot
Source§fn clone(&self) -> LayoutTreeSnapshot
fn clone(&self) -> LayoutTreeSnapshot
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more