mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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 {
|
||||
fn Disabled(&self) -> bool;
|
||||
fn SetDisabled(&mut self, _disabled: bool) -> ErrorResult;
|
||||
fn SetDisabled(&self, _disabled: bool) -> ErrorResult;
|
||||
fn GetForm(&self) -> Option<Temporary<HTMLFormElement>>;
|
||||
fn Name(&self) -> DOMString;
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult;
|
||||
fn SetName(&self, _name: DOMString) -> ErrorResult;
|
||||
fn Type(&self) -> DOMString;
|
||||
fn Elements(&self) -> Temporary<HTMLCollection>;
|
||||
fn WillValidate(&self) -> bool;
|
||||
fn Validity(&self) -> Temporary<ValidityState>;
|
||||
fn ValidationMessage(&self) -> DOMString;
|
||||
fn CheckValidity(&self) -> bool;
|
||||
fn SetCustomValidity(&mut self, _error: DOMString);
|
||||
fn SetCustomValidity(&self, _error: DOMString);
|
||||
}
|
||||
|
||||
impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
|
||||
|
@ -60,7 +60,7 @@ impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
|
|||
false
|
||||
}
|
||||
|
||||
fn SetDisabled(&mut self, _disabled: bool) -> ErrorResult {
|
||||
fn SetDisabled(&self, _disabled: bool) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
|
|||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
||||
fn SetName(&self, _name: DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -114,6 +114,6 @@ impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
|
|||
false
|
||||
}
|
||||
|
||||
fn SetCustomValidity(&mut self, _error: DOMString) {
|
||||
fn SetCustomValidity(&self, _error: DOMString) {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue