mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -5,7 +5,6 @@
|
|||
use dom::attr::Attr;
|
||||
use dom::bindings::codegen::Bindings::HTMLDetailsElementBinding;
|
||||
use dom::bindings::codegen::Bindings::HTMLDetailsElementBinding::HTMLDetailsElementMethods;
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::inheritance::Castable;
|
||||
use dom::bindings::js::Root;
|
||||
use dom::bindings::refcounted::Trusted;
|
||||
|
@ -79,7 +78,7 @@ impl VirtualMethods for HTMLDetailsElement {
|
|||
element: details,
|
||||
toggle_number: counter
|
||||
};
|
||||
let _ = task_source.queue(runnable, GlobalRef::Window(&window));
|
||||
let _ = task_source.queue(runnable, window.upcast());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue