Struct chrome_remote_interface_model::dom_snapshot::LayoutTreeNode[][src]

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

Details of an element in the DOM tree with a LayoutObject.

Implementations

impl LayoutTreeNode[src]

pub fn builder() -> LayoutTreeNodeBuilder[src]

pub fn dom_node_index(&self) -> u32[src]

The index of the related DOM node in the domNodes array returned by getSnapshot.

pub fn bounding_box(&self) -> &Rect[src]

The bounding box in document coordinates. Note that scroll offset of the document is ignored.

pub fn layout_text(&self) -> Option<&String>[src]

Contents of the LayoutText, if any.

pub fn inline_text_nodes(&self) -> Option<&Vec<InlineTextBox>>[src]

The post-layout inline text nodes, if any.

pub fn style_index(&self) -> Option<&u32>[src]

Index into the computedStyles array returned by getSnapshot.

pub fn paint_order(&self) -> Option<&u32>[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 getSnapshot was true.

pub fn is_stacking_context(&self) -> Option<&bool>[src]

Set to true to indicate the element begins a new stacking context.

Trait Implementations

impl Clone for LayoutTreeNode[src]

impl Debug for LayoutTreeNode[src]

impl<'de> Deserialize<'de> for LayoutTreeNode[src]

impl Serialize for LayoutTreeNode[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.