Changeset 235975 in webkit
- Timestamp:
- Sep 13, 2018 9:43:46 AM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r235973 r235975 1 2018-09-13 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 [Win][Clang] error: type 'float' cannot be narrowed to 'LONG' (aka 'long') in initializer list in WheelEventWin.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=189575 5 6 Reviewed by Alex Christensen. 7 8 No new tests (No behavior change). 9 10 * platform/win/WheelEventWin.cpp: 11 (WebCore::PlatformWheelEvent::PlatformWheelEvent): Use flooredIntPoint to convert FloatPoint to POINT. 12 1 13 2018-09-13 Youenn Fablet <youenn@apple.com> 2 14 -
trunk/Source/WebCore/platform/win/WheelEventWin.cpp
r230355 r235975 84 84 85 85 // Global Position is just x, y location of event 86 POINT point = {location.x(), location.y()};87 86 float inverseScaleFactor = 1.0f / deviceScaleFactorForWindow(hWnd); 88 m_globalPosition = point;87 m_globalPosition = flooredIntPoint(location); 89 88 m_globalPosition.scale(inverseScaleFactor, inverseScaleFactor); 90 89 91 90 // Position needs to be translated to our client 91 POINT point; 92 92 ScreenToClient(hWnd, &point); 93 93 m_position = point;
Note: See TracChangeset
for help on using the changeset viewer.