aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/domimplementation.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-07-15 13:30:19 +0200
committerMs2ger <ms2ger@gmail.com>2014-07-15 15:33:57 +0200
commit829259fb794831167c9992bd6b1c71bf81bd8023 (patch)
tree4426dba3705cf976e4ead2310e8b34ebac162947 /src/components/script/dom/domimplementation.rs
parenta14bb68c3f53ef5fbf562e145b60da46ece9fedc (diff)
downloadservo-829259fb794831167c9992bd6b1c71bf81bd8023.tar.gz
servo-829259fb794831167c9992bd6b1c71bf81bd8023.zip
Introduce abstractions for global scopes.
Part of #2811.
Diffstat (limited to 'src/components/script/dom/domimplementation.rs')
-rw-r--r--src/components/script/dom/domimplementation.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/script/dom/domimplementation.rs b/src/components/script/dom/domimplementation.rs
index afdd89ffd6a..6603488e106 100644
--- a/src/components/script/dom/domimplementation.rs
+++ b/src/components/script/dom/domimplementation.rs
@@ -5,6 +5,7 @@
use dom::bindings::codegen::Bindings::DOMImplementationBinding;
use dom::bindings::codegen::InheritTypes::NodeCast;
use dom::bindings::error::{Fallible, InvalidCharacter, NamespaceError};
+use dom::bindings::global::Window;
use dom::bindings::js::{JS, JSRef, Root, Temporary, OptionalRootable};
use dom::bindings::utils::{Reflector, Reflectable, reflect_dom_object};
use dom::bindings::utils::{QName, Name, InvalidXMLName, xml_name_type};
@@ -35,7 +36,7 @@ impl DOMImplementation {
pub fn new(document: &JSRef<Document>) -> Temporary<DOMImplementation> {
let window = document.window.root();
reflect_dom_object(box DOMImplementation::new_inherited(document),
- &*window,
+ &Window(*window),
DOMImplementationBinding::Wrap)
}
}