aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlbodyelement.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2015-11-04 11:03:54 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2015-11-04 11:03:54 +0530
commit4b9fa13f2f6a1aa38d180367426498f01f6414c9 (patch)
tree504c728f28548747b16a6b7e4e569ae809983aeb /components/script/dom/htmlbodyelement.rs
parent488459f80196a9d080dff9a57bfe0899c4c4ee68 (diff)
parent722aa86c895b42798d60bcada41b0175dbafba52 (diff)
downloadservo-4b9fa13f2f6a1aa38d180367426498f01f6414c9.tar.gz
servo-4b9fa13f2f6a1aa38d180367426498f01f6414c9.zip
Auto merge of #8305 - dzbarsky:roots, r=Ms2ger,
Get rid of a bunch of explicit derefs <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8305) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmlbodyelement.rs')
-rw-r--r--components/script/dom/htmlbodyelement.rs18
1 files changed, 7 insertions, 11 deletions
diff --git a/components/script/dom/htmlbodyelement.rs b/components/script/dom/htmlbodyelement.rs
index b980e93dc5e..4ade3caf3ed 100644
--- a/components/script/dom/htmlbodyelement.rs
+++ b/components/script/dom/htmlbodyelement.rs
@@ -75,26 +75,22 @@ impl HTMLBodyElementMethods for HTMLBodyElement {
// https://html.spec.whatwg.org/multipage/#the-body-element
fn GetOnunload(&self) -> Option<Rc<EventHandlerNonNull>> {
- let win = window_from_node(self);
- win.r().GetOnunload()
+ window_from_node(self).GetOnunload()
}
// https://html.spec.whatwg.org/multipage/#the-body-element
fn SetOnunload(&self, listener: Option<Rc<EventHandlerNonNull>>) {
- let win = window_from_node(self);
- win.r().SetOnunload(listener)
+ window_from_node(self).SetOnunload(listener)
}
// https://html.spec.whatwg.org/multipage/#the-body-element
fn GetOnstorage(&self) -> Option<Rc<EventHandlerNonNull>> {
- let win = window_from_node(self);
- win.r().GetOnstorage()
+ window_from_node(self).GetOnstorage()
}
// https://html.spec.whatwg.org/multipage/#the-body-element
fn SetOnstorage(&self, listener: Option<Rc<EventHandlerNonNull>>) {
- let win = window_from_node(self);
- win.r().SetOnstorage(listener)
+ window_from_node(self).SetOnstorage(listener)
}
}
@@ -137,9 +133,9 @@ impl VirtualMethods for HTMLBodyElement {
}
let window = window_from_node(self);
- let document = window.r().Document();
- document.r().set_reflow_timeout(time::precise_time_ns() + INITIAL_REFLOW_DELAY);
- let ConstellationChan(ref chan) = window.r().constellation_chan();
+ let document = window.Document();
+ document.set_reflow_timeout(time::precise_time_ns() + INITIAL_REFLOW_DELAY);
+ let ConstellationChan(ref chan) = window.constellation_chan();
let event = ConstellationMsg::HeadParsed;
chan.send(event).unwrap();
}