aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmldocument.rs
diff options
context:
space:
mode:
authorConnor Brewster <connor.brewster@eagles.oc.edu>2017-01-20 13:21:23 -0600
committerAlan Jeffrey <ajeffrey@mozilla.com>2017-02-22 11:11:59 -0600
commitbfd7b950ad1d2e9264563fc40d5684a96bbab23f (patch)
tree775afc20fbfb832b7242ea5c6145c97f6a63bcc6 /components/script/dom/xmldocument.rs
parent4f7e422054237c8ba0a8e521a615a6012b90eab4 (diff)
downloadservo-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.rs7
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>,