aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2014-09-15 12:39:18 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2014-09-16 07:12:01 -0700
commit1ae3bda172939a3f142f89e63eaa5758ba563935 (patch)
tree03f1f962c6a64d4e1c125f9536ea09cd8a8a418b /components/script/script_task.rs
parent7a5f15f13723a6c510ed05ad7875eb10b290dea2 (diff)
downloadservo-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.rs8
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
}
}