aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/documentfragment.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/documentfragment.rs')
-rw-r--r--components/script/dom/documentfragment.rs15
1 files changed, 7 insertions, 8 deletions
diff --git a/components/script/dom/documentfragment.rs b/components/script/dom/documentfragment.rs
index 916a3550264..3a2a04c299e 100644
--- a/components/script/dom/documentfragment.rs
+++ b/components/script/dom/documentfragment.rs
@@ -53,23 +53,22 @@ impl DocumentFragment {
impl<'a> DocumentFragmentMethods for JSRef<'a, DocumentFragment> {
// http://dom.spec.whatwg.org/#dom-parentnode-children
- fn Children(&self) -> Temporary<HTMLCollection> {
- let window = window_from_node(*self).root();
- HTMLCollection::children(*window, NodeCast::from_ref(*self))
+ fn Children(self) -> Temporary<HTMLCollection> {
+ let window = window_from_node(self).root();
+ HTMLCollection::children(*window, NodeCast::from_ref(self))
}
// http://dom.spec.whatwg.org/#dom-parentnode-queryselector
- fn QuerySelector(&self, selectors: DOMString) -> Fallible<Option<Temporary<Element>>> {
- let root: JSRef<Node> = NodeCast::from_ref(*self);
+ fn QuerySelector(self, selectors: DOMString) -> Fallible<Option<Temporary<Element>>> {
+ let root: JSRef<Node> = NodeCast::from_ref(self);
root.query_selector(selectors)
}
// http://dom.spec.whatwg.org/#dom-parentnode-queryselectorall
- fn QuerySelectorAll(&self, selectors: DOMString) -> Fallible<Temporary<NodeList>> {
- let root: JSRef<Node> = NodeCast::from_ref(*self);
+ fn QuerySelectorAll(self, selectors: DOMString) -> Fallible<Temporary<NodeList>> {
+ let root: JSRef<Node> = NodeCast::from_ref(self);
root.query_selector_all(selectors)
}
-
}
impl Reflectable for DocumentFragment {