| Index: third_party/WebKit/Source/core/events/Event.cpp
|
| diff --git a/third_party/WebKit/Source/core/events/Event.cpp b/third_party/WebKit/Source/core/events/Event.cpp
|
| index 7f0f5a312e6469d97e5cb97af592b7d0d2c4262b..f09c2ac6f1782615bf5da6437981e9aa882edfc7 100644
|
| --- a/third_party/WebKit/Source/core/events/Event.cpp
|
| +++ b/third_party/WebKit/Source/core/events/Event.cpp
|
| @@ -301,12 +301,9 @@ HeapVector<Member<EventTarget>> Event::pathInternal(ScriptState* scriptState,
|
|
|
| if (Node* node = m_currentTarget->toNode()) {
|
| DCHECK(m_eventPath);
|
| - size_t eventPathSize = m_eventPath->size();
|
| - for (size_t i = 0; i < eventPathSize; ++i) {
|
| - if (node == (*m_eventPath)[i].node()) {
|
| - return (*m_eventPath)[i].treeScopeEventContext().ensureEventPath(
|
| - *m_eventPath);
|
| - }
|
| + for (auto& context : m_eventPath->nodeEventContexts()) {
|
| + if (node == context.node())
|
| + return context.treeScopeEventContext().ensureEventPath(*m_eventPath);
|
| }
|
| NOTREACHED();
|
| }
|
|
|