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/htmlframeelement.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/htmlframeelement.rs')
-rw-r--r-- | src/components/script/dom/htmlframeelement.rs | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/components/script/dom/htmlframeelement.rs b/src/components/script/dom/htmlframeelement.rs index df60c7f8fca..320f0e66949 100644 --- a/src/components/script/dom/htmlframeelement.rs +++ b/src/components/script/dom/htmlframeelement.rs @@ -40,23 +40,23 @@ impl HTMLFrameElement { pub trait HTMLFrameElementMethods { fn Name(&self) -> DOMString; - fn SetName(&mut self, _name: DOMString) -> ErrorResult; + fn SetName(&self, _name: DOMString) -> ErrorResult; fn Scrolling(&self) -> DOMString; - fn SetScrolling(&mut self, _scrolling: DOMString) -> ErrorResult; + fn SetScrolling(&self, _scrolling: DOMString) -> ErrorResult; fn Src(&self) -> DOMString; - fn SetSrc(&mut self, _src: DOMString) -> ErrorResult; + fn SetSrc(&self, _src: DOMString) -> ErrorResult; fn FrameBorder(&self) -> DOMString; - fn SetFrameBorder(&mut self, _frameborder: DOMString) -> ErrorResult; + fn SetFrameBorder(&self, _frameborder: DOMString) -> ErrorResult; fn LongDesc(&self) -> DOMString; - fn SetLongDesc(&mut self, _longdesc: DOMString) -> ErrorResult; + fn SetLongDesc(&self, _longdesc: DOMString) -> ErrorResult; fn NoResize(&self) -> bool; - fn SetNoResize(&mut self, _no_resize: bool) -> ErrorResult; + fn SetNoResize(&self, _no_resize: bool) -> ErrorResult; fn GetContentDocument(&self) -> Option<Temporary<Document>>; fn GetContentWindow(&self) -> Option<Temporary<Window>>; fn MarginHeight(&self) -> DOMString; - fn SetMarginHeight(&mut self, _height: DOMString) -> ErrorResult; + fn SetMarginHeight(&self, _height: DOMString) -> ErrorResult; fn MarginWidth(&self) -> DOMString; - fn SetMarginWidth(&mut self, _height: DOMString) -> ErrorResult; + fn SetMarginWidth(&self, _height: DOMString) -> ErrorResult; } impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> { @@ -64,7 +64,7 @@ impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> { "".to_owned() } - fn SetName(&mut self, _name: DOMString) -> ErrorResult { + fn SetName(&self, _name: DOMString) -> ErrorResult { Ok(()) } @@ -72,7 +72,7 @@ impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> { "".to_owned() } - fn SetScrolling(&mut self, _scrolling: DOMString) -> ErrorResult { + fn SetScrolling(&self, _scrolling: DOMString) -> ErrorResult { Ok(()) } @@ -80,7 +80,7 @@ impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> { "".to_owned() } - fn SetSrc(&mut self, _src: DOMString) -> ErrorResult { + fn SetSrc(&self, _src: DOMString) -> ErrorResult { Ok(()) } @@ -88,7 +88,7 @@ impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> { "".to_owned() } - fn SetFrameBorder(&mut self, _frameborder: DOMString) -> ErrorResult { + fn SetFrameBorder(&self, _frameborder: DOMString) -> ErrorResult { Ok(()) } @@ -96,7 +96,7 @@ impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> { "".to_owned() } - fn SetLongDesc(&mut self, _longdesc: DOMString) -> ErrorResult { + fn SetLongDesc(&self, _longdesc: DOMString) -> ErrorResult { Ok(()) } @@ -104,7 +104,7 @@ impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> { false } - fn SetNoResize(&mut self, _no_resize: bool) -> ErrorResult { + fn SetNoResize(&self, _no_resize: bool) -> ErrorResult { Ok(()) } @@ -120,7 +120,7 @@ impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> { "".to_owned() } - fn SetMarginHeight(&mut self, _height: DOMString) -> ErrorResult { + fn SetMarginHeight(&self, _height: DOMString) -> ErrorResult { Ok(()) } @@ -128,7 +128,7 @@ impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> { "".to_owned() } - fn SetMarginWidth(&mut self, _height: DOMString) -> ErrorResult { + fn SetMarginWidth(&self, _height: DOMString) -> ErrorResult { Ok(()) } } |