Bug 1325734 - Pass the thread-local context into should_traverse_children. r=emilio

This commit is contained in:
Bobby Holley 2017-01-08 11:42:39 -08:00
parent 3060865577
commit 92b9d70c3a
4 changed files with 32 additions and 10 deletions

View file

@ -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;