Changeset 228473 in webkit


Ignore:
Timestamp:
Feb 14, 2018 11:07:33 AM (6 years ago)
Author:
rniwa@webkit.org
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):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r228472 r228473  
     12018-02-14  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        EventDispatcher::wheelEvent uses a wrong enum values in switch
     4        https://bugs.webkit.org/show_bug.cgi?id=182796
     5
     6        Reviewed by Chris Dumez.
     7
     8        EventDispatcher::wheelEvent is using PlatformWheelEventPhaseBegan and PlatformWheelEventPhaseEnded
     9        but the enum type of wheelEvent.phase() is WebWheelEvent::Phase.
     10
     11        The enum values are indentical for both so there is no behavioral change.
     12
     13        * WebProcess/WebPage/EventDispatcher.cpp:
     14        (WebKit::EventDispatcher::wheelEvent):
     15
    1162018-02-14  Maureen Daum  <mdaum@apple.com>
    217
  • trunk/Source/WebKit/WebProcess/WebPage/EventDispatcher.cpp

    r223822 r228473  
    9797#if PLATFORM(COCOA)
    9898    switch (wheelEvent.phase()) {
    99     case PlatformWheelEventPhaseBegan:
     99    case WebWheelEvent::PhaseBegan:
    100100        m_recentWheelEventDeltaFilter->beginFilteringDeltas();
    101101        break;
    102     case PlatformWheelEventPhaseEnded:
     102    case WebWheelEvent::PhaseEnded:
    103103        m_recentWheelEventDeltaFilter->endFilteringDeltas();
    104104        break;
Note: See TracChangeset for help on using the changeset viewer.