aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/nodeiterator.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-10-17 02:23:25 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2015-10-19 09:36:52 +0200
commit409b5e3695828e01fc25cbab96148c4932f07cad (patch)
tree3bb4c855c3164ec5be37929739c081fc230cea7e /components/script/dom/nodeiterator.rs
parente889b0914b88bbbe903bc390c444fb13f4c0dce5 (diff)
downloadservo-409b5e3695828e01fc25cbab96148c4932f07cad.tar.gz
servo-409b5e3695828e01fc25cbab96148c4932f07cad.zip
Return a reference in Document::window()
Diffstat (limited to 'components/script/dom/nodeiterator.rs')
-rw-r--r--components/script/dom/nodeiterator.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/nodeiterator.rs b/components/script/dom/nodeiterator.rs
index c7152231776..0194215da2d 100644
--- a/components/script/dom/nodeiterator.rs
+++ b/components/script/dom/nodeiterator.rs
@@ -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)
}