diff --git a/components/layout/sequential.rs b/components/layout/sequential.rs index 53d565fc423..804063b7629 100644 --- a/components/layout/sequential.rs +++ b/components/layout/sequential.rs @@ -23,7 +23,7 @@ use util::opts; pub use style::sequential::traverse_dom; -pub fn resolve_generated_content(root: &mut FlowRef, shared_layout_context: &SharedLayoutContext) { +pub fn resolve_generated_content(root: &mut Flow, shared_layout_context: &SharedLayoutContext) { fn doit(flow: &mut Flow, level: u32, traversal: &mut ResolveGeneratedContent) { if !traversal.should_process(flow) { return @@ -38,7 +38,7 @@ pub fn resolve_generated_content(root: &mut FlowRef, shared_layout_context: &Sha let layout_context = LayoutContext::new(shared_layout_context); let mut traversal = ResolveGeneratedContent::new(&layout_context); - doit(flow_ref::deref_mut(root), 0, &mut traversal) + doit(root, 0, &mut traversal) } pub fn traverse_flow_tree_preorder(root: &mut FlowRef, diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index 8d01b9b0a74..2ff314d7170 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -1446,7 +1446,7 @@ impl LayoutThread { profile(time::ProfilerCategory::LayoutGeneratedContent, self.profiler_metadata(), self.time_profiler_chan.clone(), - || sequential::resolve_generated_content(&mut root_flow, &layout_context)); + || sequential::resolve_generated_content(flow_ref::deref_mut(&mut root_flow), &layout_context)); // Guess float placement. profile(time::ProfilerCategory::LayoutFloatPlacementSpeculation,