aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlcollection.rs
diff options
context:
space:
mode:
authornxnfufunezn <nxnfufunezn@gmail.com>2015-10-31 17:41:00 +0530
committernxnfufunezn <nxnfufunezn@gmail.com>2015-10-31 18:15:16 +0530
commitd8ef3809a6c73922a5affc475f623a0f1152be28 (patch)
tree282199e1d9c244c20d62f35b7f6517913d2e37f0 /components/script/dom/htmlcollection.rs
parent521a87180a85709f8f704df33537f79bd131bf71 (diff)
downloadservo-d8ef3809a6c73922a5affc475f623a0f1152be28.tar.gz
servo-d8ef3809a6c73922a5affc475f623a0f1152be28.zip
Removed JS::root Fixes #8251
Diffstat (limited to 'components/script/dom/htmlcollection.rs')
-rw-r--r--components/script/dom/htmlcollection.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlcollection.rs b/components/script/dom/htmlcollection.rs
index 4ddc0fef6dd..62335a33a6e 100644
--- a/components/script/dom/htmlcollection.rs
+++ b/components/script/dom/htmlcollection.rs
@@ -164,7 +164,7 @@ impl HTMLCollection {
pub fn elements_iter(&self) -> HTMLCollectionElementsIter {
let ref filter = self.collection.1;
- let root = self.collection.0.root();
+ let root = Root::from_ref(&*self.collection.0);
let mut node_iter = root.traverse_preorder();
let _ = node_iter.next(); // skip the root node
HTMLCollectionElementsIter {