pub struct LayoutTreeSnapshotBuilder { /* private fields */ }Available on crate features
experimental and DOMSnapshot and CSS and DOM and DOMDebugger and Page only.Implementations§
Source§impl LayoutTreeSnapshotBuilder
impl LayoutTreeSnapshotBuilder
Sourcepub fn node_index(&mut self, v: Vec<u32>) -> &mut Self
pub fn node_index(&mut self, v: Vec<u32>) -> &mut Self
Index of the corresponding node in the NodeTreeSnapshot array returned by captureSnapshot.
Sourcepub fn styles(&mut self, v: Vec<ArrayOfStrings>) -> &mut Self
pub fn styles(&mut self, v: Vec<ArrayOfStrings>) -> &mut Self
Array of indexes specifying computed style strings, filtered according to the computedStyles parameter passed to captureSnapshot.
Sourcepub fn text(&mut self, v: Vec<StringIndex>) -> &mut Self
pub fn text(&mut self, v: Vec<StringIndex>) -> &mut Self
Contents of the LayoutText, if any.
Sourcepub fn stacking_contexts(&mut self, v: RareBooleanData) -> &mut Self
pub fn stacking_contexts(&mut self, v: RareBooleanData) -> &mut Self
Stacking context information.
Sourcepub fn paint_orders(&mut self, v: Vec<u32>) -> &mut Self
pub fn paint_orders(&mut self, v: Vec<u32>) -> &mut Self
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(&mut self, v: Vec<Rectangle>) -> &mut Self
pub fn offset_rects(&mut self, v: Vec<Rectangle>) -> &mut Self
The offset rect of nodes. Only available when includeDOMRects is set to true
Sourcepub fn scroll_rects(&mut self, v: Vec<Rectangle>) -> &mut Self
pub fn scroll_rects(&mut self, v: Vec<Rectangle>) -> &mut Self
The scroll rect of nodes. Only available when includeDOMRects is set to true
Sourcepub fn client_rects(&mut self, v: Vec<Rectangle>) -> &mut Self
pub fn client_rects(&mut self, v: Vec<Rectangle>) -> &mut Self
The client rect of nodes. Only available when includeDOMRects is set to true
pub fn build(&mut self) -> Result<LayoutTreeSnapshot, &'static str>
Trait Implementations§
Source§impl Clone for LayoutTreeSnapshotBuilder
impl Clone for LayoutTreeSnapshotBuilder
Source§fn clone(&self) -> LayoutTreeSnapshotBuilder
fn clone(&self) -> LayoutTreeSnapshotBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayoutTreeSnapshotBuilder
impl Debug for LayoutTreeSnapshotBuilder
Auto Trait Implementations§
impl Freeze for LayoutTreeSnapshotBuilder
impl RefUnwindSafe for LayoutTreeSnapshotBuilder
impl Send for LayoutTreeSnapshotBuilder
impl Sync for LayoutTreeSnapshotBuilder
impl Unpin for LayoutTreeSnapshotBuilder
impl UnwindSafe for LayoutTreeSnapshotBuilder
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
Mutably borrows from an owned value. Read more