diff options
Diffstat (limited to 'src/components/script/dom/htmlcollection.rs')
-rw-r--r-- | src/components/script/dom/htmlcollection.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/htmlcollection.rs b/src/components/script/dom/htmlcollection.rs index aeb506938f8..121564ba25e 100644 --- a/src/components/script/dom/htmlcollection.rs +++ b/src/components/script/dom/htmlcollection.rs @@ -42,7 +42,7 @@ impl HTMLCollection { HTMLCollection { collection: collection, reflector_: Reflector::new(), - window: window.unrooted(), + window: JS::from_rooted(window), } } @@ -55,7 +55,7 @@ impl HTMLCollection { impl HTMLCollection { pub fn create(window: &JSRef<Window>, root: &JSRef<Node>, filter: Box<CollectionFilter>) -> Temporary<HTMLCollection> { - HTMLCollection::new(window, Live(root.unrooted(), filter)) + HTMLCollection::new(window, Live(JS::from_rooted(root), filter)) } pub fn by_tag_name(window: &JSRef<Window>, root: &JSRef<Node>, tag: DOMString) |