pub(crate) struct ElementDamageSet<'a> {
node: ServoLayoutNode<'a>,
pub from_parent: LayoutDamage,
pub on_element: LayoutDamage,
pub from_children: LayoutDamage,
pub incoming_layout_root_count: usize,
}Fields§
§node: ServoLayoutNode<'a>§from_parent: LayoutDamage§on_element: LayoutDamage§from_children: LayoutDamage§incoming_layout_root_count: usizeImplementations§
Source§impl<'a> ElementDamageSet<'a>
impl<'a> ElementDamageSet<'a>
Sourcefn isolate_incoming_damage(&mut self) -> LayoutDamage
fn isolate_incoming_damage(&mut self) -> LayoutDamage
Given the damage on the element and damage from parents, determine which damage should be passed to children, returning that value.
Sourcefn propagate_damage_to_children(
&mut self,
layout_context: &LayoutContext<'_>,
has_dirty_descendants: bool,
damage_for_children: LayoutDamage,
layout_roots: &mut Vec<LayoutRoot<'a>>,
)
fn propagate_damage_to_children( &mut self, layout_context: &LayoutContext<'_>, has_dirty_descendants: bool, damage_for_children: LayoutDamage, layout_roots: &mut Vec<LayoutRoot<'a>>, )
Given the damage the damage to children and whether or not this element had any
dirty descendants, conditionally propagated damage to children and set the resulting
damage from children on this ElementDamageSet.
Sourcefn apply_damage(
self,
layout_context: &LayoutContext<'_>,
layout_roots: &mut Vec<LayoutRoot<'a>>,
) -> LayoutDamage
fn apply_damage( self, layout_context: &LayoutContext<'_>, layout_roots: &mut Vec<LayoutRoot<'a>>, ) -> LayoutDamage
Given the damage from this element, the parent, and children, determine what action to take for this element’s boxes and return the damage that should be propagated to parents.
fn box_damage_action(&self) -> BoxDamageAction<'a>
fn adjust_inline_content_size_damage( &self, damage_for_parent: &mut LayoutDamage, inline_size_depends_on_content: bool, )
Auto Trait Implementations§
impl<'a> Freeze for ElementDamageSet<'a>
impl<'a> !RefUnwindSafe for ElementDamageSet<'a>
impl<'a> Send for ElementDamageSet<'a>
impl<'a> Sync for ElementDamageSet<'a>
impl<'a> Unpin for ElementDamageSet<'a>
impl<'a> UnsafeUnpin for ElementDamageSet<'a>
impl<'a> !UnwindSafe for ElementDamageSet<'a>
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