aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-05-31 01:46:09 +0900
committerTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-05-31 03:11:12 +0900
commitf510dcef37a673a84837bdbde56024524155ebd5 (patch)
tree37e5aef0dc5b16ee14bdb951dac86eb35c39cf38 /src
parentf30ea5115406a5c565650317039b8166540a67fc (diff)
downloadservo-f510dcef37a673a84837bdbde56024524155ebd5.tar.gz
servo-f510dcef37a673a84837bdbde56024524155ebd5.zip
Remove needless '&mut self' from HTMLMediaElementMethods.
Diffstat (limited to 'src')
-rw-r--r--src/components/script/dom/htmlmediaelement.rs48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/components/script/dom/htmlmediaelement.rs b/src/components/script/dom/htmlmediaelement.rs
index 8725f5af7fc..6b939a1b001 100644
--- a/src/components/script/dom/htmlmediaelement.rs
+++ b/src/components/script/dom/htmlmediaelement.rs
@@ -37,39 +37,39 @@ impl HTMLMediaElement {
pub trait HTMLMediaElementMethods {
fn Src(&self) -> DOMString;
- fn SetSrc(&mut self, _src: DOMString) -> ErrorResult;
+ fn SetSrc(&self, _src: DOMString) -> ErrorResult;
fn CurrentSrc(&self) -> DOMString;
fn CrossOrigin(&self) -> DOMString;
- fn SetCrossOrigin(&mut self, _cross_origin: DOMString) -> ErrorResult;
+ fn SetCrossOrigin(&self, _cross_origin: DOMString) -> ErrorResult;
fn Preload(&self) -> DOMString;
- fn SetPreload(&mut self, _preload: DOMString) -> ErrorResult;
+ fn SetPreload(&self, _preload: DOMString) -> ErrorResult;
fn Load(&self);
fn CanPlayType(&self, _type: DOMString) -> DOMString;
fn ReadyState(&self) -> u16;
fn Seeking(&self) -> bool;
fn CurrentTime(&self) -> f64;
- fn SetCurrentTime(&mut self, _current_time: f64) -> ErrorResult;
+ fn SetCurrentTime(&self, _current_time: f64) -> ErrorResult;
fn GetDuration(&self) -> f64;
fn Paused(&self) -> bool;
fn DefaultPlaybackRate(&self) -> f64;
- fn SetDefaultPlaybackRate(&mut self, _default_playback_rate: f64) -> ErrorResult;
+ fn SetDefaultPlaybackRate(&self, _default_playback_rate: f64) -> ErrorResult;
fn PlaybackRate(&self) -> f64;
- fn SetPlaybackRate(&mut self, _playback_rate: f64) -> ErrorResult;
+ fn SetPlaybackRate(&self, _playback_rate: f64) -> ErrorResult;
fn Ended(&self) -> bool;
fn Autoplay(&self) -> bool;
- fn SetAutoplay(&mut self, _autoplay: bool) -> ErrorResult;
+ fn SetAutoplay(&self, _autoplay: bool) -> ErrorResult;
fn Loop(&self) -> bool;
- fn SetLoop(&mut self, _loop: bool) -> ErrorResult;
+ fn SetLoop(&self, _loop: bool) -> ErrorResult;
fn Play(&self) -> ErrorResult;
fn Pause(&self) -> ErrorResult;
fn Controls(&self) -> bool;
- fn SetControls(&mut self, _controls: bool) -> ErrorResult;
+ fn SetControls(&self, _controls: bool) -> ErrorResult;
fn Volume(&self) -> f64;
- fn SetVolume(&mut self, _volume: f64) -> ErrorResult;
+ fn SetVolume(&self, _volume: f64) -> ErrorResult;
fn Muted(&self) -> bool;
- fn SetMuted(&mut self, _muted: bool);
+ fn SetMuted(&self, _muted: bool);
fn DefaultMuted(&self) -> bool;
- fn SetDefaultMuted(&mut self, _default_muted: bool) -> ErrorResult;
+ fn SetDefaultMuted(&self, _default_muted: bool) -> ErrorResult;
}
impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
@@ -77,7 +77,7 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
"".to_owned()
}
- fn SetSrc(&mut self, _src: DOMString) -> ErrorResult {
+ fn SetSrc(&self, _src: DOMString) -> ErrorResult {
Ok(())
}
@@ -89,7 +89,7 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
"".to_owned()
}
- fn SetCrossOrigin(&mut self, _cross_origin: DOMString) -> ErrorResult {
+ fn SetCrossOrigin(&self, _cross_origin: DOMString) -> ErrorResult {
Ok(())
}
@@ -97,7 +97,7 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
"".to_owned()
}
- fn SetPreload(&mut self, _preload: DOMString) -> ErrorResult {
+ fn SetPreload(&self, _preload: DOMString) -> ErrorResult {
Ok(())
}
@@ -120,7 +120,7 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
0f64
}
- fn SetCurrentTime(&mut self, _current_time: f64) -> ErrorResult {
+ fn SetCurrentTime(&self, _current_time: f64) -> ErrorResult {
Ok(())
}
@@ -136,7 +136,7 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
0f64
}
- fn SetDefaultPlaybackRate(&mut self, _default_playback_rate: f64) -> ErrorResult {
+ fn SetDefaultPlaybackRate(&self, _default_playback_rate: f64) -> ErrorResult {
Ok(())
}
@@ -144,7 +144,7 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
0f64
}
- fn SetPlaybackRate(&mut self, _playback_rate: f64) -> ErrorResult {
+ fn SetPlaybackRate(&self, _playback_rate: f64) -> ErrorResult {
Ok(())
}
@@ -156,7 +156,7 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
false
}
- fn SetAutoplay(&mut self, _autoplay: bool) -> ErrorResult {
+ fn SetAutoplay(&self, _autoplay: bool) -> ErrorResult {
Ok(())
}
@@ -164,7 +164,7 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
false
}
- fn SetLoop(&mut self, _loop: bool) -> ErrorResult {
+ fn SetLoop(&self, _loop: bool) -> ErrorResult {
Ok(())
}
@@ -180,7 +180,7 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
false
}
- fn SetControls(&mut self, _controls: bool) -> ErrorResult {
+ fn SetControls(&self, _controls: bool) -> ErrorResult {
Ok(())
}
@@ -188,7 +188,7 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
0f64
}
- fn SetVolume(&mut self, _volume: f64) -> ErrorResult {
+ fn SetVolume(&self, _volume: f64) -> ErrorResult {
Ok(())
}
@@ -196,14 +196,14 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
false
}
- fn SetMuted(&mut self, _muted: bool) {
+ fn SetMuted(&self, _muted: bool) {
}
fn DefaultMuted(&self) -> bool {
false
}
- fn SetDefaultMuted(&mut self, _default_muted: bool) -> ErrorResult {
+ fn SetDefaultMuted(&self, _default_muted: bool) -> ErrorResult {
Ok(())
}
}