diff options
author | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-05-31 02:33:36 +0900 |
---|---|---|
committer | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-05-31 03:11:15 +0900 |
commit | 4b40fbabc9e16215a99d11abcd8344fe252736cf (patch) | |
tree | 5a8d1fa3d5b2ce868dc7a64967e5727f86a0e636 /src/components/script/dom/htmlappletelement.rs | |
parent | c46d7e669a840c618ce0f51fb6fe929cb3aec6d5 (diff) | |
download | servo-4b40fbabc9e16215a99d11abcd8344fe252736cf.tar.gz servo-4b40fbabc9e16215a99d11abcd8344fe252736cf.zip |
Remove needless '&mut self' from HTMLAppletElementMethods.
Diffstat (limited to 'src/components/script/dom/htmlappletelement.rs')
-rw-r--r-- | src/components/script/dom/htmlappletelement.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/components/script/dom/htmlappletelement.rs b/src/components/script/dom/htmlappletelement.rs index f4395fd6a65..221875677ea 100644 --- a/src/components/script/dom/htmlappletelement.rs +++ b/src/components/script/dom/htmlappletelement.rs @@ -39,7 +39,7 @@ impl HTMLAppletElement { pub trait HTMLAppletElementMethods { fn Align(&self) -> DOMString; - fn SetAlign(&mut self, _align: DOMString) -> ErrorResult; + fn SetAlign(&self, _align: DOMString) -> ErrorResult; fn Alt(&self) -> DOMString; fn SetAlt(&self, _alt: DOMString) -> ErrorResult; fn Archive(&self) -> DOMString; @@ -51,15 +51,15 @@ pub trait HTMLAppletElementMethods { fn Height(&self) -> DOMString; fn SetHeight(&self, _height: DOMString) -> ErrorResult; fn Hspace(&self) -> u32; - fn SetHspace(&mut self, _hspace: u32) -> ErrorResult; + fn SetHspace(&self, _hspace: u32) -> ErrorResult; fn Name(&self) -> DOMString; - fn SetName(&mut self, _name: DOMString) -> ErrorResult; + fn SetName(&self, _name: DOMString) -> ErrorResult; fn Object(&self) -> DOMString; - fn SetObject(&mut self, _object: DOMString) -> ErrorResult; + fn SetObject(&self, _object: DOMString) -> ErrorResult; fn Vspace(&self) -> u32; - fn SetVspace(&mut self, _vspace: u32) -> ErrorResult; + fn SetVspace(&self, _vspace: u32) -> ErrorResult; fn Width(&self) -> DOMString; - fn SetWidth(&mut self, _width: DOMString) -> ErrorResult; + fn SetWidth(&self, _width: DOMString) -> ErrorResult; } impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> { @@ -67,7 +67,7 @@ impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> { "".to_owned() } - fn SetAlign(&mut self, _align: DOMString) -> ErrorResult { + fn SetAlign(&self, _align: DOMString) -> ErrorResult { Ok(()) } @@ -115,7 +115,7 @@ impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> { 0 } - fn SetHspace(&mut self, _hspace: u32) -> ErrorResult { + fn SetHspace(&self, _hspace: u32) -> ErrorResult { Ok(()) } @@ -123,7 +123,7 @@ impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> { "".to_owned() } - fn SetName(&mut self, _name: DOMString) -> ErrorResult { + fn SetName(&self, _name: DOMString) -> ErrorResult { Ok(()) } @@ -131,7 +131,7 @@ impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> { "".to_owned() } - fn SetObject(&mut self, _object: DOMString) -> ErrorResult { + fn SetObject(&self, _object: DOMString) -> ErrorResult { Ok(()) } @@ -139,7 +139,7 @@ impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> { 0 } - fn SetVspace(&mut self, _vspace: u32) -> ErrorResult { + fn SetVspace(&self, _vspace: u32) -> ErrorResult { Ok(()) } @@ -147,7 +147,7 @@ impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> { "".to_owned() } - fn SetWidth(&mut self, _width: DOMString) -> ErrorResult { + fn SetWidth(&self, _width: DOMString) -> ErrorResult { Ok(()) } } |