aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domstringmap.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-08-27 22:15:54 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2015-08-27 22:27:43 +0200
commit709d347872e37ab2358e057d24557b9977238ecd (patch)
tree89f726bf207325eea8a8ca316f6d77d8c88432cb /components/script/dom/domstringmap.rs
parent856fda7f2e3fe4abd6de247e8bdaf8cedf3764c2 (diff)
downloadservo-709d347872e37ab2358e057d24557b9977238ecd.tar.gz
servo-709d347872e37ab2358e057d24557b9977238ecd.zip
Make the traits for the IDL interfaces take &self
Diffstat (limited to 'components/script/dom/domstringmap.rs')
-rw-r--r--components/script/dom/domstringmap.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/script/dom/domstringmap.rs b/components/script/dom/domstringmap.rs
index a26ef3f9bbc..112fb42ca32 100644
--- a/components/script/dom/domstringmap.rs
+++ b/components/script/dom/domstringmap.rs
@@ -34,26 +34,26 @@ impl DOMStringMap {
}
// https://html.spec.whatwg.org/#domstringmap
-impl<'a> DOMStringMapMethods for &'a DOMStringMap {
+impl DOMStringMapMethods for DOMStringMap {
// https://html.spec.whatwg.org/multipage/#dom-domstringmap-additem
- fn NamedCreator(self, name: DOMString, value: DOMString) -> ErrorResult {
+ fn NamedCreator(&self, name: DOMString, value: DOMString) -> ErrorResult {
self.NamedSetter(name, value)
}
// https://html.spec.whatwg.org/multipage/#dom-domstringmap-removeitem
- fn NamedDeleter(self, name: DOMString) {
+ fn NamedDeleter(&self, name: DOMString) {
let element = self.element.root();
element.r().delete_custom_attr(name)
}
// https://html.spec.whatwg.org/multipage/#dom-domstringmap-setitem
- fn NamedSetter(self, name: DOMString, value: DOMString) -> ErrorResult {
+ fn NamedSetter(&self, name: DOMString, value: DOMString) -> ErrorResult {
let element = self.element.root();
element.r().set_custom_attr(name, value)
}
// https://html.spec.whatwg.org/multipage/#dom-domstringmap-nameditem
- fn NamedGetter(self, name: DOMString, found: &mut bool) -> DOMString {
+ fn NamedGetter(&self, name: DOMString, found: &mut bool) -> DOMString {
let element = self.element.root();
match element.r().get_custom_attr(name) {
Some(value) => {
@@ -68,7 +68,7 @@ impl<'a> DOMStringMapMethods for &'a DOMStringMap {
}
// https://html.spec.whatwg.org/multipage/#domstringmap
- fn SupportedPropertyNames(self) -> Vec<DOMString> {
+ fn SupportedPropertyNames(&self) -> Vec<DOMString> {
// FIXME: unimplemented (https://github.com/servo/servo/issues/7273)
vec![]
}