Bug 1190735 - Remove nsITimer.TYPE_REPEATING_PRECISE. r=froydnj.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user