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

Unified Diff: third_party/WebKit/Source/core/html/shadow/SliderThumbElement.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/html/shadow/SliderThumbElement.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp b/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp
index 8d9d3f157686106527291c1d3c1f15c6a4c3c210..f03ce0f2f0ad90dccbd7ac4b20adf4b31a5609f6 100644
--- a/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp
@@ -206,7 +206,7 @@ void SliderThumbElement::defaultEventHandler(Event* event)
}
MouseEvent* mouseEvent = toMouseEvent(event);
- bool isLeftButton = mouseEvent->button() == LeftButton;
+ bool isLeftButton = mouseEvent->button() == static_cast<short>(WebPointerProperties::Button::Left);
const AtomicString& eventType = event->type();
// We intentionally do not call event->setDefaultHandled() here because

Powered by Google App Engine
This is Rietveld 408576698