Skip to content

Commit

Permalink
Remove next_subpage_id argument from parse_html.(fixes #1801)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpy committed Mar 4, 2014
1 parent a30041e commit b13a7c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/script/html/hubbub_html_parser.rs
Expand Up @@ -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();

Expand Down
3 changes: 1 addition & 2 deletions src/components/script/script_task.rs
Expand Up @@ -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
Expand Down

5 comments on commit b13a7c7

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging lpy/servo/issue1801 = b13a7c7 into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lpy/servo/issue1801 = b13a7c7 merged ok, testing candidate = 4a6077c

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 4a6077c

Please sign in to comment.