diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2014-10-17 09:48:31 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2014-10-29 14:31:47 -0700 |
commit | fe123ad07ce048c11c2820481c9fd54ce296202d (patch) | |
tree | 920d2a5cf4ca502aa1e6a2b761528c4080af9b84 /components/script/dom/servohtmlparser.rs | |
parent | 65a0d1fe9a14e09b675cc24cb59c9aebf1615020 (diff) | |
download | servo-fe123ad07ce048c11c2820481c9fd54ce296202d.tar.gz servo-fe123ad07ce048c11c2820481c9fd54ce296202d.zip |
Switch to synchronous script loading
This removes the old code for asyncronously loading scripts during HTML
parsing and then executing them afterward.
Fixes #3356.
Diffstat (limited to 'components/script/dom/servohtmlparser.rs')
-rw-r--r-- | components/script/dom/servohtmlparser.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/components/script/dom/servohtmlparser.rs b/components/script/dom/servohtmlparser.rs index f88c0777437..b16b02cfdcc 100644 --- a/components/script/dom/servohtmlparser.rs +++ b/components/script/dom/servohtmlparser.rs @@ -13,7 +13,6 @@ use dom::bindings::js::{JS, JSRef, Temporary}; use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object}; use dom::node::TrustedNodeAddress; use dom::document::{Document, DocumentHelpers}; -use parse::html::JSMessage; use parse::Parser; use servo_util::task_state; @@ -28,7 +27,6 @@ use html5ever::tree_builder::{TreeBuilder, TreeBuilderOpts}; #[must_root] #[jstraceable] pub struct Sink { - pub js_chan: Sender<JSMessage>, pub base_url: Option<Url>, pub document: JS<Document>, } @@ -55,11 +53,9 @@ impl Parser for ServoHTMLParser{ impl ServoHTMLParser { #[allow(unrooted_must_root)] - pub fn new(js_chan: Sender<JSMessage>, base_url: Option<Url>, document: JSRef<Document>) - -> Temporary<ServoHTMLParser> { + pub fn new(base_url: Option<Url>, document: JSRef<Document>) -> Temporary<ServoHTMLParser> { let window = document.window().root(); let sink = Sink { - js_chan: js_chan, base_url: base_url, document: JS::from_rooted(document), }; |