Bug 1259671 part.1 Rename InternalScrollPortEvent::orientType to InternalScrollPortEvent::OrientType r=smaug
authorMasayuki Nakano <masayuki@d-toybox.com>
Wed, 30 Mar 2016 17:16:01 +0900
changeset 291073 b73ce1b4482c7d19ee44cd29ab114b14956cc75b
parent 291072 41c11b33eedb73985d93e3ca63a3bb5c20a8d8ab
child 291074 e7bc2f2b3f4bf109db4de11d4533ed9433f2b66c
push id30129
push usercbook@mozilla.com
push dateFri, 01 Apr 2016 09:48:09 +0000
treeherdermozilla-central@538d248fa252 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1259671
milestone48.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
Bug 1259671 part.1 Rename InternalScrollPortEvent::orientType to InternalScrollPortEvent::OrientType r=smaug MozReview-Commit-ID: 4EmyQoIKdDy
layout/generic/nsGfxScrollFrame.cpp
widget/ContentEvents.h
--- a/layout/generic/nsGfxScrollFrame.cpp
+++ b/layout/generic/nsGfxScrollFrame.cpp
@@ -4114,17 +4114,17 @@ ScrollFrameHelper::FireScrollPortEvent()
   if (!vertChanged && !horizChanged) {
     return NS_OK;
   }
 
   // If both either overflowed or underflowed then we dispatch only one
   // DOM event.
   bool both = vertChanged && horizChanged &&
                 newVerticalOverflow == newHorizontalOverflow;
-  InternalScrollPortEvent::orientType orient;
+  InternalScrollPortEvent::OrientType orient;
   if (both) {
     orient = InternalScrollPortEvent::both;
     mHorizontalOverflow = newHorizontalOverflow;
     mVerticalOverflow = newVerticalOverflow;
   }
   else if (vertChanged) {
     orient = InternalScrollPortEvent::vertical;
     mVerticalOverflow = newVerticalOverflow;
--- a/widget/ContentEvents.h
+++ b/widget/ContentEvents.h
@@ -26,17 +26,17 @@ namespace mozilla {
 class InternalScrollPortEvent : public WidgetGUIEvent
 {
 public:
   virtual InternalScrollPortEvent* AsScrollPortEvent() override
   {
     return this;
   }
 
-  enum orientType
+  enum OrientType
   {
     vertical   = 0,
     horizontal = 1,
     both       = 2
   };
 
   InternalScrollPortEvent(bool aIsTrusted, EventMessage aMessage,
                           nsIWidget* aWidget)
@@ -52,17 +52,17 @@ public:
     // Not copying widget, it is a weak reference.
     InternalScrollPortEvent* result =
       new InternalScrollPortEvent(false, mMessage, nullptr);
     result->AssignScrollPortEventData(*this, true);
     result->mFlags = mFlags;
     return result;
   }
 
-  orientType orient;
+  OrientType orient;
 
   void AssignScrollPortEventData(const InternalScrollPortEvent& aEvent,
                                  bool aCopyTargets)
   {
     AssignGUIEventData(aEvent, aCopyTargets);
 
     orient = aEvent.orient;
   }