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

Unified Diff: third_party/WebKit/WebCore/platform/qt/WheelEventQt.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/qt/WheelEventQt.cpp
===================================================================
--- third_party/WebKit/WebCore/platform/qt/WheelEventQt.cpp (revision 11154)
+++ third_party/WebKit/WebCore/platform/qt/WheelEventQt.cpp (working copy)
@@ -37,11 +37,7 @@
#else
: m_position(e->pos())
, m_globalPosition(e->globalPos())
-#ifdef QT_MAC_USE_COCOA
, m_granularity(ScrollByPixelWheelEvent)
-#else
- , m_granularity(ScrollByLineWheelEvent)
-#endif
, m_isAccepted(false)
, m_shiftKey(e->modifiers() & Qt::ShiftModifier)
, m_ctrlKey(e->modifiers() & Qt::ControlModifier)
@@ -56,14 +52,11 @@
m_deltaY = (e->delta() / 120);
}
- m_deltaX *= QApplication::wheelScrollLines();
// use the same single scroll step as QTextEdit (in
// QTextEditPrivate::init [h,v]bar->setSingleStep )
- // and divide by the default WebKit scroll step to
- // get the Qt mouse wheel scroll behavior
static const float cDefaultQtScrollStep = 20.f;
- m_deltaY *= QApplication::wheelScrollLines() *
- (cDefaultQtScrollStep / cMouseWheelPixelsPerLineStep);
+ m_deltaX *= QApplication::wheelScrollLines() * cDefaultQtScrollStep;
+ m_deltaY *= QApplication::wheelScrollLines() * cDefaultQtScrollStep;
}
#endif // QT_NO_WHEELEVENT

Powered by Google App Engine
This is Rietveld 408576698