Changeset 235975 in webkit


Ignore:
Timestamp:
Sep 13, 2018 9:43:46 AM (6 years ago)
Author:
Fujii Hironori
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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r235973 r235975  
     12018-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
    1132018-09-13  Youenn Fablet  <youenn@apple.com>
    214
  • trunk/Source/WebCore/platform/win/WheelEventWin.cpp

    r230355 r235975  
    8484
    8585    // Global Position is just x, y location of event
    86     POINT point = {location.x(), location.y()};
    8786    float inverseScaleFactor = 1.0f / deviceScaleFactorForWindow(hWnd);
    88     m_globalPosition = point;
     87    m_globalPosition = flooredIntPoint(location);
    8988    m_globalPosition.scale(inverseScaleFactor, inverseScaleFactor);
    9089
    9190    // Position needs to be translated to our client
     91    POINT point;
    9292    ScreenToClient(hWnd, &point);
    9393    m_position = point;
Note: See TracChangeset for help on using the changeset viewer.