mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Move timers to GlobalScope
This commit is contained in:
parent
5d8979237b
commit
991801488c
8 changed files with 144 additions and 145 deletions
|
@ -683,8 +683,10 @@ impl TestBindingMethods for TestBinding {
|
|||
promise: TrustedPromise::new(promise),
|
||||
value: value,
|
||||
};
|
||||
let _ = self.global().r().schedule_callback(OneshotTimerCallback::TestBindingCallback(cb),
|
||||
MsDuration::new(delay));
|
||||
let _ = self.global_scope()
|
||||
.schedule_callback(
|
||||
OneshotTimerCallback::TestBindingCallback(cb),
|
||||
MsDuration::new(delay));
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue