mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Remove needless '&mut self' from HTMLCanvasElementMethods.
This commit is contained in:
parent
e0a11bc68c
commit
803f8a33e5
1 changed files with 4 additions and 4 deletions
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue