mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Return a reference in Document::window()
This commit is contained in:
parent
e889b0914b
commit
409b5e3695
12 changed files with 31 additions and 39 deletions
|
@ -47,9 +47,8 @@ impl NodeIterator {
|
|||
root_node: &Node,
|
||||
what_to_show: u32,
|
||||
filter: Filter) -> Root<NodeIterator> {
|
||||
let window = document.window();
|
||||
reflect_dom_object(box NodeIterator::new_inherited(root_node, what_to_show, filter),
|
||||
GlobalRef::Window(window.r()),
|
||||
GlobalRef::Window(document.window()),
|
||||
NodeIteratorBinding::Wrap)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue