diff options
Diffstat (limited to 'components/layout/fragment_tree')
-rw-r--r-- | components/layout/fragment_tree/box_fragment.rs | 2 | ||||
-rw-r--r-- | components/layout/fragment_tree/fragment_tree.rs | 11 |
2 files changed, 1 insertions, 12 deletions
diff --git a/components/layout/fragment_tree/box_fragment.rs b/components/layout/fragment_tree/box_fragment.rs index 9b96b1c4fb4..b7c3a2a3524 100644 --- a/components/layout/fragment_tree/box_fragment.rs +++ b/components/layout/fragment_tree/box_fragment.rs @@ -92,7 +92,7 @@ pub(crate) struct BoxFragment { pub scrollable_overflow_from_children: PhysicalRect<Au>, /// The resolved box insets if this box is `position: sticky`. These are calculated - /// during stacking context tree construction because they rely on the size of the + /// during `StackingContextTree` construction because they rely on the size of the /// scroll container. pub(crate) resolved_sticky_insets: AtomicRefCell<Option<PhysicalSides<AuOrAuto>>>, diff --git a/components/layout/fragment_tree/fragment_tree.rs b/components/layout/fragment_tree/fragment_tree.rs index 979bd0090fc..ba03a72ac21 100644 --- a/components/layout/fragment_tree/fragment_tree.rs +++ b/components/layout/fragment_tree/fragment_tree.rs @@ -14,7 +14,6 @@ use webrender_api::units; use super::{BoxFragment, ContainingBlockManager, Fragment}; use crate::ArcRefCell; use crate::context::LayoutContext; -use crate::display_list::StackingContext; use crate::geom::PhysicalRect; #[derive(MallocSizeOf)] @@ -91,16 +90,6 @@ impl FragmentTree { fragment_tree } - pub(crate) fn build_display_list( - &self, - builder: &mut crate::display_list::DisplayListBuilder, - root_stacking_context: &StackingContext, - ) { - // Paint the canvas’ background (if any) before/under everything else - root_stacking_context.build_canvas_background_display_list(builder, self); - root_stacking_context.build_display_list(builder); - } - pub fn print(&self) { let mut print_tree = PrintTree::new("Fragment Tree".to_string()); for fragment in &self.root_fragments { |