diff options
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, |