aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domimplementation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/domimplementation.rs')
-rw-r--r--components/script/dom/domimplementation.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/domimplementation.rs b/components/script/dom/domimplementation.rs
index cd4b59c7d62..91b97487b4f 100644
--- a/components/script/dom/domimplementation.rs
+++ b/components/script/dom/domimplementation.rs
@@ -49,9 +49,9 @@ impl DOMImplementation {
}
// https://dom.spec.whatwg.org/#domimplementation
-impl<'a> DOMImplementationMethods for &'a DOMImplementation {
+impl DOMImplementationMethods for DOMImplementation {
// https://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype
- fn CreateDocumentType(self, qualified_name: DOMString, pubid: DOMString, sysid: DOMString)
+ fn CreateDocumentType(&self, qualified_name: DOMString, pubid: DOMString, sysid: DOMString)
-> Fallible<Root<DocumentType>> {
try!(validate_qualified_name(&qualified_name));
let document = self.document.root();
@@ -59,7 +59,7 @@ impl<'a> DOMImplementationMethods for &'a DOMImplementation {
}
// https://dom.spec.whatwg.org/#dom-domimplementation-createdocument
- fn CreateDocument(self, namespace: Option<DOMString>, qname: DOMString,
+ fn CreateDocument(&self, namespace: Option<DOMString>, qname: DOMString,
maybe_doctype: Option<&DocumentType>) -> Fallible<Root<Document>> {
let doc = self.document.root();
let doc = doc.r();
@@ -108,7 +108,7 @@ impl<'a> DOMImplementationMethods for &'a DOMImplementation {
}
// https://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
- fn CreateHTMLDocument(self, title: Option<DOMString>) -> Root<Document> {
+ fn CreateHTMLDocument(&self, title: Option<DOMString>) -> Root<Document> {
let document = self.document.root();
let document = document.r();
let win = document.window();
@@ -167,7 +167,7 @@ impl<'a> DOMImplementationMethods for &'a DOMImplementation {
}
// https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
- fn HasFeature(self) -> bool {
+ fn HasFeature(&self) -> bool {
true
}
}