Pass the load data to parse_html directly, rather than in an Option.

This commit is contained in:
Ms2ger 2014-12-06 11:39:45 +01:00
parent 69e13f3267
commit 5d0934d8ec
2 changed files with 5 additions and 7 deletions

View file

@ -748,7 +748,7 @@ impl ScriptTask {
InputString(strval.unwrap_or("".to_string()))
};
parse_html(&*page, *document, parser_input, self.resource_task.clone(), Some(load_data));
parse_html(&*page, *document, parser_input, self.resource_task.clone(), load_data);
url = page.get_url().clone();
document.set_ready_state(DocumentReadyStateValues::Interactive);