From 44ca9f3d712e9b49681e9848db089a1c05c7ffff Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Tue, 4 Oct 2016 15:49:48 +0200 Subject: Make TaskSource::queue take a &GlobalScope --- components/script/task_source/user_interaction.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/script/task_source/user_interaction.rs') diff --git a/components/script/task_source/user_interaction.rs b/components/script/task_source/user_interaction.rs index cddafb80ee4..d3850e9f813 100644 --- a/components/script/task_source/user_interaction.rs +++ b/components/script/task_source/user_interaction.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use dom::bindings::global::GlobalRef; +use dom::bindings::inheritance::Castable; use dom::bindings::refcounted::Trusted; use dom::event::{EventBubbles, EventCancelable, EventRunnable}; use dom::eventtarget::EventTarget; @@ -41,7 +41,7 @@ impl UserInteractionTaskSource { bubbles: bubbles, cancelable: cancelable, }; - let _ = self.queue(runnable, GlobalRef::Window(window)); + let _ = self.queue(runnable, window.upcast()); } } -- cgit v1.2.3