Index: third_party/WebKit/Source/core/events/EventPath.cpp |
diff --git a/third_party/WebKit/Source/core/events/EventPath.cpp b/third_party/WebKit/Source/core/events/EventPath.cpp |
index 9b3ebc30682f9c41f645b6a979d281e7c7ebd933..b07a95bb5435913248f2b91aadb12a470f5d634b 100644 |
--- a/third_party/WebKit/Source/core/events/EventPath.cpp |
+++ b/third_party/WebKit/Source/core/events/EventPath.cpp |
@@ -119,7 +119,7 @@ void EventPath::calculatePath() { |
current = correspondingUseElement; |
} |
- nodesInPath.append(current); |
+ nodesInPath.push_back(current); |
while (current) { |
if (m_event && current->keepEventInNode(m_event)) |
break; |
@@ -132,9 +132,9 @@ void EventPath::calculatePath() { |
insertionPoint->containingShadowRoot(); |
DCHECK(containingShadowRoot); |
if (!containingShadowRoot->isOldest()) |
- nodesInPath.append(containingShadowRoot->olderShadowRoot()); |
+ nodesInPath.push_back(containingShadowRoot->olderShadowRoot()); |
} |
- nodesInPath.append(insertionPoint); |
+ nodesInPath.push_back(insertionPoint); |
} |
current = insertionPoints.back(); |
continue; |
@@ -142,7 +142,7 @@ void EventPath::calculatePath() { |
if (current->isChildOfV1ShadowHost()) { |
if (HTMLSlotElement* slot = current->assignedSlot()) { |
current = slot; |
- nodesInPath.append(current); |
+ nodesInPath.push_back(current); |
continue; |
} |
} |
@@ -151,17 +151,17 @@ void EventPath::calculatePath() { |
shouldStopAtShadowRoot(*m_event, *toShadowRoot(current), *m_node)) |
break; |
current = current->ownerShadowHost(); |
- nodesInPath.append(current); |
+ nodesInPath.push_back(current); |
} else { |
current = current->parentNode(); |
if (current) |
- nodesInPath.append(current); |
+ nodesInPath.push_back(current); |
} |
} |
m_nodeEventContexts.reserveCapacity(nodesInPath.size()); |
for (Node* nodeInPath : nodesInPath) { |
- m_nodeEventContexts.append(NodeEventContext( |
+ m_nodeEventContexts.push_back(NodeEventContext( |
nodeInPath, eventTargetRespectingTargetRules(*nodeInPath))); |
} |
} |
@@ -274,7 +274,7 @@ EventTarget* EventPath::findRelatedNode(TreeScope& scope, |
EventTarget* relatedNode = nullptr; |
for (TreeScope* current = &scope; current; |
current = current->olderShadowRootOrParentTreeScope()) { |
- parentTreeScopes.append(current); |
+ parentTreeScopes.push_back(current); |
RelatedTargetMap::const_iterator iter = relatedTargetMap.find(current); |
if (iter != relatedTargetMap.end() && iter->value) { |
relatedNode = iter->value; |
@@ -344,10 +344,10 @@ void EventPath::adjustForTouchEvent(TouchEvent& touchEvent) { |
for (const auto& treeScopeEventContext : m_treeScopeEventContexts) { |
TouchEventContext* touchEventContext = |
treeScopeEventContext->ensureTouchEventContext(); |
- adjustedTouches.append(&touchEventContext->touches()); |
- adjustedTargetTouches.append(&touchEventContext->targetTouches()); |
- adjustedChangedTouches.append(&touchEventContext->changedTouches()); |
- treeScopes.append(&treeScopeEventContext->treeScope()); |
+ adjustedTouches.push_back(&touchEventContext->touches()); |
+ adjustedTargetTouches.push_back(&touchEventContext->targetTouches()); |
+ adjustedChangedTouches.push_back(&touchEventContext->changedTouches()); |
+ treeScopes.push_back(&treeScopeEventContext->treeScope()); |
} |
adjustTouchList(touchEvent.touches(), adjustedTouches, treeScopes); |