Struct script_layout_interface::ReflowRequest
source · pub struct ReflowRequest {
pub reflow_info: Reflow,
pub document: TrustedNodeAddress,
pub dirty_root: Option<TrustedNodeAddress>,
pub stylesheets_changed: bool,
pub window_size: WindowSizeData,
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,
pub theme: PrefersColorScheme,
}
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.
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.
theme: PrefersColorScheme
The theme for the window
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReflowRequest
impl !RefUnwindSafe for ReflowRequest
impl Send for ReflowRequest
impl !Sync for ReflowRequest
impl Unpin for ReflowRequest
impl !UnwindSafe for ReflowRequest
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