mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Issue #1071 - Ensure that Documents always have a non-null Window.
This commit is contained in:
parent
c9c9eec3d8
commit
60b6d1bb57
7 changed files with 29 additions and 53 deletions
|
@ -43,10 +43,10 @@ impl DOMParser {
|
|||
let cx = self.owner.get_cx();
|
||||
let document = match ty {
|
||||
Text_html => {
|
||||
HTMLDocument::new(None)
|
||||
HTMLDocument::new(self.owner)
|
||||
}
|
||||
Text_xml => {
|
||||
AbstractDocument::as_abstract(cx, @mut Document::new(None, XML))
|
||||
AbstractDocument::as_abstract(cx, @mut Document::new(self.owner, XML))
|
||||
}
|
||||
_ => {
|
||||
fail!("unsupported document type")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue