aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/html/hubbub_html_parser.rs
diff options
context:
space:
mode:
authorTim Kuehn <tkuehn@cmu.edu>2013-07-30 22:59:44 -0700
committerTim Kuehn <tkuehn@cmu.edu>2013-07-31 13:12:33 -0700
commit97a60f35e3bdaacdf5972d926ef36c8bca195373 (patch)
tree0d7decf55b4883e02b0803ca65eecefe49d18a8a /src/components/script/html/hubbub_html_parser.rs
parent5d7626fa44846c54ec0735f543fc0a427dac413a (diff)
downloadservo-97a60f35e3bdaacdf5972d926ef36c8bca195373.tar.gz
servo-97a60f35e3bdaacdf5972d926ef36c8bca195373.zip
add next_subpage_id to Page struct
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r--src/components/script/html/hubbub_html_parser.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs
index 2ecf58dcb45..8bb6afd22b2 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -241,7 +241,8 @@ fn build_element_from_tag(cx: *JSContext, tag: &str) -> AbstractNode<ScriptView>
pub fn parse_html(cx: *JSContext,
url: Url,
resource_task: ResourceTask,
- image_cache_task: ImageCacheTask) -> HtmlParserResult {
+ image_cache_task: ImageCacheTask,
+ 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();
@@ -282,7 +283,7 @@ pub fn parse_html(cx: *JSContext,
let (css_chan2, css_chan3, js_chan2) = (css_chan.clone(), css_chan.clone(), js_chan.clone());
let (iframe_port, iframe_chan) = comm::stream();
- let next_subpage_id = Cell::new(SubpageId(0));
+ let next_subpage_id = Cell::new(next_subpage_id);
parser.set_tree_handler(~hubbub::TreeHandler {
create_comment: |data: ~str| {