mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Use the passed-in reflow root rather than the one stored in the SharedLayoutContext.
This commit is contained in:
parent
f6e3146de2
commit
9f91984415
4 changed files with 47 additions and 35 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue