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

Unified Diff: third_party/WebKit/Source/web/TextFinder.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/TextFinder.cpp
diff --git a/third_party/WebKit/Source/web/TextFinder.cpp b/third_party/WebKit/Source/web/TextFinder.cpp
index 6bdd96dd0b088cc3f6b8dbb24ad90cbb2cea0e1c..d9c0a274ebd2e2e8d9c016e0b08a63b184088cde 100644
--- a/third_party/WebKit/Source/web/TextFinder.cpp
+++ b/third_party/WebKit/Source/web/TextFinder.cpp
@@ -392,7 +392,7 @@ void TextFinder::scopeStringMatches(int identifier,
ownerFrame().frame()->document()->markers().addTextMatchMarker(
EphemeralRange(resultRange), foundActiveMatch);
- m_findMatchesCache.append(
+ m_findMatchesCache.push_back(
FindMatch(resultRange, m_lastMatchCount + matchCount));
// Set the new start for the search range to be the end of the previous
@@ -535,7 +535,7 @@ void TextFinder::updateFindMatchRects() {
for (const FindMatch& match : m_findMatchesCache) {
if (!match.m_rect.isEmpty())
- filteredMatches.append(match);
+ filteredMatches.push_back(match);
}
m_findMatchesCache.swap(filteredMatches);
@@ -566,7 +566,7 @@ void TextFinder::findMatchRects(WebVector<WebFloatRect>& outputRects) {
matchRects.reserveCapacity(matchRects.size() + m_findMatchesCache.size());
for (const FindMatch& match : m_findMatchesCache) {
DCHECK(!match.m_rect.isEmpty());
- matchRects.append(match.m_rect);
+ matchRects.push_back(match.m_rect);
}
outputRects = matchRects;
« no previous file with comments | « third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp ('k') | third_party/WebKit/Source/web/WebDOMActivityLogger.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698