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

Unified Diff: third_party/WebKit/Source/core/page/AutoscrollController.cpp

Issue 2227563003: Refactoring button field and its type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix new instances Created 4 years, 4 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/Source/core/page/AutoscrollController.cpp
diff --git a/third_party/WebKit/Source/core/page/AutoscrollController.cpp b/third_party/WebKit/Source/core/page/AutoscrollController.cpp
index bc3d77aec73c0a257a0da9daa9bcf28c0de5a98e..34620a291a0f193b9ce7d0e5e8744a84ed516de0 100644
--- a/third_party/WebKit/Source/core/page/AutoscrollController.cpp
+++ b/third_party/WebKit/Source/core/page/AutoscrollController.cpp
@@ -194,7 +194,7 @@ void AutoscrollController::handleMouseReleaseForPanScrolling(LocalFrame* frame,
return;
switch (m_autoscrollType) {
case AutoscrollForPan:
- if (mouseEvent.button() == MiddleButton)
+ if (mouseEvent.pointerProperties().button == WebPointerProperties::Button::Middle)
m_autoscrollType = AutoscrollForPanCanStop;
break;
case AutoscrollForPanCanStop:
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutFrameSet.cpp ('k') | third_party/WebKit/Source/core/page/DragController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698