mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Remove needless '&mut self' from HTMLFontElementMethods.
This commit is contained in:
parent
184e789000
commit
abc53ad403
1 changed files with 6 additions and 6 deletions
|
@ -39,11 +39,11 @@ impl HTMLFontElement {
|
|||
|
||||
pub trait HTMLFontElementMethods {
|
||||
fn Color(&self) -> DOMString;
|
||||
fn SetColor(&mut self, _color: DOMString) -> ErrorResult;
|
||||
fn SetColor(&self, _color: DOMString) -> ErrorResult;
|
||||
fn Face(&self) -> DOMString;
|
||||
fn SetFace(&mut self, _face: DOMString) -> ErrorResult;
|
||||
fn SetFace(&self, _face: DOMString) -> ErrorResult;
|
||||
fn Size(&self) -> DOMString;
|
||||
fn SetSize(&mut self, _size: DOMString) -> ErrorResult;
|
||||
fn SetSize(&self, _size: DOMString) -> ErrorResult;
|
||||
}
|
||||
|
||||
impl<'a> HTMLFontElementMethods for JSRef<'a, HTMLFontElement> {
|
||||
|
@ -51,7 +51,7 @@ impl<'a> HTMLFontElementMethods for JSRef<'a, HTMLFontElement> {
|
|||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetColor(&mut self, _color: DOMString) -> ErrorResult {
|
||||
fn SetColor(&self, _color: DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ impl<'a> HTMLFontElementMethods for JSRef<'a, HTMLFontElement> {
|
|||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetFace(&mut self, _face: DOMString) -> ErrorResult {
|
||||
fn SetFace(&self, _face: DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ impl<'a> HTMLFontElementMethods for JSRef<'a, HTMLFontElement> {
|
|||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSize(&mut self, _size: DOMString) -> ErrorResult {
|
||||
fn SetSize(&self, _size: DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue