aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/documenttype.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/documenttype.rs')
-rw-r--r--components/script/dom/documenttype.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/components/script/dom/documenttype.rs b/components/script/dom/documenttype.rs
index c7f7aa9af93..265c918b466 100644
--- a/components/script/dom/documenttype.rs
+++ b/components/script/dom/documenttype.rs
@@ -73,39 +73,39 @@ impl DocumentType {
}
}
-impl<'a> DocumentTypeMethods for &'a DocumentType {
+impl DocumentTypeMethods for DocumentType {
// https://dom.spec.whatwg.org/#dom-documenttype-name
- fn Name(self) -> DOMString {
+ fn Name(&self) -> DOMString {
self.name.clone()
}
// https://dom.spec.whatwg.org/#dom-documenttype-publicid
- fn PublicId(self) -> DOMString {
+ fn PublicId(&self) -> DOMString {
self.public_id.clone()
}
// https://dom.spec.whatwg.org/#dom-documenttype-systemid
- fn SystemId(self) -> DOMString {
+ fn SystemId(&self) -> DOMString {
self.system_id.clone()
}
// https://dom.spec.whatwg.org/#dom-childnode-before
- fn Before(self, nodes: Vec<NodeOrString>) -> ErrorResult {
+ fn Before(&self, nodes: Vec<NodeOrString>) -> ErrorResult {
NodeCast::from_ref(self).before(nodes)
}
// https://dom.spec.whatwg.org/#dom-childnode-after
- fn After(self, nodes: Vec<NodeOrString>) -> ErrorResult {
+ fn After(&self, nodes: Vec<NodeOrString>) -> ErrorResult {
NodeCast::from_ref(self).after(nodes)
}
// https://dom.spec.whatwg.org/#dom-childnode-replacewith
- fn ReplaceWith(self, nodes: Vec<NodeOrString>) -> ErrorResult {
+ fn ReplaceWith(&self, nodes: Vec<NodeOrString>) -> ErrorResult {
NodeCast::from_ref(self).replace_with(nodes)
}
// https://dom.spec.whatwg.org/#dom-childnode-remove
- fn Remove(self) {
+ fn Remove(&self) {
let node = NodeCast::from_ref(self);
node.remove_self();
}