diff options
author | Edit Balint <edbalint@inf.u-szeged.hu> | 2014-06-13 14:58:38 +0200 |
---|---|---|
committer | Edit Balint <edbalint@inf.u-szeged.hu> | 2014-06-13 19:06:28 +0200 |
commit | bda29ade0912f7e17958f2f43dbe068bbb2bfd51 (patch) | |
tree | a456cf772921c3c98ab256dc72d8a7c6e14a6062 /src/components/script/dom/htmlcollection.rs | |
parent | da668f53d9df3cc21e708d4521aef458ea5bf231 (diff) | |
download | servo-bda29ade0912f7e17958f2f43dbe068bbb2bfd51.tar.gz servo-bda29ade0912f7e17958f2f43dbe068bbb2bfd51.zip |
Replace uses of JS<T>.unrooted() with JS::from_rooted #2580
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) |