Struct script::layout_dom::document::ServoLayoutDocument
source · pub struct ServoLayoutDocument<'dom> {
document: LayoutDom<'dom, Document>,
}
Fields§
§document: LayoutDom<'dom, Document>
The wrapped private DOM Document
Implementations§
source§impl<'ld> ServoLayoutDocument<'ld>
impl<'ld> ServoLayoutDocument<'ld>
pub fn root_element(&self) -> Option<ServoLayoutElement<'ld>>
pub fn needs_paint_from_layout(&self)
pub fn will_paint(&self)
pub fn shadow_roots(&self) -> Vec<ServoShadowRoot<'_>>
pub fn flush_shadow_roots_stylesheets( &self, stylist: &mut Stylist, guard: &StyleSharedRwLockReadGuard<'_>, )
pub fn from_layout_js(document: LayoutDom<'ld, Document>) -> Self
Trait Implementations§
source§impl<'dom> Clone for ServoLayoutDocument<'dom>
impl<'dom> Clone for ServoLayoutDocument<'dom>
source§fn clone(&self) -> ServoLayoutDocument<'dom>
fn clone(&self) -> ServoLayoutDocument<'dom>
Returns a copy 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<'ld> TDocument for ServoLayoutDocument<'ld>
impl<'ld> TDocument for ServoLayoutDocument<'ld>
§type ConcreteNode = ServoLayoutNode<'ld>
type ConcreteNode = ServoLayoutNode<'ld>
The concrete
TNode
type.source§fn as_node(&self) -> Self::ConcreteNode
fn as_node(&self) -> Self::ConcreteNode
Get this document as a
TNode
.source§fn quirks_mode(&self) -> QuirksMode
fn quirks_mode(&self) -> QuirksMode
Returns the quirks mode of this document.
source§fn is_html_document(&self) -> bool
fn is_html_document(&self) -> bool
Returns whether this document is an HTML document.
This document’s shared lock.
source§fn elements_with_id<'a>(
&self,
_id: &GenericAtomIdent<AtomStaticSet>,
) -> Result<&'a [<Self::ConcreteNode as TNode>::ConcreteElement], ()>where
Self: 'a,
fn elements_with_id<'a>(
&self,
_id: &GenericAtomIdent<AtomStaticSet>,
) -> Result<&'a [<Self::ConcreteNode as TNode>::ConcreteElement], ()>where
Self: 'a,
Get a list of elements with a given ID in this document, sorted by
tree position. Read more
impl<'dom> Copy for ServoLayoutDocument<'dom>
Auto Trait Implementations§
impl<'dom> Freeze for ServoLayoutDocument<'dom>
impl<'dom> !RefUnwindSafe for ServoLayoutDocument<'dom>
impl<'dom> !Send for ServoLayoutDocument<'dom>
impl<'dom> !Sync for ServoLayoutDocument<'dom>
impl<'dom> Unpin for ServoLayoutDocument<'dom>
impl<'dom> !UnwindSafe for ServoLayoutDocument<'dom>
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
source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
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>
Converts
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>
Converts
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 moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert