Struct style::sharing::StyleSharingCandidate
source · pub struct StyleSharingCandidate<E: TElement> {
element: E,
validation_data: ValidationData,
considered_nontrivial_scoped_style: bool,
}
Expand description
Information regarding a style sharing candidate, that is, an entry in the style sharing cache.
Note that this information is stored in TLS and cleared after the traversal, and once here, the style information of the element is immutable, so it’s safe to access.
Important: If you change the members/layout here, You need to do the same for FakeCandidate below.
Fields§
§element: E
The element.
validation_data: ValidationData
§considered_nontrivial_scoped_style: bool
Implementations§
source§impl<E: TElement> StyleSharingCandidate<E>
impl<E: TElement> StyleSharingCandidate<E>
sourcefn class_list(&mut self) -> &[AtomIdent]
fn class_list(&mut self) -> &[AtomIdent]
Get the classlist of this candidate.
sourcefn pres_hints(&mut self) -> &[ApplicableDeclarationBlock]
fn pres_hints(&mut self) -> &[ApplicableDeclarationBlock]
Get the pres hints of this candidate.
sourcefn parent_style_identity(&mut self) -> OpaqueComputedValues
fn parent_style_identity(&mut self) -> OpaqueComputedValues
Get the parent style identity.
sourcefn revalidation_match_results(
&mut self,
stylist: &Stylist,
bloom: &StyleBloom<E>,
selector_caches: &mut SelectorCaches,
) -> &RevalidationResult
fn revalidation_match_results( &mut self, stylist: &Stylist, bloom: &StyleBloom<E>, selector_caches: &mut SelectorCaches, ) -> &RevalidationResult
Compute the bit vector of revalidation selector match results for this candidate.
fn scope_revalidation_results( &mut self, stylist: &Stylist, selector_caches: &mut SelectorCaches, ) -> ScopeRevalidationResult
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for StyleSharingCandidate<E>where
E: Freeze,
impl<E> !RefUnwindSafe for StyleSharingCandidate<E>
impl<E> Send for StyleSharingCandidate<E>where
E: Send,
impl<E> Sync for StyleSharingCandidate<E>where
E: Sync,
impl<E> Unpin for StyleSharingCandidate<E>where
E: Unpin,
impl<E> !UnwindSafe for StyleSharingCandidate<E>
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> 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