pub struct ReflowRequest {
pub document: TrustedNodeAddress,
pub epoch: Epoch,
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 animating_images: Arc<RwLock<AnimatingImages>>,
pub theme: Theme,
pub highlighted_dom_node: Option<OpaqueNode>,
}Expand description
Information needed for a script-initiated reflow.
Fields§
§document: TrustedNodeAddressThe document node.
epoch: EpochThe current layout Epoch managed by the script thread.
restyle: Option<ReflowRequestRestyle>If a restyle is necessary, all of the informatio needed to do that restyle.
viewport_details: ViewportDetailsThe current ViewportDetails to use for this reflow.
reflow_goal: ReflowGoalThe goal of this reflow.
dom_count: u32The number of objects in the dom #10110
origin: ImmutableOriginThe current window origin
animation_timeline_value: f64The current animation timeline value.
animations: DocumentAnimationSetThe set of animations for this document.
animating_images: Arc<RwLock<AnimatingImages>>An AnimatingImages struct used to track images that are animating.
theme: ThemeThe 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