mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
refactor: propagate CanGc arguments through callers (#35591)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
This commit is contained in:
parent
02199520f2
commit
b0b0289014
74 changed files with 403 additions and 275 deletions
|
@ -63,12 +63,13 @@ impl NodeIterator {
|
|||
root_node: &Node,
|
||||
what_to_show: u32,
|
||||
node_filter: Option<Rc<NodeFilter>>,
|
||||
can_gc: CanGc,
|
||||
) -> DomRoot<NodeIterator> {
|
||||
let filter = match node_filter {
|
||||
None => Filter::None,
|
||||
Some(jsfilter) => Filter::Callback(jsfilter),
|
||||
};
|
||||
NodeIterator::new_with_filter(document, root_node, what_to_show, filter, CanGc::note())
|
||||
NodeIterator::new_with_filter(document, root_node, what_to_show, filter, can_gc)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue