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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2612903007: Migrate WTF::Vector::append() to ::push_back() [part 15 of N] (Closed)
Patch Set: Created 3 years, 11 months 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
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 054cf3d671e09f4cf65cbd0732215caa647d4a79..7961d603cace49bd35c5b9409e937fcee1e30b46 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -301,7 +301,7 @@ void WebView::resetVisitedLinkState(bool invalidateVisitedLinkHashes) {
}
void WebView::willEnterModalLoop() {
- pageSuspenderStack().append(WTF::makeUnique<ScopedPageSuspender>());
+ pageSuspenderStack().push_back(WTF::makeUnique<ScopedPageSuspender>());
}
void WebView::didExitModalLoop() {
@@ -1466,7 +1466,7 @@ void WebViewImpl::enableTapHighlightAtPoint(
Node* touchNode = bestTapNode(targetedTapEvent);
HeapVector<Member<Node>> highlightNodes;
- highlightNodes.append(touchNode);
+ highlightNodes.push_back(touchNode);
enableTapHighlights(highlightNodes);
}
@@ -1493,7 +1493,7 @@ void WebViewImpl::enableTapHighlights(
if (!highlightColor.alpha())
continue;
- m_linkHighlights.append(LinkHighlightImpl::create(node, this));
+ m_linkHighlights.push_back(LinkHighlightImpl::create(node, this));
}
updateAllLifecyclePhases();
@@ -3388,7 +3388,7 @@ void WebViewImpl::spellingMarkers(WebVector<uint32_t>* markers) {
const DocumentMarkerVector& documentMarkers =
toLocalFrame(frame)->document()->markers().markers();
for (size_t i = 0; i < documentMarkers.size(); ++i)
- result.append(documentMarkers[i]->hash());
+ result.push_back(documentMarkers[i]->hash());
}
markers->assign(result);
}
« no previous file with comments | « third_party/WebKit/Source/web/WebTextCheckingResult.cpp ('k') | third_party/WebKit/Source/web/tests/ActivityLoggerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698