pub(crate) struct StackingContextTree {
pub root_stacking_context: StackingContext,
pub compositor_info: CompositorDisplayListInfo,
pub clip_store: StackingContextTreeClipStore,
}
Fields§
§root_stacking_context: StackingContext
The root stacking context of this StackingContextTree
.
compositor_info: CompositorDisplayListInfo
The information about the WebRender display list that the compositor consumes. This curerntly contains the out-of-band hit testing information data structure that the compositor uses to map hit tests to information about the item hit.
clip_store: StackingContextTreeClipStore
All 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: &DebugOptions,
) -> Self
pub fn new( fragment_tree: &FragmentTree, viewport_details: ViewportDetails, pipeline_id: PipelineId, first_reflow: bool, debug: &DebugOptions, ) -> 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
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
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
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
Mutably borrows from an owned value. Read more
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>
Creates a filterable data provider with the given name for debugging. 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