Bug 1191583 - followup, use correct enums on branch patch. r=me a=bustage
authorJared Wein <jwein@mozilla.com>
Thu, 10 Sep 2015 15:46:53 -0400
changeset 289237 136110a23c39c3b123151f4e7dac6cc89b68ce87
parent 289236 28c5804defb1d919e68caa073f8e112880938ed7
child 289238 d3fb09ff0a1af3a319eb5aa650fdd9ecd045b22c
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, bustage
bugs1191583
milestone42.0a2
Bug 1191583 - followup, use correct enums on branch patch. r=me a=bustage
widget/windows/nsWindow.cpp
--- a/widget/windows/nsWindow.cpp
+++ b/widget/windows/nsWindow.cpp
@@ -3983,18 +3983,18 @@ bool nsWindow::DispatchMouseEvent(uint32
   bool result = false;
 
   UserActivity();
 
   if (!mWidgetListener) {
     return result;
   }
 
-  if (WinUtils::GetIsMouseFromTouch(aEventMessage)) {
-    if (aEventMessage == eMouseDown) {
+  if (WinUtils::GetIsMouseFromTouch(aEventType)) {
+    if (aEventType == NS_MOUSE_BUTTON_DOWN) {
       Telemetry::Accumulate(Telemetry::FX_TOUCH_USED, 1);
     }
 
     if (mTouchWindow) {
       // If mTouchWindow is true, then we must have APZ enabled and be
       // feeding it raw touch events. In that case we don't need to
       // send touch-generated mouse events to content.
       MOZ_ASSERT(mAPZC);