mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Bug 1325734 - Pass the thread-local context into should_traverse_children. r=emilio
This commit is contained in:
parent
3060865577
commit
92b9d70c3a
4 changed files with 32 additions and 10 deletions
|
@ -29,7 +29,9 @@ pub fn traverse_dom<E, D>(traversal: &D,
|
|||
*depth += 1;
|
||||
}
|
||||
|
||||
D::traverse_children(el, |kid| doit(traversal, traversal_data, thread_local, kid));
|
||||
traversal.traverse_children(thread_local, el, |tlc, kid| {
|
||||
doit(traversal, traversal_data, tlc, kid)
|
||||
});
|
||||
|
||||
if let Some(ref mut depth) = traversal_data.current_dom_depth {
|
||||
*depth -= 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue