diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-05-19 16:53:52 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-05-19 17:13:44 +0200 |
commit | cc2b2b50a74515700b6cae88c66e734312d1fdbb (patch) | |
tree | 832cd371fbbfb4dfa97a7ee0fddd0253c3bb7766 /components/script/dom/htmlbodyelement.rs | |
parent | 2572a7d2c5ba90cc78f6be10bb29c2e8fbc8f250 (diff) | |
download | servo-cc2b2b50a74515700b6cae88c66e734312d1fdbb.tar.gz servo-cc2b2b50a74515700b6cae88c66e734312d1fdbb.zip |
Remove ConstellationChan.
It's a pointless abstraction that propagates the obsolete chan terminology,
swaps the order in which the sender and receiver are returned, and hides a
source of panics.
Diffstat (limited to 'components/script/dom/htmlbodyelement.rs')
-rw-r--r-- | components/script/dom/htmlbodyelement.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/components/script/dom/htmlbodyelement.rs b/components/script/dom/htmlbodyelement.rs index 5b4b9a48cb6..2fd18a00c08 100644 --- a/components/script/dom/htmlbodyelement.rs +++ b/components/script/dom/htmlbodyelement.rs @@ -15,7 +15,6 @@ use dom::eventtarget::EventTarget; use dom::htmlelement::HTMLElement; use dom::node::{Node, document_from_node, window_from_node}; use dom::virtualmethods::VirtualMethods; -use msg::constellation_msg::ConstellationChan; use script_traits::ScriptMsg as ConstellationMsg; use std::rc::Rc; use string_cache::Atom; @@ -153,9 +152,8 @@ impl VirtualMethods for HTMLBodyElement { let window = window_from_node(self); 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(); + window.constellation_chan().send(event).unwrap(); } fn parse_plain_attribute(&self, name: &Atom, value: DOMString) -> AttrValue { |