mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Make TaskSource::queue take a &GlobalScope
This commit is contained in:
parent
514819f37a
commit
44ca9f3d71
9 changed files with 25 additions and 27 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue