mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
beforeunload and unload infrastructure
This commit is contained in:
parent
a1d1b18710
commit
427eaed535
28 changed files with 267 additions and 60 deletions
|
@ -241,7 +241,7 @@ impl OneshotTimers {
|
|||
}
|
||||
|
||||
pub fn resume(&self) {
|
||||
// Suspend is idempotent: do nothing if the timers are already suspended.
|
||||
// Resume is idempotent: do nothing if the timers are already resumed.
|
||||
let additional_offset = match self.suspended_since.get() {
|
||||
Some(suspended_since) => precise_time_ms() - suspended_since,
|
||||
None => return warn!("Resuming an already resumed timer."),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue