Bug 1190735 - Remove nsITimer.TYPE_REPEATING_PRECISE. r=froydnj.

This commit is contained in:
Nicholas Nethercote
2015-08-04 17:30:53 -07:00
parent 73a0c40ce7
commit ef84da2ece
5 changed files with 21 additions and 49 deletions

View File

@@ -709,16 +709,9 @@ TimerThread::PostTimerEvent(already_AddRefed<nsTimerImpl> aTimerRef)
}
// If this is a repeating precise timer, we need to calculate the time for
// the next timer to fire before we make the callback.
// the next timer to fire before we make the callback. But don't re-arm.
if (timer->IsRepeatingPrecisely()) {
timer->SetDelayInternal(timer->mDelay);
// But only re-arm REPEATING_PRECISE timers.
if (timer->mType == nsTimerImpl::TYPE_REPEATING_PRECISE) {
if (AddTimerInternal(timer) == -1) {
return timer.forget();
}
}
}
#ifdef MOZ_TASK_TRACER