Struct chrome_remote_interface_model::dom_snapshot::LayoutTreeSnapshotBuilder[][src]

pub struct LayoutTreeSnapshotBuilder { /* fields omitted */ }
This is supported on crate features experimental and DOMSnapshot and CSS and DOM and DOMDebugger and Page only.

Implementations

impl LayoutTreeSnapshotBuilder[src]

pub fn node_index(&mut self, v: Vec<u32>) -> &mut Self[src]

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

pub fn styles(&mut self, v: Vec<ArrayOfStrings>) -> &mut Self[src]

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

pub fn bounds(&mut self, v: Vec<Rectangle>) -> &mut Self[src]

The absolute position bounding box.

pub fn text(&mut self, v: Vec<StringIndex>) -> &mut Self[src]

Contents of the LayoutText, if any.

pub fn stacking_contexts(&mut self, v: RareBooleanData) -> &mut Self[src]

Stacking context information.

pub fn paint_orders(&mut self, v: Vec<u32>) -> &mut Self[src]

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.

pub fn offset_rects(&mut self, v: Vec<Rectangle>) -> &mut Self[src]

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

pub fn scroll_rects(&mut self, v: Vec<Rectangle>) -> &mut Self[src]

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

pub fn client_rects(&mut self, v: Vec<Rectangle>) -> &mut Self[src]

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

pub fn build(&mut self) -> Result<LayoutTreeSnapshot, &'static str>[src]

Trait Implementations

impl Clone for LayoutTreeSnapshotBuilder[src]

impl Debug for LayoutTreeSnapshotBuilder[src]

impl Default for LayoutTreeSnapshotBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.