aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/sequential.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-07-09 13:08:56 +0200
committerMs2ger <Ms2ger@gmail.com>2015-10-26 17:51:26 +0100
commit9f919844156e526aaaf4400c10fa115ce997191d (patch)
tree8cac51711ec736f31f82efdb76372e9bc01f447f /components/layout/sequential.rs
parentf6e3146de248554607790108680a43844dff70bf (diff)
downloadservo-9f919844156e526aaaf4400c10fa115ce997191d.tar.gz
servo-9f919844156e526aaaf4400c10fa115ce997191d.zip
Use the passed-in reflow root rather than the one stored in the SharedLayoutContext.
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);
}