aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domtokenlist.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/domtokenlist.rs')
-rw-r--r--components/script/dom/domtokenlist.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/domtokenlist.rs b/components/script/dom/domtokenlist.rs
index fc4fefb3ec0..8e44de023b9 100644
--- a/components/script/dom/domtokenlist.rs
+++ b/components/script/dom/domtokenlist.rs
@@ -49,17 +49,17 @@ impl Reflectable for DOMTokenList {
}
trait PrivateDOMTokenListHelpers {
- fn attribute(&self) -> Option<Temporary<Attr>>;
- fn check_token_exceptions<'a>(&self, token: &'a str) -> Fallible<&'a str>;
+ fn attribute(self) -> Option<Temporary<Attr>>;
+ fn check_token_exceptions<'a>(self, token: &'a str) -> Fallible<&'a str>;
}
impl<'a> PrivateDOMTokenListHelpers for JSRef<'a, DOMTokenList> {
- fn attribute(&self) -> Option<Temporary<Attr>> {
+ fn attribute(self) -> Option<Temporary<Attr>> {
let element = self.element.root();
element.deref().get_attribute(Null, self.local_name)
}
- fn check_token_exceptions<'a>(&self, token: &'a str) -> Fallible<&'a str> {
+ fn check_token_exceptions<'a>(self, token: &'a str) -> Fallible<&'a str> {
match token {
"" => Err(Syntax),
token if token.find(HTML_SPACE_CHARACTERS).is_some() => Err(InvalidCharacter),