aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlvideoelement.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/htmlvideoelement.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/htmlvideoelement.rs')
-rw-r--r--src/components/script/dom/htmlvideoelement.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/script/dom/htmlvideoelement.rs b/src/components/script/dom/htmlvideoelement.rs
index 0c4c291f31c..e6ec0ecf5c3 100644
--- a/src/components/script/dom/htmlvideoelement.rs
+++ b/src/components/script/dom/htmlvideoelement.rs
@@ -39,13 +39,13 @@ impl HTMLVideoElement {
pub trait HTMLVideoElementMethods {
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;
fn VideoWidth(&self) -> u32;
fn VideoHeight(&self) -> u32;
fn Poster(&self) -> DOMString;
- fn SetPoster(&mut self, _poster: DOMString) -> ErrorResult;
+ fn SetPoster(&self, _poster: DOMString) -> ErrorResult;
}
impl<'a> HTMLVideoElementMethods for JSRef<'a, HTMLVideoElement> {
@@ -53,7 +53,7 @@ impl<'a> HTMLVideoElementMethods for JSRef<'a, HTMLVideoElement> {
0
}
- fn SetWidth(&mut self, _width: u32) -> ErrorResult {
+ fn SetWidth(&self, _width: u32) -> ErrorResult {
Ok(())
}
@@ -61,7 +61,7 @@ impl<'a> HTMLVideoElementMethods for JSRef<'a, HTMLVideoElement> {
0
}
- fn SetHeight(&mut self, _height: u32) -> ErrorResult {
+ fn SetHeight(&self, _height: u32) -> ErrorResult {
Ok(())
}
@@ -77,7 +77,7 @@ impl<'a> HTMLVideoElementMethods for JSRef<'a, HTMLVideoElement> {
"".to_owned()
}
- fn SetPoster(&mut self, _poster: DOMString) -> ErrorResult {
+ fn SetPoster(&self, _poster: DOMString) -> ErrorResult {
Ok(())
}
}