Backed out changeset ca409f78c8a3 (bug 1342863)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Thu, 23 Mar 2017 08:41:18 +0100
changeset 349008 6e9f7bfd3d06cbc3e635f8493be7674c03a8809f
parent 349007 ca409f78c8a30208636e3f216924b87ffe7270b9
child 349009 157014c32ff1563a5bf0b421c0813415f6ab6f14
push id39380
push usercbook@mozilla.com
push dateThu, 23 Mar 2017 07:42:12 +0000
treeherderautoland@9a6b874ce36d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1342863
milestone55.0a1
backs outca409f78c8a30208636e3f216924b87ffe7270b9
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
Backed out changeset ca409f78c8a3 (bug 1342863)
layout/base/nsRefreshDriver.cpp
--- a/layout/base/nsRefreshDriver.cpp
+++ b/layout/base/nsRefreshDriver.cpp
@@ -1432,27 +1432,21 @@ nsRefreshDriver::SetHighPrecisionTimersE
       // Don't jerk us around between high precision and low precision
       // timers; instead, only allow leaving high precision timers
       // after 90 seconds.  This is arbitrary, but hopefully good
       // enough.
       NS_ASSERTION(!sDisableHighPrecisionTimersTimer, "We shouldn't have an outstanding disable-high-precision timer !");
 
       nsCOMPtr<nsITimer> timer = do_CreateInstance(NS_TIMER_CONTRACTID);
       if (timer) {
-        if (nsPresContext* pc = GetPresContext())
-          timer->SetTarget(
-              pc->Document()->EventTargetFor(TaskCategory::Other));
-        }
         timer.forget(&sDisableHighPrecisionTimersTimer);
-        sDisableHighPrecisionTimersTimer->
-          InitWithNamedFuncCallback(DisableHighPrecisionTimersCallback,
-                                    nullptr,
-                                    90 * 1000,
-                                    nsITimer::TYPE_ONE_SHOT,
-                                    "DisableHighPrecisionTimersCallback");
+        sDisableHighPrecisionTimersTimer->InitWithFuncCallback(DisableHighPrecisionTimersCallback,
+                                                               nullptr,
+                                                               90 * 1000,
+                                                               nsITimer::TYPE_ONE_SHOT);
       } else {
         // might happen if we're shutting down XPCOM; just drop the time period down
         // immediately
         timeEndPeriod(1);
       }
     }
 #endif
     mRequestedHighPrecision = false;