mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Pass a &mut Flow to resolve_generated_content.
This commit is contained in:
parent
67d6a02667
commit
0efa583df4
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue