diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-11-28 18:27:23 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-12-23 11:15:46 +0100 |
commit | ec5d08c88730ac707368de03528744677a75231d (patch) | |
tree | 0548c655e1493f90a4f0c3d74587d6d70d42ae3a /components/script/dom/xmldocument.rs | |
parent | 01e336f6912292b5ca4c7349846a5d100974d99e (diff) | |
download | servo-ec5d08c88730ac707368de03528744677a75231d.tar.gz servo-ec5d08c88730ac707368de03528744677a75231d.zip |
Pass the Document's origin to its constructor.
CC #10963.
Diffstat (limited to 'components/script/dom/xmldocument.rs')
-rw-r--r-- | components/script/dom/xmldocument.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/dom/xmldocument.rs b/components/script/dom/xmldocument.rs index 191b142dbea..87c639742f6 100644 --- a/components/script/dom/xmldocument.rs +++ b/components/script/dom/xmldocument.rs @@ -16,6 +16,7 @@ use dom::location::Location; use dom::node::Node; use dom::window::Window; use js::jsapi::{JSContext, JSObject}; +use origin::Origin; use servo_url::ServoUrl; // https://dom.spec.whatwg.org/#xmldocument @@ -28,6 +29,7 @@ impl XMLDocument { fn new_inherited(window: &Window, browsing_context: Option<&BrowsingContext>, url: Option<ServoUrl>, + origin: Origin, is_html_document: IsHTMLDocument, content_type: Option<DOMString>, last_modified: Option<String>, @@ -37,6 +39,7 @@ impl XMLDocument { document: Document::new_inherited(window, browsing_context, url, + origin, is_html_document, content_type, last_modified, @@ -50,6 +53,7 @@ impl XMLDocument { pub fn new(window: &Window, browsing_context: Option<&BrowsingContext>, url: Option<ServoUrl>, + origin: Origin, doctype: IsHTMLDocument, content_type: Option<DOMString>, last_modified: Option<String>, @@ -60,6 +64,7 @@ impl XMLDocument { box XMLDocument::new_inherited(window, browsing_context, url, + origin, doctype, content_type, last_modified, |