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

Unified Diff: third_party/WebKit/Source/core/css/CSSValuePool.h

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs Created 3 years, 10 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/core/css/CSSValuePool.h
diff --git a/third_party/WebKit/Source/core/css/CSSValuePool.h b/third_party/WebKit/Source/core/css/CSSValuePool.h
index cc6abb983d3b0cb3a73f2811d31e97cb6711403d..e07d4518ef83275b55b272c2fb6d371e8455194c 100644
--- a/third_party/WebKit/Source/core/css/CSSValuePool.h
+++ b/third_party/WebKit/Source/core/css/CSSValuePool.h
@@ -101,18 +101,18 @@ class CORE_EXPORT CSSValuePool
// Just wipe out the cache and start rebuilding if it gets too big.
if (m_colorValueCache.size() > maximumColorCacheSize)
m_colorValueCache.clear();
- return m_colorValueCache.add(rgbValue, nullptr);
+ return m_colorValueCache.insert(rgbValue, nullptr);
}
FontFamilyValueCache::AddResult getFontFamilyCacheEntry(
const String& familyName) {
- return m_fontFamilyValueCache.add(familyName, nullptr);
+ return m_fontFamilyValueCache.insert(familyName, nullptr);
}
FontFaceValueCache::AddResult getFontFaceCacheEntry(
const AtomicString& string) {
// Just wipe out the cache and start rebuilding if it gets too big.
if (m_fontFaceValueCache.size() > maximumFontFaceCacheSize)
m_fontFaceValueCache.clear();
- return m_fontFaceValueCache.add(string, nullptr);
+ return m_fontFaceValueCache.insert(string, nullptr);
}
DECLARE_TRACE();
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSSegmentedFontFace.cpp ('k') | third_party/WebKit/Source/core/css/FontFaceCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698