mirror of
https://github.com/servo/servo.git
synced 2025-06-25 01:24:37 +01:00
Remove needless '&mut self' from HTMLEmbedElementMethods.
This commit is contained in:
parent
021dd8241f
commit
9ff3ec1fe7
1 changed files with 12 additions and 12 deletions
|
@ -39,17 +39,17 @@ impl HTMLEmbedElement {
|
||||||
|
|
||||||
pub trait HTMLEmbedElementMethods {
|
pub trait HTMLEmbedElementMethods {
|
||||||
fn Src(&self) -> DOMString;
|
fn Src(&self) -> DOMString;
|
||||||
fn SetSrc(&mut self, _src: DOMString) -> ErrorResult;
|
fn SetSrc(&self, _src: DOMString) -> ErrorResult;
|
||||||
fn Type(&self) -> DOMString;
|
fn Type(&self) -> DOMString;
|
||||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult;
|
fn SetType(&self, _type: DOMString) -> ErrorResult;
|
||||||
fn Width(&self) -> DOMString;
|
fn Width(&self) -> DOMString;
|
||||||
fn SetWidth(&mut self, _width: DOMString) -> ErrorResult;
|
fn SetWidth(&self, _width: DOMString) -> ErrorResult;
|
||||||
fn Height(&self) -> DOMString;
|
fn Height(&self) -> DOMString;
|
||||||
fn SetHeight(&mut self, _height: DOMString) -> ErrorResult;
|
fn SetHeight(&self, _height: DOMString) -> ErrorResult;
|
||||||
fn Align(&self) -> DOMString;
|
fn Align(&self) -> DOMString;
|
||||||
fn SetAlign(&mut self, _type: DOMString) -> ErrorResult;
|
fn SetAlign(&self, _type: DOMString) -> ErrorResult;
|
||||||
fn Name(&self) -> DOMString;
|
fn Name(&self) -> DOMString;
|
||||||
fn SetName(&mut self, _type: DOMString) -> ErrorResult;
|
fn SetName(&self, _type: DOMString) -> ErrorResult;
|
||||||
fn GetSVGDocument(&self) -> Option<Temporary<Document>>;
|
fn GetSVGDocument(&self) -> Option<Temporary<Document>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetSrc(&mut self, _src: DOMString) -> ErrorResult {
|
fn SetSrc(&self, _src: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
fn SetType(&self, _type: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetWidth(&mut self, _width: DOMString) -> ErrorResult {
|
fn SetWidth(&self, _width: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetHeight(&mut self, _height: DOMString) -> ErrorResult {
|
fn SetHeight(&self, _height: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetAlign(&mut self, _type: DOMString) -> ErrorResult {
|
fn SetAlign(&self, _type: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetName(&mut self, _type: DOMString) -> ErrorResult {
|
fn SetName(&self, _type: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue