diff options
author | Paul Rouget <me@paulrouget.com> | 2017-07-18 08:19:44 +0200 |
---|---|---|
committer | Paul Rouget <me@paulrouget.com> | 2017-08-15 08:22:09 +0200 |
commit | d2413891292bfb4d5f17d7eb1e3882e07f6ac626 (patch) | |
tree | 17d2768aaa861740b6bcf638d2a3219086828a74 /components/script/dom/htmlbodyelement.rs | |
parent | 817de1573556b49038d8b704398bb32e78296a43 (diff) | |
download | servo-d2413891292bfb4d5f17d7eb1e3882e07f6ac626.tar.gz servo-d2413891292bfb4d5f17d7eb1e3882e07f6ac626.zip |
make use of ScriptToConstellationChan
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 c5c03164a61..e1b0c86f5c0 100644 --- a/components/script/dom/htmlbodyelement.rs +++ b/components/script/dom/htmlbodyelement.rs @@ -19,7 +19,7 @@ use dom::node::{Node, document_from_node, window_from_node}; use dom::virtualmethods::VirtualMethods; use dom_struct::dom_struct; use html5ever::{LocalName, Prefix}; -use script_traits::ScriptMsg as ConstellationMsg; +use script_traits::ScriptMsg; use servo_url::ServoUrl; use style::attr::AttrValue; use time; @@ -138,8 +138,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 event = ConstellationMsg::HeadParsed; - window.upcast::<GlobalScope>().constellation_chan().send(event).unwrap(); + let event = ScriptMsg::HeadParsed; + window.upcast::<GlobalScope>().script_to_constellation_chan().send(event).unwrap(); } fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue { |