Title: [235975] trunk/Source/WebCore
Revision
235975
Author
[email protected]
Date
2018-09-13 09:43:46 -0700 (Thu, 13 Sep 2018)

Log Message

[Win][Clang] error: type 'float' cannot be narrowed to 'LONG' (aka 'long') in initializer list in WheelEventWin.cpp
https://bugs.webkit.org/show_bug.cgi?id=189575

Reviewed by Alex Christensen.

No new tests (No behavior change).

* platform/win/WheelEventWin.cpp:
(WebCore::PlatformWheelEvent::PlatformWheelEvent): Use flooredIntPoint to convert FloatPoint to POINT.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (235974 => 235975)


--- trunk/Source/WebCore/ChangeLog	2018-09-13 15:40:03 UTC (rev 235974)
+++ trunk/Source/WebCore/ChangeLog	2018-09-13 16:43:46 UTC (rev 235975)
@@ -1,3 +1,15 @@
+2018-09-13  Fujii Hironori  <[email protected]>
+
+        [Win][Clang] error: type 'float' cannot be narrowed to 'LONG' (aka 'long') in initializer list in WheelEventWin.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=189575
+
+        Reviewed by Alex Christensen.
+
+        No new tests (No behavior change).
+
+        * platform/win/WheelEventWin.cpp:
+        (WebCore::PlatformWheelEvent::PlatformWheelEvent): Use flooredIntPoint to convert FloatPoint to POINT.
+
 2018-09-13  Youenn Fablet  <[email protected]>
 
         Introduce RTCRtpSendParameters

Modified: trunk/Source/WebCore/platform/win/WheelEventWin.cpp (235974 => 235975)


--- trunk/Source/WebCore/platform/win/WheelEventWin.cpp	2018-09-13 15:40:03 UTC (rev 235974)
+++ trunk/Source/WebCore/platform/win/WheelEventWin.cpp	2018-09-13 16:43:46 UTC (rev 235975)
@@ -83,12 +83,12 @@
     m_wheelTicksY = m_deltaY;
 
     // Global Position is just x, y location of event
-    POINT point = {location.x(), location.y()};
     float inverseScaleFactor = 1.0f / deviceScaleFactorForWindow(hWnd);
-    m_globalPosition = point;
+    m_globalPosition = flooredIntPoint(location);
     m_globalPosition.scale(inverseScaleFactor, inverseScaleFactor);
 
     // Position needs to be translated to our client
+    POINT point;
     ScreenToClient(hWnd, &point);
     m_position = point;
     m_position.scale(inverseScaleFactor, inverseScaleFactor);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to