pub struct ServoDangerousStyleShadowRoot<'dom> {
shadow_root: LayoutDom<'dom, ShadowRoot>,
}Expand description
A wrapper around LayoutDom<_, ShadowRoot> to be used with stylo and selectors.
Note: This should only be used for stylo or `selectors interaction.
Fields§
§shadow_root: LayoutDom<'dom, ShadowRoot>The wrapped private DOM ShadowRoot.
Trait Implementations§
Source§impl<'dom> Clone for ServoDangerousStyleShadowRoot<'dom>
impl<'dom> Clone for ServoDangerousStyleShadowRoot<'dom>
Source§fn clone(&self) -> ServoDangerousStyleShadowRoot<'dom>
fn clone(&self) -> ServoDangerousStyleShadowRoot<'dom>
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 ServoDangerousStyleShadowRoot<'_>
impl Debug for ServoDangerousStyleShadowRoot<'_>
Source§impl<'dom> From<LayoutDom<'dom, ShadowRoot>> for ServoDangerousStyleShadowRoot<'dom>
impl<'dom> From<LayoutDom<'dom, ShadowRoot>> for ServoDangerousStyleShadowRoot<'dom>
Source§fn from(shadow_root: LayoutDom<'dom, ShadowRoot>) -> Self
fn from(shadow_root: LayoutDom<'dom, ShadowRoot>) -> Self
Converts to this type from the input type.
Source§impl<'dom> PartialEq for ServoDangerousStyleShadowRoot<'dom>
impl<'dom> PartialEq for ServoDangerousStyleShadowRoot<'dom>
Source§fn eq(&self, other: &ServoDangerousStyleShadowRoot<'dom>) -> bool
fn eq(&self, other: &ServoDangerousStyleShadowRoot<'dom>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'dom> TShadowRoot for ServoDangerousStyleShadowRoot<'dom>
impl<'dom> TShadowRoot for ServoDangerousStyleShadowRoot<'dom>
Source§type ConcreteNode = ServoDangerousStyleNode<'dom>
type ConcreteNode = ServoDangerousStyleNode<'dom>
The concrete node type.
Source§fn as_node(&self) -> ServoDangerousStyleNode<'dom>
fn as_node(&self) -> ServoDangerousStyleNode<'dom>
Get this ShadowRoot as a node.
Source§fn host(&self) -> ServoDangerousStyleElement<'dom>
fn host(&self) -> ServoDangerousStyleElement<'dom>
Get the shadow host that hosts this ShadowRoot.
Source§fn style_data<'a>(&self) -> Option<&'a CascadeData>where
Self: 'a,
fn style_data<'a>(&self) -> Option<&'a CascadeData>where
Self: 'a,
Get the style data for this ShadowRoot.
Source§fn parts<'a>(&self) -> &[<Self::ConcreteNode as TNode>::ConcreteElement]where
Self: 'a,
fn parts<'a>(&self) -> &[<Self::ConcreteNode as TNode>::ConcreteElement]where
Self: 'a,
Get the list of shadow parts for this shadow root.
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 shadow root, sorted by
tree position. Read more
Source§fn implicit_scope_for_sheet(
&self,
_sheet_index: usize,
) -> Option<ImplicitScopeRoot>
fn implicit_scope_for_sheet( &self, _sheet_index: usize, ) -> Option<ImplicitScopeRoot>
Get the implicit scope for a stylesheet in given index.
impl<'dom> Copy for ServoDangerousStyleShadowRoot<'dom>
impl<'dom> StructuralPartialEq for ServoDangerousStyleShadowRoot<'dom>
Auto Trait Implementations§
impl<'dom> Freeze for ServoDangerousStyleShadowRoot<'dom>
impl<'dom> !RefUnwindSafe for ServoDangerousStyleShadowRoot<'dom>
impl<'dom> !Send for ServoDangerousStyleShadowRoot<'dom>
impl<'dom> !Sync for ServoDangerousStyleShadowRoot<'dom>
impl<'dom> Unpin for ServoDangerousStyleShadowRoot<'dom>
impl<'dom> !UnwindSafe for ServoDangerousStyleShadowRoot<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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