Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(568)

Unified Diff: third_party/WebKit/WebCore/platform/gtk/WheelEventGtk.cpp

Issue 39293: WebKit merge 41447:41498 [third_party/WebKit] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove CRLF Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/WebCore/platform/gtk/WheelEventGtk.cpp
===================================================================
--- third_party/WebKit/WebCore/platform/gtk/WheelEventGtk.cpp (revision 11154)
+++ third_party/WebKit/WebCore/platform/gtk/WheelEventGtk.cpp (working copy)
@@ -27,6 +27,7 @@
#include "config.h"
#include "PlatformWheelEvent.h"
+#include "Scrollbar.h"
#include <gdk/gdk.h>
@@ -61,7 +62,7 @@
m_position = IntPoint((int)event->x, (int)event->y);
m_globalPosition = IntPoint((int)event->x_root, (int)event->y_root);
- m_granularity = ScrollByLineWheelEvent;
+ m_granularity = ScrollByPixelWheelEvent;
m_isAccepted = false;
m_shiftKey = event->state & GDK_SHIFT_MASK;
m_ctrlKey = event->state & GDK_CONTROL_MASK;
@@ -74,8 +75,8 @@
#endif
// FIXME: retrieve the user setting for the number of lines to scroll on each wheel event
- m_deltaX *= horizontalLineMultiplier();
- m_deltaY *= verticalLineMultiplier();
+ m_deltaX *= (float)cScrollbarPixelsPerLineStep;
+ m_deltaY *= (float)cScrollbarPixelsPerLineStep;
}
}
« no previous file with comments | « third_party/WebKit/WebCore/platform/gtk/ScrollbarGtk.cpp ('k') | third_party/WebKit/WebCore/platform/gtk/WidgetGtk.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698