mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
stylo: Allow bypassing the bottom-up traversal.
This commit is contained in:
parent
40df81d537
commit
436c1b3089
4 changed files with 37 additions and 15 deletions
|
@ -26,7 +26,9 @@ pub fn traverse_dom<N, C>(root: N,
|
|||
}
|
||||
}
|
||||
|
||||
context.process_postorder(node);
|
||||
if context.needs_postorder_traversal() {
|
||||
context.process_postorder(node);
|
||||
}
|
||||
}
|
||||
|
||||
let context = C::new(shared, root.opaque());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue