aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domparser.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2016-02-09 14:00:39 +0100
committerMs2ger <ms2ger@gmail.com>2016-02-11 13:08:11 +0100
commit152cec69eb20f52217aa1905255e4d439a7119b6 (patch)
tree80057589f009fb4138dfa431db2bf4ec62ec2772 /components/script/dom/domparser.rs
parent0b27807ad4229a07ba6e04aa59798af50da60c14 (diff)
downloadservo-152cec69eb20f52217aa1905255e4d439a7119b6.tar.gz
servo-152cec69eb20f52217aa1905255e4d439a7119b6.zip
Store a pointer to the browsing context in the Document.
Diffstat (limited to 'components/script/dom/domparser.rs')
-rw-r--r--components/script/dom/domparser.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/domparser.rs b/components/script/dom/domparser.rs
index 21b0fcf0730..1a3fb7f3793 100644
--- a/components/script/dom/domparser.rs
+++ b/components/script/dom/domparser.rs
@@ -59,6 +59,7 @@ impl DOMParserMethods for DOMParser {
match ty {
Text_html => {
let document = Document::new(&self.window,
+ None,
Some(url.clone()),
IsHTMLDocument::HTMLDocument,
Some(content_type),
@@ -72,6 +73,7 @@ impl DOMParserMethods for DOMParser {
Text_xml => {
// FIXME: this should probably be FromParser when we actually parse the string (#3756).
let document = Document::new(&self.window,
+ None,
Some(url.clone()),
IsHTMLDocument::NonHTMLDocument,
Some(content_type),