Backed out changeset 76c66d5a8196 (bug 1000870)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Fri, 05 Feb 2016 13:57:31 +0100
changeset 321494 6b49048a0f7a7b75ec3926c2c716168d8151eca5
parent 321493 37904e50fa461f58c3b66c1aad14793ba62a1237
child 321495 bdd28f4c1f0d0ab2f52a05937fbbb08f2131bd85
push id1128
push userjlund@mozilla.com
push dateWed, 01 Jun 2016 01:31:59 +0000
treeherdermozilla-release@fe0d30de989d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1000870
milestone47.0a1
backs out76c66d5a8196e8c11b131a82ac4c879fac9740e6
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 76c66d5a8196 (bug 1000870)
dom/base/nsContentUtils.cpp
widget/MouseEvents.h
--- a/dom/base/nsContentUtils.cpp
+++ b/dom/base/nsContentUtils.cpp
@@ -7664,18 +7664,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
@@ -110,17 +110,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.