| Index: third_party/WebKit/WebCore/platform/graphics/FontCache.cpp
|
| ===================================================================
|
| --- third_party/WebKit/WebCore/platform/graphics/FontCache.cpp (revision 9118)
|
| +++ third_party/WebKit/WebCore/platform/graphics/FontCache.cpp (working copy)
|
| @@ -276,7 +276,7 @@
|
| }
|
|
|
| Vector<FontPlatformDataCacheKey> keysToRemove;
|
| - keysToRemove.reserveCapacity(gFontPlatformDataCache->size());
|
| + keysToRemove.reserveInitialCapacity(gFontPlatformDataCache->size());
|
| FontPlatformDataCache::iterator platformDataEnd = gFontPlatformDataCache->end();
|
| for (FontPlatformDataCache::iterator platformData = gFontPlatformDataCache->begin(); platformData != platformDataEnd; ++platformData) {
|
| if (platformData->second && !gFontDataCache->contains(*platformData->second))
|
| @@ -396,7 +396,7 @@
|
|
|
| Vector<RefPtr<FontSelector> > clients;
|
| size_t numClients = gClients->size();
|
| - clients.reserveCapacity(numClients);
|
| + clients.reserveInitialCapacity(numClients);
|
| HashSet<FontSelector*>::iterator end = gClients->end();
|
| for (HashSet<FontSelector*>::iterator it = gClients->begin(); it != end; ++it)
|
| clients.append(*it);
|
|
|