mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Remove needless '&mut self' from HTMLFieldSetElementMethods.
This commit is contained in:
parent
9ff3ec1fe7
commit
184e789000
1 changed files with 6 additions and 6 deletions
|
@ -42,17 +42,17 @@ impl HTMLFieldSetElement {
|
||||||
|
|
||||||
pub trait HTMLFieldSetElementMethods {
|
pub trait HTMLFieldSetElementMethods {
|
||||||
fn Disabled(&self) -> bool;
|
fn Disabled(&self) -> bool;
|
||||||
fn SetDisabled(&mut self, _disabled: bool) -> ErrorResult;
|
fn SetDisabled(&self, _disabled: bool) -> ErrorResult;
|
||||||
fn GetForm(&self) -> Option<Temporary<HTMLFormElement>>;
|
fn GetForm(&self) -> Option<Temporary<HTMLFormElement>>;
|
||||||
fn Name(&self) -> DOMString;
|
fn Name(&self) -> DOMString;
|
||||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult;
|
fn SetName(&self, _name: DOMString) -> ErrorResult;
|
||||||
fn Type(&self) -> DOMString;
|
fn Type(&self) -> DOMString;
|
||||||
fn Elements(&self) -> Temporary<HTMLCollection>;
|
fn Elements(&self) -> Temporary<HTMLCollection>;
|
||||||
fn WillValidate(&self) -> bool;
|
fn WillValidate(&self) -> bool;
|
||||||
fn Validity(&self) -> Temporary<ValidityState>;
|
fn Validity(&self) -> Temporary<ValidityState>;
|
||||||
fn ValidationMessage(&self) -> DOMString;
|
fn ValidationMessage(&self) -> DOMString;
|
||||||
fn CheckValidity(&self) -> bool;
|
fn CheckValidity(&self) -> bool;
|
||||||
fn SetCustomValidity(&mut self, _error: DOMString);
|
fn SetCustomValidity(&self, _error: DOMString);
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
|
impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
|
||||||
|
@ -60,7 +60,7 @@ impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetDisabled(&mut self, _disabled: bool) -> ErrorResult {
|
fn SetDisabled(&self, _disabled: bool) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
fn SetName(&self, _name: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,6 +114,6 @@ impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetCustomValidity(&mut self, _error: DOMString) {
|
fn SetCustomValidity(&self, _error: DOMString) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue