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

Unified Diff: third_party/WebKit/Source/core/dom/Node.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/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index a834c8b5463ed24fa606b1d574f35798798572cf..598888fd44b6457aba568c57c5bf16e7c8bb47f0 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -2096,7 +2096,7 @@ void Node::defaultEventHandler(Event* event)
#if OS(WIN)
} else if (eventType == EventTypeNames::mousedown && event->isMouseEvent()) {
MouseEvent* mouseEvent = toMouseEvent(event);
- if (mouseEvent->button() == MiddleButton) {
+ if (mouseEvent->button() == static_cast<short>(WebPointerProperties::Button::Middle)) {
if (enclosingLinkEventParentOrSelf())
return;

Powered by Google App Engine
This is Rietveld 408576698