diff options
Diffstat (limited to 'components/script/dom/htmlbodyelement.rs')
-rw-r--r-- | components/script/dom/htmlbodyelement.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlbodyelement.rs b/components/script/dom/htmlbodyelement.rs index b63e7428e8a..a38e385bc9c 100644 --- a/components/script/dom/htmlbodyelement.rs +++ b/components/script/dom/htmlbodyelement.rs @@ -68,19 +68,19 @@ impl HTMLBodyElement { } } -impl<'a> HTMLBodyElementMethods for &'a HTMLBodyElement { +impl HTMLBodyElementMethods for HTMLBodyElement { // https://html.spec.whatwg.org/multipage#dom-body-bgcolor make_getter!(BgColor, "bgcolor"); make_setter!(SetBgColor, "bgcolor"); // https://html.spec.whatwg.org/multipage/#the-body-element - fn GetOnunload(self) -> Option<Rc<EventHandlerNonNull>> { + fn GetOnunload(&self) -> Option<Rc<EventHandlerNonNull>> { let win = window_from_node(self); win.r().GetOnunload() } // https://html.spec.whatwg.org/multipage/#the-body-element - fn SetOnunload(self, listener: Option<Rc<EventHandlerNonNull>>) { + fn SetOnunload(&self, listener: Option<Rc<EventHandlerNonNull>>) { let win = window_from_node(self); win.r().SetOnunload(listener) } |