mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -51,7 +51,7 @@ impl HTMLDialogElement {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> HTMLDialogElementMethods for &'a HTMLDialogElement {
|
||||
impl HTMLDialogElementMethods for HTMLDialogElement {
|
||||
// https://html.spec.whatwg.org/multipage/#dom-dialog-open
|
||||
make_bool_getter!(Open);
|
||||
|
||||
|
@ -59,13 +59,13 @@ impl<'a> HTMLDialogElementMethods for &'a HTMLDialogElement {
|
|||
make_bool_setter!(SetOpen, "open");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-dialog-returnvalue
|
||||
fn ReturnValue(self) -> DOMString {
|
||||
fn ReturnValue(&self) -> DOMString {
|
||||
let return_value = self.return_value.borrow();
|
||||
return_value.clone()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-dialog-returnvalue
|
||||
fn SetReturnValue(self, return_value: DOMString) {
|
||||
fn SetReturnValue(&self, return_value: DOMString) {
|
||||
*self.return_value.borrow_mut() = return_value;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue