diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2014-09-15 12:39:18 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2014-09-16 07:12:01 -0700 |
commit | 1ae3bda172939a3f142f89e63eaa5758ba563935 (patch) | |
tree | 03f1f962c6a64d4e1c125f9536ea09cd8a8a418b /components/script/script_task.rs | |
parent | 7a5f15f13723a6c510ed05ad7875eb10b290dea2 (diff) | |
download | servo-1ae3bda172939a3f142f89e63eaa5758ba563935.tar.gz servo-1ae3bda172939a3f142f89e63eaa5758ba563935.zip |
Move link rel=stylesheet fetching to layout task
Fixes #3346.
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index a705398d4c1..8dc4578abb8 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -23,10 +23,8 @@ use dom::node::{ElementNodeTypeId, Node, NodeHelpers}; use dom::window::{TimerId, Window, WindowHelpers}; use dom::worker::{Worker, TrustedWorkerAddress}; use dom::xmlhttprequest::{TrustedXHRAddress, XMLHttpRequest, XHRProgress}; -use html::hubbub_html_parser::{InputString, InputUrl, HtmlParserResult}; -use html::hubbub_html_parser::{HtmlDiscoveredStyle, HtmlDiscoveredScript}; +use html::hubbub_html_parser::{InputString, InputUrl, HtmlParserResult, HtmlDiscoveredScript}; use html::hubbub_html_parser; -use layout_interface::AddStylesheetMsg; use layout_interface::{ScriptLayoutChan, LayoutChan, MatchSelectorsDocumentDamage}; use layout_interface::{ReflowDocumentDamage, ReflowForDisplay}; use layout_interface::ContentChangedDocumentDamage; @@ -682,10 +680,6 @@ impl ScriptTask { assert!(js_scripts.is_none()); js_scripts = Some(scripts); } - Ok(HtmlDiscoveredStyle(sheet)) => { - let LayoutChan(ref chan) = *page.layout_chan; - chan.send(AddStylesheetMsg(sheet)); - } Err(()) => break } } |