Changeset 171531 in webkit


Ignore:
Timestamp:
Jul 24, 2014 3:17:58 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Let WheelEvent wrap a PlatformWheelEvent
https://bugs.webkit.org/show_bug.cgi?id=135244

When WheelEvent is initialized with a PlatformWheelEvent, store that PlatformWheelEvent for future use.

Patch by Wenson Hsieh <Wenson Hsieh> on 2014-07-24
Reviewed by Beth Dakin.

No new tests because behavior should not have changed.

  • dom/WheelEvent.cpp: Added method to access the PlatformWheelEvent.

(WebCore::WheelEvent::WheelEvent):

  • dom/WheelEvent.h: Added field to store PlatformWheelEvent, if initialized via PlatformWheelEvent.

(WebCore::WheelEvent::wheelEvent):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r171528 r171531  
     12014-07-24  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Let WheelEvent wrap a PlatformWheelEvent
     4        https://bugs.webkit.org/show_bug.cgi?id=135244
     5
     6        When WheelEvent is initialized with a PlatformWheelEvent, store that PlatformWheelEvent for future use.
     7
     8        Reviewed by Beth Dakin.
     9
     10        No new tests because behavior should not have changed.
     11
     12        * dom/WheelEvent.cpp: Added method to access the PlatformWheelEvent.
     13        (WebCore::WheelEvent::WheelEvent):
     14        * dom/WheelEvent.h: Added field to store PlatformWheelEvent, if initialized via PlatformWheelEvent.
     15        (WebCore::WheelEvent::wheelEvent):
     16
    1172014-07-24  Brian J. Burg  <burg@cs.washington.edu>
    218
  • trunk/Source/WebCore/dom/WheelEvent.cpp

    r166965 r171531  
    7777    , m_deltaMode(determineDeltaMode(event))
    7878    , m_directionInvertedFromDevice(event.directionInvertedFromDevice())
     79    , m_wheelEvent(std::make_unique<PlatformWheelEvent>(event))
    7980#if PLATFORM(MAC)
    8081    , m_phase(event.phase())
  • trunk/Source/WebCore/dom/WheelEvent.h

    r164551 r171531  
    7878        bool ctrlKey, bool altKey, bool shiftKey, bool metaKey);
    7979
     80    const PlatformWheelEvent* wheelEvent() const { return m_wheelEvent.get(); }
    8081    double deltaX() const { return m_deltaX; } // Positive when scrolling right.
    8182    double deltaY() const { return m_deltaY; } // Positive when scrolling down.
     
    111112    unsigned m_deltaMode;
    112113    bool m_directionInvertedFromDevice;
     114    std::unique_ptr<PlatformWheelEvent> m_wheelEvent;
    113115
    114116#if PLATFORM(MAC)
Note: See TracChangeset for help on using the changeset viewer.