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

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

Issue 2762913003: Revert of Ignore pointer capture target while calculating click target (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/MouseEventManager.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/PointerEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/PointerEventManager.cpp b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
index 3f1e5f9fe689ff552dc129703c501b102b9c40b5..9f87727f5ab889a192169b892c86d357f50ff0a6 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -502,14 +502,14 @@
result,
m_mouseEventManager->dispatchMouseEvent(
mouseTarget, mouseEventType, mouseEvent, canvasRegionId, nullptr));
- }
-
- if (selectionOverLink && mouseEventType == EventTypeNames::mouseup) {
- WebInputEventResult clickEventResult =
- m_mouseEventManager->dispatchMouseClickIfNeeded(
- pointerEventTarget ? pointerEventTarget->toNode() : nullptr,
- mouseEvent, canvasRegionId, target);
- result = EventHandlingUtil::mergeEventResult(clickEventResult, result);
+
+ if (selectionOverLink && mouseTarget &&
+ mouseEventType == EventTypeNames::mouseup) {
+ WebInputEventResult clickEventResult =
+ m_mouseEventManager->dispatchMouseClickIfNeeded(
+ mouseTarget->toNode(), mouseEvent, canvasRegionId, target);
+ result = EventHandlingUtil::mergeEventResult(clickEventResult, result);
+ }
}
if (pointerEvent->type() == EventTypeNames::pointerup ||
« no previous file with comments | « third_party/WebKit/Source/core/input/MouseEventManager.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698