diff options
author | Josh Matthews <josh@joshmatthews.net> | 2014-04-10 22:13:08 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2014-05-03 14:18:30 -0400 |
commit | 7daa97c7e5de3dac14b4d1c8a923448b025e3c09 (patch) | |
tree | 9f7766c799035785d75113838c5950f777b262d1 /src/components/script/dom/documentfragment.rs | |
parent | 76783b029e5e10da7fd61ab356a8f80a1eaf32e0 (diff) | |
download | servo-7daa97c7e5de3dac14b4d1c8a923448b025e3c09.tar.gz servo-7daa97c7e5de3dac14b4d1c8a923448b025e3c09.zip |
Remove abstract_self.
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)) } } |