mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -9,7 +9,6 @@ use dom::bindings::codegen::Bindings::HTMLImageElementBinding;
|
|||
use dom::bindings::codegen::Bindings::HTMLImageElementBinding::HTMLImageElementMethods;
|
||||
use dom::bindings::codegen::Bindings::WindowBinding::WindowMethods;
|
||||
use dom::bindings::error::Fallible;
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::inheritance::Castable;
|
||||
use dom::bindings::js::{LayoutJS, Root};
|
||||
use dom::bindings::refcounted::Trusted;
|
||||
|
@ -192,7 +191,7 @@ impl HTMLImageElement {
|
|||
src: src.into(),
|
||||
};
|
||||
let task = window.dom_manipulation_task_source();
|
||||
let _ = task.queue(runnable, GlobalRef::Window(window));
|
||||
let _ = task.queue(runnable, window.upcast());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue