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

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

Issue 2107093003: Revert middle click related changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 04b488f2cf5755fc2d017c11b7f5758beeeb7fc9..a73fa9c69d2e30436841f8f7bcad277059d141ce 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -1192,19 +1192,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