pub struct LayoutTreeSnapshot {
pub node_index: Vec<i64>,
pub styles: Vec<ArrayOfStrings>,
pub bounds: Vec<Rectangle>,
pub text: Vec<StringIndex>,
pub stacking_contexts: RareBooleanData,
pub paint_orders: Option<Vec<i64>>,
pub offset_rects: Option<Vec<Rectangle>>,
pub scroll_rects: Option<Vec<Rectangle>>,
pub client_rects: Option<Vec<Rectangle>>,
pub blended_background_colors: Option<Vec<StringIndex>>,
pub text_color_opacities: Option<Vec<f64>>,
}
Expand description
Table of details of an element in the DOM tree with a LayoutObject. LayoutTreeSnapshot
Fields§
§node_index: Vec<i64>
Index of the corresponding node in the NodeTreeSnapshot
array returned by captureSnapshot
.
styles: Vec<ArrayOfStrings>
Array of indexes specifying computed style strings, filtered according to the computedStyles
parameter passed to captureSnapshot
.
bounds: Vec<Rectangle>
The absolute position bounding box.
text: Vec<StringIndex>
Contents of the LayoutText, if any.
stacking_contexts: RareBooleanData
Stacking context information.
paint_orders: Option<Vec<i64>>
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.
offset_rects: Option<Vec<Rectangle>>
The offset rect of nodes. Only available when includeDOMRects is set to true
scroll_rects: Option<Vec<Rectangle>>
The scroll rect of nodes. Only available when includeDOMRects is set to true
client_rects: Option<Vec<Rectangle>>
The client rect of nodes. Only available when includeDOMRects is set to true
blended_background_colors: Option<Vec<StringIndex>>
The list of background colors that are blended with colors of overlapping elements.
text_color_opacities: Option<Vec<f64>>
The list of computed text opacities.
Implementations§
Source§impl LayoutTreeSnapshot
impl LayoutTreeSnapshot
pub fn builder() -> LayoutTreeSnapshotBuilder
Source§impl LayoutTreeSnapshot
impl LayoutTreeSnapshot
pub const IDENTIFIER: &'static str = "DOMSnapshot.LayoutTreeSnapshot"
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 moreSource§impl Debug for LayoutTreeSnapshot
impl Debug for LayoutTreeSnapshot
Source§impl<'de> Deserialize<'de> for LayoutTreeSnapshot
impl<'de> Deserialize<'de> for LayoutTreeSnapshot
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LayoutTreeSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LayoutTreeSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for LayoutTreeSnapshot
impl PartialEq for LayoutTreeSnapshot
Source§impl Serialize for LayoutTreeSnapshot
impl Serialize for LayoutTreeSnapshot
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for LayoutTreeSnapshot
Auto Trait Implementations§
impl Freeze for LayoutTreeSnapshot
impl RefUnwindSafe for LayoutTreeSnapshot
impl Send for LayoutTreeSnapshot
impl Sync for LayoutTreeSnapshot
impl Unpin for LayoutTreeSnapshot
impl UnwindSafe for LayoutTreeSnapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more