Set the new PlatformWheelEvent member variables to sane defaults
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 May 2012 23:21:02 +0000 (23:21 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 May 2012 23:21:02 +0000 (23:21 +0000)
https://bugs.webkit.org/show_bug.cgi?id=86542

Reviewed by Andreas Kling.

* src/WebInputEventConversion.cpp:
(WebKit::PlatformWheelEventBuilder::PlatformWheelEventBuilder):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117177 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/WebInputEventConversion.cpp

index 79824b0..075557a 100644 (file)
@@ -1,3 +1,13 @@
+2012-05-15  Anders Carlsson  <andersca@apple.com>
+
+        Set the new PlatformWheelEvent member variables to sane defaults
+        https://bugs.webkit.org/show_bug.cgi?id=86542
+
+        Reviewed by Andreas Kling.
+
+        * src/WebInputEventConversion.cpp:
+        (WebKit::PlatformWheelEventBuilder::PlatformWheelEventBuilder):
+
 2012-05-15  Ian Vollick  <vollick@chromium.org>
 
         [chromium] Ensure animations get ticked at least once when added.
index dedfcb4..a45cae1 100644 (file)
@@ -128,6 +128,9 @@ PlatformWheelEventBuilder::PlatformWheelEventBuilder(Widget* widget, const WebMo
     m_phase = static_cast<WebCore::PlatformWheelEventPhase>(e.phase);
     m_momentumPhase = static_cast<WebCore::PlatformWheelEventPhase>(e.momentumPhase);
     m_timestamp = e.timeStampSeconds;
+    m_scrollCount = 0;
+    m_unacceleratedScrollingDeltaX = e.deltaX;
+    m_unacceleratedScrollingDeltaY = e.deltaY;
 #endif
 }