diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-07-15 13:30:19 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-07-15 15:33:57 +0200 |
commit | 829259fb794831167c9992bd6b1c71bf81bd8023 (patch) | |
tree | 4426dba3705cf976e4ead2310e8b34ebac162947 /src/components/script/dom/window.rs | |
parent | a14bb68c3f53ef5fbf562e145b60da46ece9fedc (diff) | |
download | servo-829259fb794831167c9992bd6b1c71bf81bd8023.tar.gz servo-829259fb794831167c9992bd6b1c71bf81bd8023.zip |
Introduce abstractions for global scopes.
Part of #2811.
Diffstat (limited to 'src/components/script/dom/window.rs')
-rw-r--r-- | src/components/script/dom/window.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/script/dom/window.rs b/src/components/script/dom/window.rs index 029303a960e..a92daa312d7 100644 --- a/src/components/script/dom/window.rs +++ b/src/components/script/dom/window.rs @@ -5,6 +5,7 @@ use dom::bindings::codegen::Bindings::EventHandlerBinding::{OnErrorEventHandlerNonNull, EventHandlerNonNull}; use dom::bindings::codegen::Bindings::WindowBinding; use dom::bindings::codegen::InheritTypes::EventTargetCast; +use dom::bindings::global; use dom::bindings::js::{JS, JSRef, Temporary, OptionalSettable}; use dom::bindings::trace::{Traceable, Untraceable}; use dom::bindings::utils::{Reflectable, Reflector}; @@ -169,7 +170,7 @@ impl<'a> WindowMethods for JSRef<'a, Window> { fn Console(&self) -> Temporary<Console> { if self.console.get().is_none() { - let console = Console::new(self); + let console = Console::new(&global::Window(*self)); self.console.assign(Some(console)); } Temporary::new(self.console.get().get_ref().clone()) |