Title: [228473] trunk/Source/WebKit
Revision
228473
Author
rn...@webkit.org
Date
2018-02-14 11:07:33 -0800 (Wed, 14 Feb 2018)

Log Message

EventDispatcher::wheelEvent uses a wrong enum values in switch
https://bugs.webkit.org/show_bug.cgi?id=182796

Reviewed by Chris Dumez.

EventDispatcher::wheelEvent is using PlatformWheelEventPhaseBegan and PlatformWheelEventPhaseEnded
but the enum type of wheelEvent.phase() is WebWheelEvent::Phase.

The enum values are indentical for both so there is no behavioral change.

* WebProcess/WebPage/EventDispatcher.cpp:
(WebKit::EventDispatcher::wheelEvent):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (228472 => 228473)


--- trunk/Source/WebKit/ChangeLog	2018-02-14 18:52:15 UTC (rev 228472)
+++ trunk/Source/WebKit/ChangeLog	2018-02-14 19:07:33 UTC (rev 228473)
@@ -1,3 +1,18 @@
+2018-02-14  Ryosuke Niwa  <rn...@webkit.org>
+
+        EventDispatcher::wheelEvent uses a wrong enum values in switch
+        https://bugs.webkit.org/show_bug.cgi?id=182796
+
+        Reviewed by Chris Dumez.
+
+        EventDispatcher::wheelEvent is using PlatformWheelEventPhaseBegan and PlatformWheelEventPhaseEnded
+        but the enum type of wheelEvent.phase() is WebWheelEvent::Phase.
+
+        The enum values are indentical for both so there is no behavioral change.
+
+        * WebProcess/WebPage/EventDispatcher.cpp:
+        (WebKit::EventDispatcher::wheelEvent):
+
 2018-02-14  Maureen Daum  <md...@apple.com>
 
         Add C SPI for support of Website Data Store in Website Policies

Modified: trunk/Source/WebKit/WebProcess/WebPage/EventDispatcher.cpp (228472 => 228473)


--- trunk/Source/WebKit/WebProcess/WebPage/EventDispatcher.cpp	2018-02-14 18:52:15 UTC (rev 228472)
+++ trunk/Source/WebKit/WebProcess/WebPage/EventDispatcher.cpp	2018-02-14 19:07:33 UTC (rev 228473)
@@ -96,10 +96,10 @@
 
 #if PLATFORM(COCOA)
     switch (wheelEvent.phase()) {
-    case PlatformWheelEventPhaseBegan:
+    case WebWheelEvent::PhaseBegan:
         m_recentWheelEventDeltaFilter->beginFilteringDeltas();
         break;
-    case PlatformWheelEventPhaseEnded:
+    case WebWheelEvent::PhaseEnded:
         m_recentWheelEventDeltaFilter->endFilteringDeltas();
         break;
     default:
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to