mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Make the traits for the IDL interfaces take &self
This commit is contained in:
parent
856fda7f2e
commit
709d347872
99 changed files with 1192 additions and 1192 deletions
|
@ -46,9 +46,9 @@ impl HTMLTitleElement {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> HTMLTitleElementMethods for &'a HTMLTitleElement {
|
||||
impl HTMLTitleElementMethods for HTMLTitleElement {
|
||||
// https://www.whatwg.org/html/#dom-title-text
|
||||
fn Text(self) -> DOMString {
|
||||
fn Text(&self) -> DOMString {
|
||||
let node = NodeCast::from_ref(self);
|
||||
let mut content = String::new();
|
||||
for child in node.children() {
|
||||
|
@ -62,7 +62,7 @@ impl<'a> HTMLTitleElementMethods for &'a HTMLTitleElement {
|
|||
}
|
||||
|
||||
// https://www.whatwg.org/html/#dom-title-text
|
||||
fn SetText(self, value: DOMString) {
|
||||
fn SetText(&self, value: DOMString) {
|
||||
let node = NodeCast::from_ref(self);
|
||||
node.SetTextContent(Some(value))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue