Bug 1157323 - Part 4: Stop modifying mTimeout/mDelay from the TimerThread, plus some simplification. r=froydnj

MozReview-Commit-ID: 1pMCKLi9DLZ
This commit is contained in:
Byron Campen [:bwc]
2016-08-05 12:50:00 -05:00
parent c2bcb35570
commit dc4ed15132
3 changed files with 34 additions and 76 deletions

View File

@@ -685,12 +685,6 @@ TimerThread::PostTimerEvent(already_AddRefed<nsTimerImpl> aTimerRef)
event->mInitTime = TimeStamp::Now();
}
// If this is a repeating precise timer, we need to calculate the time for
// the next timer to fire before we make the callback. But don't re-arm.
if (timer->IsRepeatingPrecisely()) {
timer->SetDelayInternal(timer->mDelay);
}
#ifdef MOZ_TASK_TRACER
// During the dispatch of TimerEvent, we overwrite the current TraceInfo
// partially with the info saved in timer earlier, and restore it back by