diff options
author | lpy <pylaurent1314@gmail.com> | 2014-03-04 08:40:48 +0800 |
---|---|---|
committer | lpy <pylaurent1314@gmail.com> | 2014-03-04 08:40:48 +0800 |
commit | b13a7c73c5f59be6e9c8a2ba4dd1925352dcafb5 (patch) | |
tree | 0a726c81c4179f3cc5f059604c481424d89e4306 | |
parent | a30041e9608b041dcf2a46f6b9f5e183817a55ae (diff) | |
download | servo-b13a7c73c5f59be6e9c8a2ba4dd1925352dcafb5.tar.gz servo-b13a7c73c5f59be6e9c8a2ba4dd1925352dcafb5.zip |
Remove next_subpage_id argument from parse_html.(fixes #1801)
-rw-r--r-- | src/components/script/html/hubbub_html_parser.rs | 4 | ||||
-rw-r--r-- | src/components/script/script_task.rs | 3 |
2 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 3c36b70a0ca..67a05c94386 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -248,10 +248,10 @@ pub fn build_element_from_tag(tag: DOMString, document: &JS<Document>) -> JS<Ele pub fn parse_html(page: &Page, document: &mut JS<Document>, url: Url, - resource_task: ResourceTask, - next_subpage_id: SubpageId) + resource_task: ResourceTask) -> HtmlParserResult { debug!("Hubbub: parsing {:?}", url); + let next_subpage_id: SubpageId = page.next_subpage_id.get(); // Spawn a CSS parser to receive links to CSS style sheets. let resource_task2 = resource_task.clone(); diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index 95789bd34f7..d6f17e4801c 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -814,8 +814,7 @@ impl ScriptTask { let html_parsing_result = hubbub_html_parser::parse_html(page, &mut document, url.clone(), - self.resource_task.clone(), - page.next_subpage_id.get()); + self.resource_task.clone()); let HtmlParserResult { discovery_port |