aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/sequential.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/sequential.rs')
-rw-r--r--components/layout/sequential.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/layout/sequential.rs b/components/layout/sequential.rs
index cbd5954ebee..48a4c3b3889 100644
--- a/components/layout/sequential.rs
+++ b/components/layout/sequential.rs
@@ -82,14 +82,13 @@ pub fn build_display_list_for_subtree(root: &mut FlowRef,
shared_layout_context: &SharedLayoutContext)
-> Vec<DisplayItem> {
let flow_root = flow_ref::deref_mut(root);
- let layout_context = LayoutContext::new(shared_layout_context);
- flow_root.traverse_preorder(&ComputeAbsolutePositions { layout_context: &layout_context });
+ flow_root.traverse_preorder(&ComputeAbsolutePositions { layout_context: shared_layout_context });
let mut children = vec![];
flow_root.collect_stacking_contexts(root_stacking_context.id,
&mut children);
root_stacking_context.add_children(children);
let mut build_display_list = BuildDisplayList {
- state: DisplayListBuildState::new(&layout_context.shared,
+ state: DisplayListBuildState::new(shared_layout_context,
flow::base(&*flow_root).stacking_context_id),
};
build_display_list.traverse(&mut *flow_root);