| 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;
|
| }
|
| }
|
|
|