Remove the debugging log that was added for bug 1173256
authorEhsan Akhgari <ehsan@mozilla.com>
Thu, 02 Jul 2015 11:17:20 -0400
changeset 251197 1a09720f7dc9021b8a439263d56637bee2e1b335
parent 251196 c8cbace0927ad0c3d983e064d5b89e5c5b5013ba
child 251198 7832e96e963fafdcf4ebb35f87f01bd351fc210b
push id28987
push userkwierso@gmail.com
push dateFri, 03 Jul 2015 00:14:52 +0000
treeherdermozilla-central@1af1b4e1c35a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1173256
milestone42.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
Remove the debugging log that was added for bug 1173256
dom/events/EventStateManager.cpp
--- a/dom/events/EventStateManager.cpp
+++ b/dom/events/EventStateManager.cpp
@@ -3703,28 +3703,18 @@ public:
 /*static*/ bool
 EventStateManager::IsHandlingUserInput()
 {
   if (sUserInputEventDepth <= 0) {
     return false;
   }
 
   TimeDuration timeout = nsContentUtils::HandlingUserInputTimeout();
-  TimeDuration elapsed = TimeStamp::Now() - sHandlingInputStart;
-  bool inTime = timeout <= TimeDuration(0) || elapsed <= timeout;
-
-  if (!inTime) {
-#ifdef DEBUG
-    printf("EventStateManager::IsHandlingUserInput() has timed out "
-           "(timeout: %f, elapsed: %f)\n",
-           timeout.ToMilliseconds(), elapsed.ToMilliseconds());
-#endif
-    return false;
-  }
-  return true;
+  return timeout <= TimeDuration(0) ||
+         (TimeStamp::Now() - sHandlingInputStart) <= timeout;
 }
 
 static void
 CreateMouseOrPointerWidgetEvent(WidgetMouseEvent* aMouseEvent,
                                 uint32_t aMessage,
                                 nsIContent* aRelatedContent,
                                 nsAutoPtr<WidgetMouseEvent>& aNewEvent)
 {