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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontCache.cpp

Issue 2615813003: Migrate WTF::Vector::append() to ::push_back() [part 14 of N] (Closed)
Patch Set: rebase, small fix in FontSettings.h 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/platform/fonts/FontCache.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/FontCache.cpp b/third_party/WebKit/Source/platform/fonts/FontCache.cpp
index 07f072892a09fde557324b2fb16ffa7ba0cb82d7..46d0b1d1b69c1aa11db43f658d7d04ac3a6ff66c 100644
--- a/third_party/WebKit/Source/platform/fonts/FontCache.cpp
+++ b/third_party/WebKit/Source/platform/fonts/FontCache.cpp
@@ -337,11 +337,11 @@ static inline void purgePlatformFontDataCache() {
for (const auto& platformData : sizedFonts.value) {
if (platformData.value &&
!gFontDataCache->contains(platformData.value.get()))
- sizesToRemove.append(platformData.key);
+ sizesToRemove.push_back(platformData.key);
}
sizedFonts.value.removeAll(sizesToRemove);
if (sizedFonts.value.isEmpty())
- keysToRemove.append(sizedFonts.key);
+ keysToRemove.push_back(sizedFonts.key);
}
gFontPlatformDataCache->removeAll(keysToRemove);
}
@@ -368,7 +368,7 @@ static inline void purgeFontVerticalDataCache() {
fontVerticalDataCache.begin();
verticalData != verticalDataEnd; ++verticalData) {
if (!verticalData->value || !verticalData->value->inFontCache())
- keysToRemove.append(verticalData->key);
+ keysToRemove.push_back(verticalData->key);
}
fontVerticalDataCache.removeAll(keysToRemove);
}
@@ -449,7 +449,7 @@ void FontCache::invalidate() {
for (HeapHashSet<WeakMember<FontCacheClient>>::iterator it =
fontCacheClients().begin();
it != end; ++it)
- clients.append(*it);
+ clients.push_back(*it);
ASSERT(numClients == clients.size());
for (size_t i = 0; i < numClients; ++i)

Powered by Google App Engine
This is Rietveld 408576698