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.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/components/layout/sequential.rs b/components/layout/sequential.rs
index cc6abb1184d..75f121ca2cc 100644
--- a/components/layout/sequential.rs
+++ b/components/layout/sequential.rs
@@ -33,9 +33,15 @@ pub fn traverse_dom_preorder(root: LayoutNode,
construct_flows.process(node);
}
- let layout_context = LayoutContext::new(shared_layout_context);
- let recalc_style = RecalcStyleForNode { layout_context: &layout_context };
- let construct_flows = ConstructFlows { layout_context: &layout_context };
+ let layout_context = LayoutContext::new(shared_layout_context);
+ let recalc_style = RecalcStyleForNode {
+ layout_context: &layout_context,
+ root: root.opaque(),
+ };
+ let construct_flows = ConstructFlows {
+ layout_context: &layout_context,
+ root: root.opaque(),
+ };
doit(root, recalc_style, construct_flows);
}