aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlbodyelement.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-08-27 15:08:41 -0600
committerbors-servo <metajack+bors@gmail.com>2015-08-27 15:08:41 -0600
commit71b277d5675556e61a82ae9dbf3105449c3a8275 (patch)
tree89f726bf207325eea8a8ca316f6d77d8c88432cb /components/script/dom/htmlbodyelement.rs
parent856fda7f2e3fe4abd6de247e8bdaf8cedf3764c2 (diff)
parent709d347872e37ab2358e057d24557b9977238ecd (diff)
downloadservo-71b277d5675556e61a82ae9dbf3105449c3a8275.tar.gz
servo-71b277d5675556e61a82ae9dbf3105449c3a8275.zip
Auto merge of #7416 - nox:methods-ref, r=frewsxcv
Make the traits for the IDL interfaces take &self <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7416) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmlbodyelement.rs')
-rw-r--r--components/script/dom/htmlbodyelement.rs6
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)
}