mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Remove needless '&mut self' from HTMLProgressElementMethods.
This commit is contained in:
parent
0462f42371
commit
6a6959a208
1 changed files with 4 additions and 4 deletions
|
@ -39,9 +39,9 @@ impl HTMLProgressElement {
|
||||||
|
|
||||||
pub trait HTMLProgressElementMethods {
|
pub trait HTMLProgressElementMethods {
|
||||||
fn Value(&self) -> f64;
|
fn Value(&self) -> f64;
|
||||||
fn SetValue(&mut self, _value: f64) -> ErrorResult;
|
fn SetValue(&self, _value: f64) -> ErrorResult;
|
||||||
fn Max(&self) -> f64;
|
fn Max(&self) -> f64;
|
||||||
fn SetMax(&mut self, _max: f64) -> ErrorResult;
|
fn SetMax(&self, _max: f64) -> ErrorResult;
|
||||||
fn Position(&self) -> f64;
|
fn Position(&self) -> f64;
|
||||||
fn GetPositiom(&self) -> Fallible<f64>;
|
fn GetPositiom(&self) -> Fallible<f64>;
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ impl<'a> HTMLProgressElementMethods for JSRef<'a, HTMLProgressElement> {
|
||||||
0f64
|
0f64
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetValue(&mut self, _value: f64) -> ErrorResult {
|
fn SetValue(&self, _value: f64) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ impl<'a> HTMLProgressElementMethods for JSRef<'a, HTMLProgressElement> {
|
||||||
0f64
|
0f64
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetMax(&mut self, _max: f64) -> ErrorResult {
|
fn SetMax(&self, _max: f64) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue