pub struct ReflowRequest {Show 16 fields
pub document: TrustedNodeAddress,
pub epoch: Epoch,
pub restyle: Option<ReflowRequestRestyle>,
pub viewport_details: ViewportDetails,
pub reflow_goal: ReflowGoal,
pub origin: ImmutableOrigin,
pub animation_timeline_value: f64,
pub animations: DocumentAnimationSet,
pub animating_images: Arc<RwLock<AnimatingImages>>,
pub highlighted_dom_node: Option<OpaqueNode>,
pub frame_focused: bool,
pub halt_lcp: bool,
pub paint_timing_eligible: bool,
pub paint_timing_info: PaintTimingInfo,
pub document_context: WebFontDocumentContext,
pub accessibility: Option<ReflowRequestAccessibility>,
}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 information needed to do that restyle.
viewport_details: ViewportDetailsThe current ViewportDetails to use for this reflow.
reflow_goal: ReflowGoalThe goal of this reflow.
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.
highlighted_dom_node: Option<OpaqueNode>The node highlighted by the devtools, if any
frame_focused: boolWhether or not this document has system focus and is the focused frame in the frame tree.
halt_lcp: boolWhether LCP computation should be halted for this reflow. From https://www.w3.org/TR/largest-contentful-paint/#limitations:
The LargestContentfulPaint … algorithm halts … inputs.
paint_timing_eligible: boolWhether the document’s browsing context is paint-timing eligible. https://www.w3.org/TR/paint-timing/#paint-timing-eligible
paint_timing_info: PaintTimingInfoThe PaintTimingInfo for this reflow.
https://www.w3.org/TR/paint-timing/#paint-timing-info
document_context: WebFontDocumentContextThe current font context.
accessibility: Option<ReflowRequestAccessibility>If an accessibility tree update is necessary, all the information needed to do the update.
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 UnsafeUnpin 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
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>
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>
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 more