Changeset 249415 in webkit


Ignore:
Timestamp:
Sep 2, 2019 6:53:00 PM (5 years ago)
Author:
Fujii Hironori
Message:

[Win] Remove a unused PlatformWheelEvent constructor
https://bugs.webkit.org/show_bug.cgi?id=201398

Reviewed by Don Olmstead.

No behavior change.

  • platform/PlatformWheelEvent.h:
  • platform/win/WheelEventWin.cpp:

Removed a unused PlatformWheelEvent constructor.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r249414 r249415  
     12019-09-02  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win] Remove a unused PlatformWheelEvent constructor
     4        https://bugs.webkit.org/show_bug.cgi?id=201398
     5
     6        Reviewed by Don Olmstead.
     7
     8        No behavior change.
     9
     10        * platform/PlatformWheelEvent.h:
     11        * platform/win/WheelEventWin.cpp:
     12        Removed a unused PlatformWheelEvent constructor.
     13
    1142019-09-02  Brent Fulgham  <bfulgham@apple.com>
    215
  • trunk/Source/WebCore/platform/PlatformWheelEvent.h

    r247670 r249415  
    157157#if PLATFORM(WIN)
    158158    PlatformWheelEvent(HWND, WPARAM, LPARAM, bool isMouseHWheel);
    159     PlatformWheelEvent(HWND, const FloatSize& delta, const FloatPoint& location);
    160159#endif
    161160
  • trunk/Source/WebCore/platform/win/WheelEventWin.cpp

    r235975 r249415  
    7373}
    7474
    75 PlatformWheelEvent::PlatformWheelEvent(HWND hWnd, const FloatSize& delta, const FloatPoint& location)
    76     : PlatformEvent(PlatformEvent::Wheel, false, false, false, false, WallTime::fromRawSeconds(::GetTickCount() * 0.001))
    77     , m_directionInvertedFromDevice(false)
    78 {
    79     m_deltaX = delta.width();
    80     m_deltaY = delta.height();
    81 
    82     m_wheelTicksX = m_deltaX;
    83     m_wheelTicksY = m_deltaY;
    84 
    85     // Global Position is just x, y location of event
    86     float inverseScaleFactor = 1.0f / deviceScaleFactorForWindow(hWnd);
    87     m_globalPosition = flooredIntPoint(location);
    88     m_globalPosition.scale(inverseScaleFactor, inverseScaleFactor);
    89 
    90     // Position needs to be translated to our client
    91     POINT point;
    92     ScreenToClient(hWnd, &point);
    93     m_position = point;
    94     m_position.scale(inverseScaleFactor, inverseScaleFactor);
    95 }
    96 
    9775PlatformWheelEvent::PlatformWheelEvent(HWND hWnd, WPARAM wParam, LPARAM lParam, bool isMouseHWheel)
    9876    : PlatformEvent(PlatformEvent::Wheel, wParam & MK_SHIFT, wParam & MK_CONTROL, GetKeyState(VK_MENU) & HIGH_BIT_MASK_SHORT, GetKeyState(VK_MENU) & HIGH_BIT_MASK_SHORT, WallTime::fromRawSeconds(::GetTickCount() * 0.001))
Note: See TracChangeset for help on using the changeset viewer.