aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/timers.rs
diff options
context:
space:
mode:
authorGregory Terzian <gterzian@users.noreply.github.com>2018-03-18 13:20:24 +0800
committerGregory Terzian <gterzian@users.noreply.github.com>2018-05-05 19:14:36 +0800
commit427eaed535dfdeaf735a40e3cb82ad7077aa86c5 (patch)
treecc723041b13093541e8d5986b74bbd02e1c920a6 /components/script/timers.rs
parenta1d1b187102b340ba65955f2c4f1131c8276d050 (diff)
downloadservo-427eaed535dfdeaf735a40e3cb82ad7077aa86c5.tar.gz
servo-427eaed535dfdeaf735a40e3cb82ad7077aa86c5.zip
beforeunload and unload infrastructure
Diffstat (limited to 'components/script/timers.rs')
-rw-r--r--components/script/timers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/timers.rs b/components/script/timers.rs
index 50f95d8400a..202a8edc8ae 100644
--- a/components/script/timers.rs
+++ b/components/script/timers.rs
@@ -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."),