diff options
Diffstat (limited to 'src/components/script/dom/documentfragment.rs')
-rw-r--r-- | src/components/script/dom/documentfragment.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/script/dom/documentfragment.rs b/src/components/script/dom/documentfragment.rs index aee61d03b51..55e782406b3 100644 --- a/src/components/script/dom/documentfragment.rs +++ b/src/components/script/dom/documentfragment.rs @@ -49,13 +49,13 @@ impl DocumentFragment { } pub trait DocumentFragmentMethods { - fn Children(&self, abstract_self: &JSRef<DocumentFragment>) -> Unrooted<HTMLCollection>; + fn Children(&self) -> Unrooted<HTMLCollection>; } impl<'a> DocumentFragmentMethods for JSRef<'a, DocumentFragment> { - fn Children(&self, abstract_self: &JSRef<DocumentFragment>) -> Unrooted<HTMLCollection> { + fn Children(&self) -> Unrooted<HTMLCollection> { let roots = RootCollection::new(); - let window = window_from_node(abstract_self).root(&roots); - HTMLCollection::children(&window.root_ref(), NodeCast::from_ref(abstract_self)) + let window = window_from_node(self).root(&roots); + HTMLCollection::children(&window.root_ref(), NodeCast::from_ref(self)) } } |