mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Pass a &mut Flow to traverse_flow_tree_preorder.
This commit is contained in:
parent
0efa583df4
commit
fa0e198c8f
3 changed files with 7 additions and 9 deletions
|
@ -875,7 +875,7 @@ impl LayoutThread {
|
|||
fn solve_constraints(layout_root: &mut FlowRef,
|
||||
shared_layout_context: &SharedLayoutContext) {
|
||||
let _scope = layout_debug_scope!("solve_constraints");
|
||||
sequential::traverse_flow_tree_preorder(layout_root, shared_layout_context);
|
||||
sequential::traverse_flow_tree_preorder(flow_ref::deref_mut(layout_root), shared_layout_context);
|
||||
}
|
||||
|
||||
/// Performs layout constraint solving in parallel.
|
||||
|
@ -892,7 +892,7 @@ impl LayoutThread {
|
|||
|
||||
// NOTE: this currently computes borders, so any pruning should separate that
|
||||
// operation out.
|
||||
parallel::traverse_flow_tree_preorder(layout_root,
|
||||
parallel::traverse_flow_tree_preorder(flow_ref::deref_mut(layout_root),
|
||||
profiler_metadata,
|
||||
time_profiler_chan,
|
||||
shared_layout_context,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue