diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2013-12-13 15:06:51 -0800 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2013-12-13 15:10:04 -0800 |
commit | 971f77d2c69740ef625aff6aacab6297ce537765 (patch) | |
tree | c5e485ebdf2f22725098b6f09c1f910a30c31e80 /src/components/script/html/hubbub_html_parser.rs | |
parent | aa1ebbbdb0243f098921103f02bb9b7dbcc40441 (diff) | |
download | servo-971f77d2c69740ef625aff6aacab6297ce537765.tar.gz servo-971f77d2c69740ef625aff6aacab6297ce537765.zip |
layout: Stop going to the DOM for iframe sizes
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r-- | src/components/script/html/hubbub_html_parser.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs index e73d1205950..6ca31770032 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -17,7 +17,7 @@ use script_task::page_from_context; use extra::url::Url; use hubbub::hubbub; use js::jsapi::JSContext; -use servo_msg::constellation_msg::{ConstellationChan, SubpageId}; +use servo_msg::constellation_msg::SubpageId; use servo_net::image_cache_task::ImageCacheTask; use servo_net::resource_task::{Load, Payload, Done, ResourceTask, load_whole_resource}; use servo_util::tree::{TreeNodeRef, ElementLike}; @@ -248,8 +248,8 @@ pub fn parse_html(cx: *JSContext, url: Url, resource_task: ResourceTask, image_cache_task: ImageCacheTask, - next_subpage_id: SubpageId, - constellation_chan: ConstellationChan) -> HtmlParserResult { + next_subpage_id: SubpageId) + -> HtmlParserResult { debug!("Hubbub: parsing {:?}", url); // Spawn a CSS parser to receive links to CSS style sheets. let resource_task2 = resource_task.clone(); @@ -385,7 +385,6 @@ pub fn parse_html(cx: *JSContext, iframe_element.size = Some(IFrameSize { pipeline_id: pipeline_id, subpage_id: subpage_id, - constellation_chan: constellation_chan.clone(), }); iframe_chan.send(HtmlDiscoveredIFrame((iframe_url, subpage_id, |