Bug 1259671 part.4 Rename InternalScrollPortEvent::both to InternalScrollPortEvent::eBoth r?smaug draft
authorMasayuki Nakano <masayuki@d-toybox.com>
Wed, 30 Mar 2016 17:39:56 +0900
changeset 346177 d041969bb0ebf90835399df69827361b80a14ebf
parent 346176 d200e9972499079e630cac6de5e52a744dadfc23
child 346178 1972e2c2fa322a302cb08720038df0545d533fad
push id14266
push usermasayuki@d-toybox.com
push dateThu, 31 Mar 2016 06:03:50 +0000
reviewerssmaug
bugs1259671
milestone48.0a1
Bug 1259671 part.4 Rename InternalScrollPortEvent::both to InternalScrollPortEvent::eBoth r?smaug MozReview-Commit-ID: HL5phKZVYin
layout/generic/nsGfxScrollFrame.cpp
widget/ContentEvents.h
--- a/layout/generic/nsGfxScrollFrame.cpp
+++ b/layout/generic/nsGfxScrollFrame.cpp
@@ -4116,17 +4116,17 @@ ScrollFrameHelper::FireScrollPortEvent()
   }
 
   // If both either overflowed or underflowed then we dispatch only one
   // DOM event.
   bool both = vertChanged && horizChanged &&
                 newVerticalOverflow == newHorizontalOverflow;
   InternalScrollPortEvent::OrientType orient;
   if (both) {
-    orient = InternalScrollPortEvent::both;
+    orient = InternalScrollPortEvent::eBoth;
     mHorizontalOverflow = newHorizontalOverflow;
     mVerticalOverflow = newVerticalOverflow;
   }
   else if (vertChanged) {
     orient = InternalScrollPortEvent::eVertical;
     mVerticalOverflow = newVerticalOverflow;
     if (horizChanged) {
       // We need to dispatch a separate horizontal DOM event. Do that the next
--- a/widget/ContentEvents.h
+++ b/widget/ContentEvents.h
@@ -30,17 +30,17 @@ public:
   {
     return this;
   }
 
   enum OrientType
   {
     eVertical,
     eHorizontal,
-    both       = 2
+    eBoth
   };
 
   InternalScrollPortEvent(bool aIsTrusted, EventMessage aMessage,
                           nsIWidget* aWidget)
     : WidgetGUIEvent(aIsTrusted, aMessage, aWidget, eScrollPortEventClass)
     , orient(eVertical)
   {
   }