Bug 825949: Make nsGlobalWindow::InitTimer directly take a uint32_t, rather than a uint64_t. r=smaug
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 03 Jan 2013 13:48:01 -0800
changeset 126606 4d3dab3786d84a82e39c7a654c02688d2cd0988a
parent 126605 7b4d9cc83f4454172b865b527a1729b39973d8de
child 126607 8b397adc49e9c280d469821402c972aaeca45fa2
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs825949
milestone20.0a1
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 825949: Make nsGlobalWindow::InitTimer directly take a uint32_t, rather than a uint64_t. r=smaug
dom/base/nsGlobalWindow.h
--- a/dom/base/nsGlobalWindow.h
+++ b/dom/base/nsGlobalWindow.h
@@ -142,19 +142,19 @@ struct nsTimeout : mozilla::LinkedListEl
   nsTimeout();
   ~nsTimeout();
 
   NS_DECL_CYCLE_COLLECTION_LEGACY_NATIVE_CLASS(nsTimeout)
 
   nsrefcnt Release();
   nsrefcnt AddRef();
 
-  nsresult InitTimer(nsTimerCallbackFunc aFunc, uint64_t delay) {
-    return mTimer->InitWithFuncCallback(aFunc, this,
-                                        static_cast<uint32_t>(delay),
+  nsresult InitTimer(nsTimerCallbackFunc aFunc, uint32_t aDelay)
+  {
+    return mTimer->InitWithFuncCallback(aFunc, this, aDelay,
                                         nsITimer::TYPE_ONE_SHOT);
   }
 
   // Window for which this timeout fires
   nsRefPtr<nsGlobalWindow> mWindow;
 
   // The actual timer object
   nsCOMPtr<nsITimer> mTimer;