Changeset 171531 in webkit
- Timestamp:
- Jul 24, 2014 3:17:58 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r171528 r171531 1 2014-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 1 17 2014-07-24 Brian J. Burg <burg@cs.washington.edu> 2 18 -
trunk/Source/WebCore/dom/WheelEvent.cpp
r166965 r171531 77 77 , m_deltaMode(determineDeltaMode(event)) 78 78 , m_directionInvertedFromDevice(event.directionInvertedFromDevice()) 79 , m_wheelEvent(std::make_unique<PlatformWheelEvent>(event)) 79 80 #if PLATFORM(MAC) 80 81 , m_phase(event.phase()) -
trunk/Source/WebCore/dom/WheelEvent.h
r164551 r171531 78 78 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey); 79 79 80 const PlatformWheelEvent* wheelEvent() const { return m_wheelEvent.get(); } 80 81 double deltaX() const { return m_deltaX; } // Positive when scrolling right. 81 82 double deltaY() const { return m_deltaY; } // Positive when scrolling down. … … 111 112 unsigned m_deltaMode; 112 113 bool m_directionInvertedFromDevice; 114 std::unique_ptr<PlatformWheelEvent> m_wheelEvent; 113 115 114 116 #if PLATFORM(MAC)
Note: See TracChangeset
for help on using the changeset viewer.