pub struct ReflowRequest {
pub document: TrustedNodeAddress,
pub restyle: Option<ReflowRequestRestyle>,
pub viewport_details: ViewportDetails,
pub reflow_goal: ReflowGoal,
pub dom_count: u32,
pub origin: ImmutableOrigin,
pub animation_timeline_value: f64,
pub animations: DocumentAnimationSet,
pub node_to_animating_image_map: Arc<RwLock<FxHashMap<OpaqueNode, ImageAnimationState>>>,
pub theme: Theme,
pub highlighted_dom_node: Option<OpaqueNode>,
}
Expand description
Information needed for a script-initiated reflow.
Fields§
§document: TrustedNodeAddress
The document node.
restyle: Option<ReflowRequestRestyle>
If a restyle is necessary, all of the informatio needed to do that restyle.
viewport_details: ViewportDetails
The current ViewportDetails
to use for this reflow.
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
animation_timeline_value: f64
The current animation timeline value.
animations: DocumentAnimationSet
The set of animations for this document.
node_to_animating_image_map: Arc<RwLock<FxHashMap<OpaqueNode, ImageAnimationState>>>
The set of image animations.
theme: Theme
The theme for the window
highlighted_dom_node: Option<OpaqueNode>
The node highlighted by the devtools, if any
Implementations§
Source§impl ReflowRequest
impl ReflowRequest
pub fn stylesheets_changed(&self) -> bool
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