From 829259fb794831167c9992bd6b1c71bf81bd8023 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 15 Jul 2014 13:30:19 +0200 Subject: Introduce abstractions for global scopes. Part of #2811. --- src/components/script/dom/clientrectlist.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/components/script/dom/clientrectlist.rs') diff --git a/src/components/script/dom/clientrectlist.rs b/src/components/script/dom/clientrectlist.rs index eccca831a03..ded917213d8 100644 --- a/src/components/script/dom/clientrectlist.rs +++ b/src/components/script/dom/clientrectlist.rs @@ -3,6 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use dom::bindings::codegen::Bindings::ClientRectListBinding; +use dom::bindings::global::Window; use dom::bindings::js::{JS, JSRef, Temporary}; use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object}; use dom::clientrect::ClientRect; @@ -29,7 +30,7 @@ impl ClientRectList { pub fn new(window: &JSRef, rects: Vec>) -> Temporary { reflect_dom_object(box ClientRectList::new_inherited(window, rects), - window, ClientRectListBinding::Wrap) + &Window(*window), ClientRectListBinding::Wrap) } } -- cgit v1.2.3