Changeset 249415 in webkit
- Timestamp:
- Sep 2, 2019 6:53:00 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r249414 r249415 1 2019-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 1 14 2019-09-02 Brent Fulgham <bfulgham@apple.com> 2 15 -
trunk/Source/WebCore/platform/PlatformWheelEvent.h
r247670 r249415 157 157 #if PLATFORM(WIN) 158 158 PlatformWheelEvent(HWND, WPARAM, LPARAM, bool isMouseHWheel); 159 PlatformWheelEvent(HWND, const FloatSize& delta, const FloatPoint& location);160 159 #endif 161 160 -
trunk/Source/WebCore/platform/win/WheelEventWin.cpp
r235975 r249415 73 73 } 74 74 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 event86 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 client91 POINT point;92 ScreenToClient(hWnd, &point);93 m_position = point;94 m_position.scale(inverseScaleFactor, inverseScaleFactor);95 }96 97 75 PlatformWheelEvent::PlatformWheelEvent(HWND hWnd, WPARAM wParam, LPARAM lParam, bool isMouseHWheel) 98 76 : 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.