mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Remove an argument to ServoParser::parse_html_script_input
Since the spec of document.open was updated, this argument became useless.
This commit is contained in:
parent
1046ae58a1
commit
d1d79bf947
2 changed files with 2 additions and 6 deletions
|
@ -4340,7 +4340,7 @@ impl DocumentMethods for Document {
|
|||
.clone();
|
||||
*self.loader.borrow_mut() =
|
||||
DocumentLoader::new_with_threads(resource_threads, Some(self.url()));
|
||||
ServoParser::parse_html_script_input(self, self.url(), "text/html");
|
||||
ServoParser::parse_html_script_input(self, self.url());
|
||||
|
||||
// Step 15
|
||||
self.ready_state.set(DocumentReadyState::Loading);
|
||||
|
|
|
@ -225,7 +225,7 @@ impl ServoParser {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn parse_html_script_input(document: &Document, url: ServoUrl, type_: &str) {
|
||||
pub fn parse_html_script_input(document: &Document, url: ServoUrl) {
|
||||
let parser = ServoParser::new(
|
||||
document,
|
||||
Tokenizer::Html(self::html::Tokenizer::new(
|
||||
|
@ -238,10 +238,6 @@ impl ServoParser {
|
|||
ParserKind::ScriptCreated,
|
||||
);
|
||||
document.set_current_parser(Some(&parser));
|
||||
if !type_.eq_ignore_ascii_case("text/html") {
|
||||
parser.parse_string_chunk("<pre>\n".to_owned());
|
||||
parser.tokenizer.borrow_mut().set_plaintext_state();
|
||||
}
|
||||
}
|
||||
|
||||
pub fn parse_xml_document(document: &Document, input: DOMString, url: ServoUrl) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue