Bug 645943. Initialize mLastTimerInterval correctly. r=dbaron
authorBoris Zbarsky <bzbarsky@mit.edu>
Tue, 29 Mar 2011 00:41:01 -0400
changeset 64087 8373a20bb449b902678a748ef26ddd971deede39
parent 64086 312fa00da43099b2567f697eab7e61e3de624ebe
child 64088 79487686ac2983577e95a8edc74ba61b87b01f8b
push id19313
push userbzbarsky@mozilla.com
push dateTue, 29 Mar 2011 04:41:49 +0000
treeherdermozilla-central@79487686ac29 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs645943
milestone2.2a1pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 645943. Initialize mLastTimerInterval correctly. r=dbaron
layout/base/nsRefreshDriver.cpp
--- a/layout/base/nsRefreshDriver.cpp
+++ b/layout/base/nsRefreshDriver.cpp
@@ -99,17 +99,18 @@ nsRefreshDriver::GetRefreshTimerType() c
   }
   return nsITimer::TYPE_REPEATING_SLACK;
 }
 
 nsRefreshDriver::nsRefreshDriver(nsPresContext *aPresContext)
   : mPresContext(aPresContext),
     mFrozen(false),
     mThrottled(false),
-    mTimerIsPrecise(false)
+    mTimerIsPrecise(false),
+    mLastTimerInterval(0)
 {
 }
 
 nsRefreshDriver::~nsRefreshDriver()
 {
   NS_ABORT_IF_FALSE(ObserverCount() == 0,
                     "observers should have unregistered");
   NS_ABORT_IF_FALSE(!mTimer, "timer should be gone");