Return a reference in Document::window()

This commit is contained in:
Anthony Ramine 2015-10-17 02:23:25 +02:00
parent e889b0914b
commit 409b5e3695
12 changed files with 31 additions and 39 deletions

View file

@ -45,9 +45,8 @@ impl TreeWalker {
root_node: &Node,
what_to_show: u32,
filter: Filter) -> Root<TreeWalker> {
let window = document.window();
reflect_dom_object(box TreeWalker::new_inherited(root_node, what_to_show, filter),
GlobalRef::Window(window.r()),
GlobalRef::Window(document.window()),
TreeWalkerBinding::Wrap)
}