mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Remove needless '&mut self' from HTMLOptionElementMethods.
This commit is contained in:
parent
0461fd31dd
commit
5e5194f343
1 changed files with 12 additions and 12 deletions
|
@ -40,18 +40,18 @@ impl HTMLOptionElement {
|
||||||
|
|
||||||
pub trait HTMLOptionElementMethods {
|
pub trait HTMLOptionElementMethods {
|
||||||
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 Label(&self) -> DOMString;
|
fn Label(&self) -> DOMString;
|
||||||
fn SetLabel(&mut self, _label: DOMString) -> ErrorResult;
|
fn SetLabel(&self, _label: DOMString) -> ErrorResult;
|
||||||
fn DefaultSelected(&self) -> bool;
|
fn DefaultSelected(&self) -> bool;
|
||||||
fn SetDefaultSelected(&mut self, _default_selected: bool) -> ErrorResult;
|
fn SetDefaultSelected(&self, _default_selected: bool) -> ErrorResult;
|
||||||
fn Selected(&self) -> bool;
|
fn Selected(&self) -> bool;
|
||||||
fn SetSelected(&mut self, _selected: bool) -> ErrorResult;
|
fn SetSelected(&self, _selected: bool) -> ErrorResult;
|
||||||
fn Value(&self) -> DOMString;
|
fn Value(&self) -> DOMString;
|
||||||
fn SetValue(&mut self, _value: DOMString) -> ErrorResult;
|
fn SetValue(&self, _value: DOMString) -> ErrorResult;
|
||||||
fn Text(&self) -> DOMString;
|
fn Text(&self) -> DOMString;
|
||||||
fn SetText(&mut self, _text: DOMString) -> ErrorResult;
|
fn SetText(&self, _text: DOMString) -> ErrorResult;
|
||||||
fn Index(&self) -> i32;
|
fn Index(&self) -> i32;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetDisabled(&mut self, _disabled: bool) -> ErrorResult {
|
fn SetDisabled(&self, _disabled: bool) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetLabel(&mut self, _label: DOMString) -> ErrorResult {
|
fn SetLabel(&self, _label: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetDefaultSelected(&mut self, _default_selected: bool) -> ErrorResult {
|
fn SetDefaultSelected(&self, _default_selected: bool) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetSelected(&mut self, _selected: bool) -> ErrorResult {
|
fn SetSelected(&self, _selected: bool) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetValue(&mut self, _value: DOMString) -> ErrorResult {
|
fn SetValue(&self, _value: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetText(&mut self, _text: DOMString) -> ErrorResult {
|
fn SetText(&self, _text: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue