diff options
author | Connor Brewster <connor.brewster@eagles.oc.edu> | 2017-01-20 13:21:23 -0600 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-02-22 11:11:59 -0600 |
commit | bfd7b950ad1d2e9264563fc40d5684a96bbab23f (patch) | |
tree | 775afc20fbfb832b7242ea5c6145c97f6a63bcc6 /components/script/dom/xmldocument.rs | |
parent | 4f7e422054237c8ba0a8e521a615a6012b90eab4 (diff) | |
download | servo-bfd7b950ad1d2e9264563fc40d5684a96bbab23f.tar.gz servo-bfd7b950ad1d2e9264563fc40d5684a96bbab23f.zip |
Add ImmutableOrigin to allow for serializing origins
Diffstat (limited to 'components/script/dom/xmldocument.rs')
-rw-r--r-- | components/script/dom/xmldocument.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/components/script/dom/xmldocument.rs b/components/script/dom/xmldocument.rs index eaf90fbfe01..c832e018360 100644 --- a/components/script/dom/xmldocument.rs +++ b/components/script/dom/xmldocument.rs @@ -15,9 +15,8 @@ use dom::location::Location; use dom::node::Node; use dom::window::Window; use js::jsapi::{JSContext, JSObject}; -use origin::Origin; use script_traits::DocumentActivity; -use servo_url::ServoUrl; +use servo_url::{MutableOrigin, ServoUrl}; // https://dom.spec.whatwg.org/#xmldocument #[dom_struct] @@ -29,7 +28,7 @@ impl XMLDocument { fn new_inherited(window: &Window, has_browsing_context: HasBrowsingContext, url: Option<ServoUrl>, - origin: Origin, + origin: MutableOrigin, is_html_document: IsHTMLDocument, content_type: Option<DOMString>, last_modified: Option<String>, @@ -55,7 +54,7 @@ impl XMLDocument { pub fn new(window: &Window, has_browsing_context: HasBrowsingContext, url: Option<ServoUrl>, - origin: Origin, + origin: MutableOrigin, doctype: IsHTMLDocument, content_type: Option<DOMString>, last_modified: Option<String>, |