mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Remove needless '&mut self' from HTMLFormElementMethods.
This commit is contained in:
parent
abc53ad403
commit
071216684b
1 changed files with 18 additions and 18 deletions
|
@ -40,23 +40,23 @@ impl HTMLFormElement {
|
||||||
|
|
||||||
pub trait HTMLFormElementMethods {
|
pub trait HTMLFormElementMethods {
|
||||||
fn AcceptCharset(&self) -> DOMString;
|
fn AcceptCharset(&self) -> DOMString;
|
||||||
fn SetAcceptCharset(&mut self, _accept_charset: DOMString) -> ErrorResult;
|
fn SetAcceptCharset(&self, _accept_charset: DOMString) -> ErrorResult;
|
||||||
fn Action(&self) -> DOMString;
|
fn Action(&self) -> DOMString;
|
||||||
fn SetAction(&mut self, _action: DOMString) -> ErrorResult;
|
fn SetAction(&self, _action: DOMString) -> ErrorResult;
|
||||||
fn Autocomplete(&self) -> DOMString;
|
fn Autocomplete(&self) -> DOMString;
|
||||||
fn SetAutocomplete(&mut self, _autocomplete: DOMString) -> ErrorResult;
|
fn SetAutocomplete(&self, _autocomplete: DOMString) -> ErrorResult;
|
||||||
fn Enctype(&self) -> DOMString;
|
fn Enctype(&self) -> DOMString;
|
||||||
fn SetEnctype(&mut self, _enctype: DOMString) -> ErrorResult;
|
fn SetEnctype(&self, _enctype: DOMString) -> ErrorResult;
|
||||||
fn Encoding(&self) -> DOMString;
|
fn Encoding(&self) -> DOMString;
|
||||||
fn SetEncoding(&mut self, _encoding: DOMString) -> ErrorResult;
|
fn SetEncoding(&self, _encoding: DOMString) -> ErrorResult;
|
||||||
fn Method(&self) -> DOMString;
|
fn Method(&self) -> DOMString;
|
||||||
fn SetMethod(&mut self, _method: DOMString) -> ErrorResult;
|
fn SetMethod(&self, _method: DOMString) -> ErrorResult;
|
||||||
fn Name(&self) -> DOMString;
|
fn Name(&self) -> DOMString;
|
||||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult;
|
fn SetName(&self, _name: DOMString) -> ErrorResult;
|
||||||
fn NoValidate(&self) -> bool;
|
fn NoValidate(&self) -> bool;
|
||||||
fn SetNoValidate(&mut self, _no_validate: bool) -> ErrorResult;
|
fn SetNoValidate(&self, _no_validate: bool) -> ErrorResult;
|
||||||
fn Target(&self) -> DOMString;
|
fn Target(&self) -> DOMString;
|
||||||
fn SetTarget(&mut self, _target: DOMString) -> ErrorResult;
|
fn SetTarget(&self, _target: DOMString) -> ErrorResult;
|
||||||
fn Elements(&self) -> Temporary<HTMLCollection>;
|
fn Elements(&self) -> Temporary<HTMLCollection>;
|
||||||
fn Length(&self) -> i32;
|
fn Length(&self) -> i32;
|
||||||
fn Submit(&self) -> ErrorResult;
|
fn Submit(&self) -> ErrorResult;
|
||||||
|
@ -70,7 +70,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetAcceptCharset(&mut self, _accept_charset: DOMString) -> ErrorResult {
|
fn SetAcceptCharset(&self, _accept_charset: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetAction(&mut self, _action: DOMString) -> ErrorResult {
|
fn SetAction(&self, _action: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetAutocomplete(&mut self, _autocomplete: DOMString) -> ErrorResult {
|
fn SetAutocomplete(&self, _autocomplete: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetEnctype(&mut self, _enctype: DOMString) -> ErrorResult {
|
fn SetEnctype(&self, _enctype: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetEncoding(&mut self, _encoding: DOMString) -> ErrorResult {
|
fn SetEncoding(&self, _encoding: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetMethod(&mut self, _method: DOMString) -> ErrorResult {
|
fn SetMethod(&self, _method: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
fn SetName(&self, _name: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetNoValidate(&mut self, _no_validate: bool) -> ErrorResult {
|
fn SetNoValidate(&self, _no_validate: bool) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetTarget(&mut self, _target: DOMString) -> ErrorResult {
|
fn SetTarget(&self, _target: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue