aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domimplementation.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-11-28 18:27:23 +0100
committerMs2ger <Ms2ger@gmail.com>2016-12-23 11:15:46 +0100
commitec5d08c88730ac707368de03528744677a75231d (patch)
tree0548c655e1493f90a4f0c3d74587d6d70d42ae3a /components/script/dom/domimplementation.rs
parent01e336f6912292b5ca4c7349846a5d100974d99e (diff)
downloadservo-ec5d08c88730ac707368de03528744677a75231d.tar.gz
servo-ec5d08c88730ac707368de03528744677a75231d.zip
Pass the Document's origin to its constructor.
CC #10963.
Diffstat (limited to 'components/script/dom/domimplementation.rs')
-rw-r--r--components/script/dom/domimplementation.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/domimplementation.rs b/components/script/dom/domimplementation.rs
index 7556e64d0a7..446eda7e6ce 100644
--- a/components/script/dom/domimplementation.rs
+++ b/components/script/dom/domimplementation.rs
@@ -79,6 +79,7 @@ impl DOMImplementationMethods for DOMImplementation {
let doc = XMLDocument::new(win,
None,
None,
+ self.document.origin().alias(),
IsHTMLDocument::NonHTMLDocument,
Some(DOMString::from(content_type)),
None,
@@ -124,6 +125,7 @@ impl DOMImplementationMethods for DOMImplementation {
let doc = Document::new(win,
None,
None,
+ self.document.origin().alias(),
IsHTMLDocument::HTMLDocument,
None,
None,