diff options
author | bors-servo <release+servo@mozilla.com> | 2014-05-30 14:45:57 -0400 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2014-05-30 14:45:57 -0400 |
commit | d7cac61d9cc8e4e9f4ef73aeac21075cc46c62b4 (patch) | |
tree | f5568f02d189cf0c1f927f87e41a1a0739b91461 /src/components/script/dom/htmlembedelement.rs | |
parent | da896b8299620ad31bcdc84d931ecdcb3efd6979 (diff) | |
parent | af653d1ce0128d10ec9869fcf5c0bccecdcf64c6 (diff) | |
download | servo-d7cac61d9cc8e4e9f4ef73aeac21075cc46c62b4.tar.gz servo-d7cac61d9cc8e4e9f4ef73aeac21075cc46c62b4.zip |
auto merge of #2520 : saneyuki/servo/mut, r=Ms2ger
Related #2514
- This removes needless `&mut self`s from some DOM type method simply.
- This doesn't include some DOM Types which have basis method called from other types (e.g. `Element`). We still have to need to open their changes.
- This does not include to remove an implicit `deref_mut()`.
Diffstat (limited to 'src/components/script/dom/htmlembedelement.rs')
-rw-r--r-- | src/components/script/dom/htmlembedelement.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/components/script/dom/htmlembedelement.rs b/src/components/script/dom/htmlembedelement.rs index 3f958e6e838..d272bd9a6fc 100644 --- a/src/components/script/dom/htmlembedelement.rs +++ b/src/components/script/dom/htmlembedelement.rs @@ -39,17 +39,17 @@ impl HTMLEmbedElement { pub trait HTMLEmbedElementMethods { fn Src(&self) -> DOMString; - fn SetSrc(&mut self, _src: DOMString) -> ErrorResult; + fn SetSrc(&self, _src: DOMString) -> ErrorResult; fn Type(&self) -> DOMString; - fn SetType(&mut self, _type: DOMString) -> ErrorResult; + fn SetType(&self, _type: DOMString) -> ErrorResult; fn Width(&self) -> DOMString; - fn SetWidth(&mut self, _width: DOMString) -> ErrorResult; + fn SetWidth(&self, _width: DOMString) -> ErrorResult; fn Height(&self) -> DOMString; - fn SetHeight(&mut self, _height: DOMString) -> ErrorResult; + fn SetHeight(&self, _height: DOMString) -> ErrorResult; fn Align(&self) -> DOMString; - fn SetAlign(&mut self, _type: DOMString) -> ErrorResult; + fn SetAlign(&self, _type: DOMString) -> ErrorResult; fn Name(&self) -> DOMString; - fn SetName(&mut self, _type: DOMString) -> ErrorResult; + fn SetName(&self, _type: DOMString) -> ErrorResult; fn GetSVGDocument(&self) -> Option<Temporary<Document>>; } @@ -58,7 +58,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> { "".to_owned() } - fn SetSrc(&mut self, _src: DOMString) -> ErrorResult { + fn SetSrc(&self, _src: DOMString) -> ErrorResult { Ok(()) } @@ -66,7 +66,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> { "".to_owned() } - fn SetType(&mut self, _type: DOMString) -> ErrorResult { + fn SetType(&self, _type: DOMString) -> ErrorResult { Ok(()) } @@ -74,7 +74,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> { "".to_owned() } - fn SetWidth(&mut self, _width: DOMString) -> ErrorResult { + fn SetWidth(&self, _width: DOMString) -> ErrorResult { Ok(()) } @@ -82,7 +82,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> { "".to_owned() } - fn SetHeight(&mut self, _height: DOMString) -> ErrorResult { + fn SetHeight(&self, _height: DOMString) -> ErrorResult { Ok(()) } @@ -90,7 +90,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> { "".to_owned() } - fn SetAlign(&mut self, _type: DOMString) -> ErrorResult { + fn SetAlign(&self, _type: DOMString) -> ErrorResult { Ok(()) } @@ -98,7 +98,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> { "".to_owned() } - fn SetName(&mut self, _type: DOMString) -> ErrorResult { + fn SetName(&self, _type: DOMString) -> ErrorResult { Ok(()) } |