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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 2124533002: Revert middle click related changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/core/events/MouseEvent.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 03f9f100a33b0bac3bd8bfb46ab57dfd3c3849e7..60a7ae484bedd99758f1b2c73bc06d9b90b0a035 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -1444,19 +1444,8 @@ WebInputEventResult EventHandler::handleMouseReleaseEvent(const PlatformMouseEve
// because the mouseup dispatch above has already updated it
// correctly. Moreover, clickTargetNode is different from
// mev.innerNode at drag-release.
-
- MouseEvent* event = MouseEvent::create(
- EventTypeNames::click,
- clickTargetNode->document().domWindow(),
- mev.event(), m_clickCount, nullptr);
-
- // This is to suppress sending click events for non-primary buttons.
- // But still doing default action like opening a new tab for middle
- // click (crbug.com/255).
- if (mev.event().button() != MouseButton::LeftButton)
- event->stopPropagation();
-
- clickEventResult = toWebInputEventResult(clickTargetNode->dispatchEvent(event));
+ clickEventResult = toWebInputEventResult(clickTargetNode->dispatchMouseEvent(mev.event(),
+ EventTypeNames::click, m_clickCount));
}
}
« no previous file with comments | « third_party/WebKit/Source/core/events/MouseEvent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698