diff options
author | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-01-13 18:17:01 -0600 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-01-28 21:57:03 -0600 |
commit | 403499a9d5aa3749571ef960f9ab909855570a6f (patch) | |
tree | 60f7ed30359a9ba4adb305f17aed1bcc3e511ac9 /components/script/dom/xmldocument.rs | |
parent | fc67878edf93125eb32b245dcaf177c61c47a033 (diff) | |
download | servo-403499a9d5aa3749571ef960f9ab909855570a6f.tar.gz servo-403499a9d5aa3749571ef960f9ab909855570a6f.zip |
Allow windows to share browsing contexts.
Diffstat (limited to 'components/script/dom/xmldocument.rs')
-rw-r--r-- | components/script/dom/xmldocument.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/components/script/dom/xmldocument.rs b/components/script/dom/xmldocument.rs index 593749c4499..eaf90fbfe01 100644 --- a/components/script/dom/xmldocument.rs +++ b/components/script/dom/xmldocument.rs @@ -10,8 +10,7 @@ use dom::bindings::inheritance::Castable; use dom::bindings::js::Root; use dom::bindings::reflector::reflect_dom_object; use dom::bindings::str::DOMString; -use dom::browsingcontext::BrowsingContext; -use dom::document::{Document, DocumentSource, IsHTMLDocument}; +use dom::document::{Document, DocumentSource, HasBrowsingContext, IsHTMLDocument}; use dom::location::Location; use dom::node::Node; use dom::window::Window; @@ -28,7 +27,7 @@ pub struct XMLDocument { impl XMLDocument { fn new_inherited(window: &Window, - browsing_context: Option<&BrowsingContext>, + has_browsing_context: HasBrowsingContext, url: Option<ServoUrl>, origin: Origin, is_html_document: IsHTMLDocument, @@ -39,7 +38,7 @@ impl XMLDocument { doc_loader: DocumentLoader) -> XMLDocument { XMLDocument { document: Document::new_inherited(window, - browsing_context, + has_browsing_context, url, origin, is_html_document, @@ -54,7 +53,7 @@ impl XMLDocument { } pub fn new(window: &Window, - browsing_context: Option<&BrowsingContext>, + has_browsing_context: HasBrowsingContext, url: Option<ServoUrl>, origin: Origin, doctype: IsHTMLDocument, @@ -66,7 +65,7 @@ impl XMLDocument { -> Root<XMLDocument> { let doc = reflect_dom_object( box XMLDocument::new_inherited(window, - browsing_context, + has_browsing_context, url, origin, doctype, |