diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2014-09-25 16:01:21 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2014-09-29 17:41:45 +0100 |
commit | b3245fa407b8bbb9d893406bb810e122d3f5074a (patch) | |
tree | 7d9b25a99d67b54d9ac52faf6b57e36c2e0788a2 /components/script/dom/domparser.rs | |
parent | a58324f25b6f87d005026d8f9405c9f0d89a1f74 (diff) | |
download | servo-b3245fa407b8bbb9d893406bb810e122d3f5074a.tar.gz servo-b3245fa407b8bbb9d893406bb810e122d3f5074a.zip |
Upgrade to rustc d2b30f7d3 2014-09-23
Diffstat (limited to 'components/script/dom/domparser.rs')
-rw-r--r-- | components/script/dom/domparser.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/domparser.rs b/components/script/dom/domparser.rs index 3f9e3bbb827..315a3851bb1 100644 --- a/components/script/dom/domparser.rs +++ b/components/script/dom/domparser.rs @@ -6,7 +6,8 @@ use dom::bindings::codegen::Bindings::DOMParserBinding; use dom::bindings::codegen::Bindings::DOMParserBinding::DOMParserMethods; use dom::bindings::codegen::Bindings::DOMParserBinding::SupportedTypeValues::{Text_html, Text_xml}; use dom::bindings::error::{Fallible, FailureUnknown}; -use dom::bindings::global::{GlobalRef, Window}; +use dom::bindings::global::GlobalRef; +use dom::bindings::global; use dom::bindings::js::{JS, JSRef, Temporary}; use dom::bindings::utils::{Reflector, Reflectable, reflect_dom_object}; use dom::document::{Document, HTMLDocument, NonHTMLDocument}; @@ -29,7 +30,7 @@ impl DOMParser { } pub fn new(window: JSRef<Window>) -> Temporary<DOMParser> { - reflect_dom_object(box DOMParser::new_inherited(window), &Window(window), + reflect_dom_object(box DOMParser::new_inherited(window), &global::Window(window), DOMParserBinding::Wrap) } |