mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +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
|
@ -112,7 +112,7 @@ fn top_down_dom<'a, 'scope, E, D>(nodes: &'a [SendNode<E::ConcreteNode>],
|
|||
let mut children_to_process = 0isize;
|
||||
traversal.process_preorder(&mut traversal_data, &mut *tlc, node);
|
||||
if let Some(el) = node.as_element() {
|
||||
D::traverse_children(el, |kid| {
|
||||
traversal.traverse_children(&mut *tlc, el, |_tlc, kid| {
|
||||
children_to_process += 1;
|
||||
discovered_child_nodes.push(unsafe { SendNode::new(kid) })
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue