mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
replace DocumentSource::NotFromParser with DocumentSource::FromParser
This commit is contained in:
parent
97bba5fdc1
commit
97482f9b91
3 changed files with 25 additions and 2 deletions
|
@ -77,7 +77,6 @@ impl DOMParserMethods for DOMParser {
|
|||
Ok(document)
|
||||
}
|
||||
Text_xml | Application_xml | Application_xhtml_xml => {
|
||||
// FIXME: this should probably be FromParser when we actually parse the string (#3756).
|
||||
let document = Document::new(&self.window,
|
||||
HasBrowsingContext::No,
|
||||
Some(url.clone()),
|
||||
|
@ -86,12 +85,13 @@ impl DOMParserMethods for DOMParser {
|
|||
Some(content_type),
|
||||
None,
|
||||
DocumentActivity::Inactive,
|
||||
DocumentSource::NotFromParser,
|
||||
DocumentSource::FromParser,
|
||||
loader,
|
||||
None,
|
||||
None,
|
||||
Default::default());
|
||||
ServoParser::parse_xml_document(&document, s, url);
|
||||
document.set_ready_state(DocumentReadyState::Complete);
|
||||
Ok(document)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue