Struct script_layout_interface::ScriptReflow
source · pub struct ScriptReflow {
pub reflow_info: Reflow,
pub document: TrustedNodeAddress,
pub dirty_root: Option<TrustedNodeAddress>,
pub stylesheets_changed: bool,
pub window_size: WindowSizeData,
pub script_join_chan: Sender<ReflowComplete>,
pub reflow_goal: ReflowGoal,
pub dom_count: u32,
pub origin: ImmutableOrigin,
pub pending_restyles: Vec<(TrustedNodeAddress, PendingRestyle)>,
pub animation_timeline_value: f64,
pub animations: DocumentAnimationSet,
}
Expand description
Information needed for a script-initiated reflow.
Fields§
§reflow_info: Reflow
General reflow data.
document: TrustedNodeAddress
The document node.
dirty_root: Option<TrustedNodeAddress>
The dirty root from which to restyle.
stylesheets_changed: bool
Whether the document’s stylesheets have changed since the last script reflow.
window_size: WindowSizeData
The current window size.
script_join_chan: Sender<ReflowComplete>
The channel that we send a notification to.
reflow_goal: ReflowGoal
The goal of this reflow.
dom_count: u32
The number of objects in the dom #10110
origin: ImmutableOrigin
The current window origin
pending_restyles: Vec<(TrustedNodeAddress, PendingRestyle)>
Restyle snapshot map.
animation_timeline_value: f64
The current animation timeline value.
animations: DocumentAnimationSet
The set of animations for this document.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScriptReflow
impl !RefUnwindSafe for ScriptReflow
impl Send for ScriptReflow
impl !Sync for ScriptReflow
impl Unpin for ScriptReflow
impl !UnwindSafe for ScriptReflow
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> 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