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

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

Issue 2771463002: Revert "Send click event after pointer capturing retarget" (Closed)
Patch Set: Created 3 years, 9 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/input/PointerEventManager.h ('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/PointerEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/PointerEventManager.cpp b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
index 61a5f01cdb83edccb0ac205f84e4d1482f67325a..41f35c26ba8587511fa2b5b1a954df70d5746744 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -447,8 +447,7 @@ WebInputEventResult PointerEventManager::sendMousePointerEvent(
const String& canvasRegionId,
const AtomicString& mouseEventType,
const WebMouseEvent& mouseEvent,
- const Vector<WebMouseEvent>& coalescedEvents,
- bool selectionOverLink) {
+ const Vector<WebMouseEvent>& coalescedEvents) {
PointerEvent* pointerEvent =
m_pointerEventFactory.create(mouseEventType, mouseEvent, coalescedEvents,
m_frame->document()->domWindow());
@@ -501,14 +500,6 @@ WebInputEventResult PointerEventManager::sendMousePointerEvent(
result,
m_mouseEventManager->dispatchMouseEvent(
mouseTarget, mouseEventType, mouseEvent, canvasRegionId, nullptr));
-
- if (selectionOverLink && mouseTarget &&
- mouseEventType == EventTypeNames::mouseup) {
- WebInputEventResult clickEventResult =
- m_mouseEventManager->dispatchMouseClickIfNeeded(
- mouseTarget->toNode(), mouseEvent, canvasRegionId);
- result = EventHandlingUtil::mergeEventResult(clickEventResult, result);
- }
}
if (pointerEvent->type() == EventTypeNames::pointerup ||
« no previous file with comments | « third_party/WebKit/Source/core/input/PointerEventManager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698