Backed out changeset 427cfffcb5b7 (bug 1000870)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Mon, 03 Aug 2015 16:37:18 +0200
changeset 287548 402b0919ede877fe1b1b5bef0686b99018556297
parent 287547 a8147b48ea8d02bdf22fc3875a62ee3445487ae9
child 287549 7cb778938f3cb8ac8235466e968f6fc547bb7e86
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)
bugs1000870
milestone42.0a1
backs out427cfffcb5b75aa0040b55af561be617a4b44aa2
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 427cfffcb5b7 (bug 1000870)
dom/base/nsContentUtils.cpp
widget/MouseEvents.h
--- a/dom/base/nsContentUtils.cpp
+++ b/dom/base/nsContentUtils.cpp
@@ -7587,18 +7587,16 @@ nsContentUtils::GetWidget(nsIPresShell* 
   }
   return nullptr;
 }
 
 int16_t
 nsContentUtils::GetButtonsFlagForButton(int32_t aButton)
 {
   switch (aButton) {
-    case -1:
-      return WidgetMouseEvent::eNoButtonFlag;
     case WidgetMouseEvent::eLeftButton:
       return WidgetMouseEvent::eLeftButtonFlag;
     case WidgetMouseEvent::eMiddleButton:
       return WidgetMouseEvent::eMiddleButtonFlag;
     case WidgetMouseEvent::eRightButton:
       return WidgetMouseEvent::eRightButtonFlag;
     case 4:
       return WidgetMouseEvent::e4thButtonFlag;
--- a/widget/MouseEvents.h
+++ b/widget/MouseEvents.h
@@ -106,17 +106,16 @@ public:
     eMiddleButton = 1,
     eRightButton  = 2
   };
   // Pressed button ID of mousedown or mouseup event.
   // This is set only when pressing a button causes the event.
   int16_t button;
 
   enum buttonsFlag {
-    eNoButtonFlag     = 0x00,
     eLeftButtonFlag   = 0x01,
     eRightButtonFlag  = 0x02,
     eMiddleButtonFlag = 0x04,
     // typicall, "back" button being left side of 5-button
     // mice, see "buttons" attribute document of DOM3 Events.
     e4thButtonFlag    = 0x08,
     // typicall, "forward" button being right side of 5-button
     // mice, see "buttons" attribute document of DOM3 Events.