aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlcanvaselement.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2014-05-30 14:45:57 -0400
committerbors-servo <release+servo@mozilla.com>2014-05-30 14:45:57 -0400
commitd7cac61d9cc8e4e9f4ef73aeac21075cc46c62b4 (patch)
treef5568f02d189cf0c1f927f87e41a1a0739b91461 /src/components/script/dom/htmlcanvaselement.rs
parentda896b8299620ad31bcdc84d931ecdcb3efd6979 (diff)
parentaf653d1ce0128d10ec9869fcf5c0bccecdcf64c6 (diff)
downloadservo-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/htmlcanvaselement.rs')
-rw-r--r--src/components/script/dom/htmlcanvaselement.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/script/dom/htmlcanvaselement.rs b/src/components/script/dom/htmlcanvaselement.rs
index 7ae54440bab..8dd7240f764 100644
--- a/src/components/script/dom/htmlcanvaselement.rs
+++ b/src/components/script/dom/htmlcanvaselement.rs
@@ -39,9 +39,9 @@ impl HTMLCanvasElement {
pub trait HTMLCanvasElementMethods {
fn Width(&self) -> u32;
- fn SetWidth(&mut self, _width: u32) -> ErrorResult;
+ fn SetWidth(&self, _width: u32) -> ErrorResult;
fn Height(&self) -> u32;
- fn SetHeight(&mut self, _height: u32) -> ErrorResult;
+ fn SetHeight(&self, _height: u32) -> ErrorResult;
}
impl<'a> HTMLCanvasElementMethods for JSRef<'a, HTMLCanvasElement> {
@@ -49,7 +49,7 @@ impl<'a> HTMLCanvasElementMethods for JSRef<'a, HTMLCanvasElement> {
0
}
- fn SetWidth(&mut self, _width: u32) -> ErrorResult {
+ fn SetWidth(&self, _width: u32) -> ErrorResult {
Ok(())
}
@@ -57,7 +57,7 @@ impl<'a> HTMLCanvasElementMethods for JSRef<'a, HTMLCanvasElement> {
0
}
- fn SetHeight(&mut self, _height: u32) -> ErrorResult {
+ fn SetHeight(&self, _height: u32) -> ErrorResult {
Ok(())
}
}