pub(crate) struct StackingContextTree {
pub root_stacking_context: StackingContext,
pub paint_info: PaintDisplayListInfo,
pub clip_store: StackingContextTreeClipStore,
}Fields§
§root_stacking_context: StackingContextThe root stacking context of this StackingContextTree.
paint_info: PaintDisplayListInfoThe information about the WebRender display list that Paint
consumes. This curerntly contains the out-of-band hit testing information
data structure that Paint uses to map hit tests to information
about the item hit.
clip_store: StackingContextTreeClipStoreAll of the clips collected for this StackingContextTree. These are added
for things like overflow. More clips may be created later during WebRender
display list construction, but they are never added here.
Implementations§
Source§impl StackingContextTree
impl StackingContextTree
Sourcepub fn new(
fragment_tree: &FragmentTree,
viewport_details: ViewportDetails,
pipeline_id: PipelineId,
first_reflow: bool,
debug: &DiagnosticsLogging,
) -> Self
pub fn new( fragment_tree: &FragmentTree, viewport_details: ViewportDetails, pipeline_id: PipelineId, first_reflow: bool, debug: &DiagnosticsLogging, ) -> Self
Create a new [DisplayList] given the dimensions of the layout and the WebRender pipeline id.
fn push_reference_frame( &mut self, origin: LayoutPoint, frame_origin_for_query: LayoutPoint, parent_scroll_node_id: ScrollTreeNodeId, transform_style: TransformStyle, transform: LayoutTransform, kind: ReferenceFrameKind, ) -> ScrollTreeNodeId
fn define_scroll_frame( &mut self, parent_scroll_node_id: ScrollTreeNodeId, external_id: ExternalScrollId, content_rect: LayoutRect, clip_rect: LayoutRect, scroll_sensitivity: AxesScrollSensitivity, ) -> ScrollTreeNodeId
fn define_sticky_frame( &mut self, parent_scroll_node_id: ScrollTreeNodeId, frame_rect: LayoutRect, margins: SideOffsets2D<Option<f32>, LayoutPixel>, vertical_offset_bounds: StickyOffsetBounds, horizontal_offset_bounds: StickyOffsetBounds, ) -> ScrollTreeNodeId
Sourcepub(crate) fn offset_in_fragment(
&self,
fragment: &Fragment,
point_in_viewport: PhysicalPoint<Au>,
) -> Option<Point2D<Au, CSSPixel>>
pub(crate) fn offset_in_fragment( &self, fragment: &Fragment, point_in_viewport: PhysicalPoint<Au>, ) -> Option<Point2D<Au, CSSPixel>>
Given a Fragment and a point in the viewport of the page, return the point in
the Fragment’s content rectangle in its transformed coordinate system
(untransformed CSS pixels). Note that the point may be outside the Fragment’s
boundaries.
TODO: Currently, this only works for BoxFragment, but we should extend it to
other types of Fragments in the future.
Trait Implementations§
Source§impl MallocSizeOf for StackingContextTree
impl MallocSizeOf for StackingContextTree
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Auto Trait Implementations§
impl !Freeze for StackingContextTree
impl !RefUnwindSafe for StackingContextTree
impl Send for StackingContextTree
impl !Sync for StackingContextTree
impl Unpin for StackingContextTree
impl !UnwindSafe for StackingContextTree
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> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
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