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

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

Issue 2555743005: Add iterator support to blink::EventPath. (Closed)
Patch Set: Exposed the vector Created 4 years 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/TreeScopeEventContext.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 0bcf7c11529c4b7b3fd0878fcd6a1016c996284f..8fb5bccc64e994045d263e9880f83178b0eae387 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -481,9 +481,10 @@ WebInputEventResult PointerEventManager::sendMousePointerEvent(
// Event path could be null if pointer event is not dispatched and
// that happens for example when pointer event feature is not enabled.
if (!isInDocument(mouseTarget) && pointerEvent->hasEventPath()) {
- for (size_t i = 0; i < pointerEvent->eventPath().size(); i++) {
- if (isInDocument(pointerEvent->eventPath()[i].node())) {
- mouseTarget = pointerEvent->eventPath()[i].node();
+ for (const auto& context :
+ pointerEvent->eventPath().nodeEventContexts()) {
+ if (isInDocument(context.node())) {
+ mouseTarget = context.node();
break;
}
}
« no previous file with comments | « third_party/WebKit/Source/core/events/TreeScopeEventContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698