aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/html/hubbub_html_parser.rs
diff options
context:
space:
mode:
authorlpy <pylaurent1314@gmail.com>2014-04-18 19:58:10 +0800
committerlpy <pylaurent1314@gmail.com>2014-04-18 19:58:10 +0800
commit94d3c4739a2e17eb27b7d87989aee13534e0fc07 (patch)
tree9d6e3696d76fee85a114a5ead01aa8bdb04da579 /src/components/script/html/hubbub_html_parser.rs
parent4379809e88c1696988c51c0cb2d50c2c4ebac90c (diff)
downloadservo-94d3c4739a2e17eb27b7d87989aee13534e0fc07.tar.gz
servo-94d3c4739a2e17eb27b7d87989aee13534e0fc07.zip
Remove resource_task argument from css_link_listener.(fixes #2153)
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r--src/components/script/html/hubbub_html_parser.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs
index 5e4ef64e0f6..0811f54ace5 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -104,8 +104,7 @@ spawned, collates them, and sends them to the given result channel.
*/
fn css_link_listener(to_parent: Sender<HtmlDiscoveryMessage>,
- from_parent: Receiver<CSSMessage>,
- resource_task: ResourceTask) {
+ from_parent: Receiver<CSSMessage>) {
let mut result_vec = ~[];
loop {
@@ -254,13 +253,12 @@ pub fn parse_html(page: &Page,
debug!("Hubbub: parsing {:?}", url);
let next_subpage_id: SubpageId = *page.next_subpage_id.deref().borrow();
// Spawn a CSS parser to receive links to CSS style sheets.
- let resource_task2 = resource_task.clone();
let (discovery_chan, discovery_port) = channel();
let stylesheet_chan = discovery_chan.clone();
let (css_chan, css_msg_port) = channel();
spawn_named("parse_html:css", proc() {
- css_link_listener(stylesheet_chan, css_msg_port, resource_task2.clone());
+ css_link_listener(stylesheet_chan, css_msg_port);
});
// Spawn a JS parser to receive JavaScript.