pub struct RelativeSelectorInvalidator<'a, 'b, E>
where E: TElement + 'a,
{ pub element: E, pub quirks_mode: QuirksMode, pub snapshot_table: Option<&'b SnapshotMap>, pub invalidated: fn(_: E, _: &InvalidationResult), pub sibling_traversal_map: SiblingTraversalMap<E>, pub _marker: PhantomData<&'a ()>, }
Expand description

Overall invalidator for handling relative selector invalidations.

Fields§

§element: E

Element triggering the invalidation.

§quirks_mode: QuirksMode

Quirks mode of the current invalidation.

§snapshot_table: Option<&'b SnapshotMap>

Snapshot containing changes to invalidate against. Can be None if it’s a DOM mutation.

§invalidated: fn(_: E, _: &InvalidationResult)

Callback to trigger when the subject element is invalidated.

§sibling_traversal_map: SiblingTraversalMap<E>

The traversal map that should be used to process invalidations.

§_marker: PhantomData<&'a ()>

Marker for ’a lifetime.

Implementations§

source§

impl<'a, 'b, E> RelativeSelectorInvalidator<'a, 'b, E>
where E: TElement + 'a,

source

pub fn invalidate_relative_selectors_for_this<F>( self, stylist: &'a Stylist, gather_dependencies: F, )

Gather relative selector dependencies for the given element, and invalidate as necessary.

source

pub fn invalidate_relative_selectors_for_dom_mutation( self, subtree: bool, stylist: &'a Stylist, inherited_search_path: ElementSelectorFlags, operation: DomMutationOperation, )

Gather relative selector dependencies for the given element (And its subtree) that mutated, and invalidate as necessary.

source

fn invalidate_from_dependencies(&self, to_invalidate: ToInvalidate<'a, E>)

Carry out complete invalidation triggered by a relative selector invalidation.

source

fn invalidate_upwards( &self, element: E, invalidation: &RelativeSelectorInvalidation<'a>, )

source

fn in_search_direction(element: &E, desired: ElementSelectorFlags) -> bool

Is this element in the direction of the given relative selector search path?

source

fn handle_anchor( &self, element: E, outer_dependency: &Dependency, host: Option<OpaqueElement>, )

Handle a potential relative selector anchor.

source

fn is_subject(outer_dependency: &Dependency) -> bool

Does this relative selector dependency have its relative selector in the subject position?

Auto Trait Implementations§

§

impl<'a, 'b, E> Freeze for RelativeSelectorInvalidator<'a, 'b, E>
where E: Freeze,

§

impl<'a, 'b, E> !RefUnwindSafe for RelativeSelectorInvalidator<'a, 'b, E>

§

impl<'a, 'b, E> Send for RelativeSelectorInvalidator<'a, 'b, E>
where E: Send,

§

impl<'a, 'b, E> Sync for RelativeSelectorInvalidator<'a, 'b, E>
where E: Sync,

§

impl<'a, 'b, E> Unpin for RelativeSelectorInvalidator<'a, 'b, E>
where E: Unpin,

§

impl<'a, 'b, E> !UnwindSafe for RelativeSelectorInvalidator<'a, 'b, E>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
source§

impl<T> MaybeBoxed<Box<T>> for T

source§

fn maybe_boxed(self) -> Box<T>

Convert
source§

impl<T> MaybeBoxed<T> for T

source§

fn maybe_boxed(self) -> T

Convert
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
source§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T