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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/ShapeCache.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/platform/fonts/shaping/ShapeCache.h
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeCache.h b/third_party/WebKit/Source/platform/fonts/shaping/ShapeCache.h
index bf7efa8ac98b4d03951fecb089338f73aee2f5de..6a7c1db718fdcfc95b6cc148e38966ba0eff6b2b 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeCache.h
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeCache.h
@@ -190,7 +190,7 @@ class ShapeCache {
// as such use bit 32 to indicate direction.
if (run.direction() == TextDirection::kRtl)
key |= (1u << 31);
- SingleCharMap::AddResult addResult = m_singleCharMap.add(key, entry);
+ SingleCharMap::AddResult addResult = m_singleCharMap.insert(key, entry);
isNewEntry = addResult.isNewEntry;
value = &addResult.storedValue->value;
} else {
@@ -203,7 +203,7 @@ class ShapeCache {
SmallStringKey(run.characters16(), length, run.direction());
SmallStringMap::AddResult addResult =
- m_shortStringMap.add(smallStringKey, entry);
+ m_shortStringMap.insert(smallStringKey, entry);
isNewEntry = addResult.isNewEntry;
value = &addResult.storedValue->value;
}

Powered by Google App Engine
This is Rietveld 408576698