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

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

Issue 2521993003: Send boundary events before gotpointercapture (Closed)
Patch Set: Created 4 years, 1 month 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/LayoutTests/fast/events/pointerevents/touch-capture-expected.txt ('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 de73cdadcf841a1cb3d8b65287ccf0058570dd7e..3124e056dadff03a7e2682d5a7182ac01a872ec7 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -598,16 +598,16 @@ void PointerEventManager::processPendingPointerCapture(
m_pointerEventFactory.createPointerCaptureEvent(
pointerEvent, EventTypeNames::lostpointercapture));
}
- // Note that If pendingPointerCaptureTarget is null dispatchPointerEvent
- // automatically does nothing.
- dispatchPointerEvent(pendingPointerCaptureTarget,
- m_pointerEventFactory.createPointerCaptureEvent(
- pointerEvent, EventTypeNames::gotpointercapture));
- if (pendingPointerCaptureTarget)
+ if (pendingPointerCaptureTarget) {
+ setNodeUnderPointer(pointerEvent, pendingPointerCaptureTarget);
+ dispatchPointerEvent(pendingPointerCaptureTarget,
+ m_pointerEventFactory.createPointerCaptureEvent(
+ pointerEvent, EventTypeNames::gotpointercapture));
m_pointerCaptureTarget.set(pointerId, pendingPointerCaptureTarget);
- else
+ } else {
m_pointerCaptureTarget.remove(pointerId);
+ }
}
void PointerEventManager::removeTargetFromPointerCapturingMapping(
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-capture-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698