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

Unified Diff: third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.h

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (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/core/layout/shapes/ShapeOutsideInfo.h
diff --git a/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.h b/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.h
index 83cdc16ee48cef7971ce854c534cf7ac0874f063..644ffe63192832292a1f82e12bd22b49813f36c1 100644
--- a/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.h
+++ b/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.h
@@ -135,7 +135,7 @@ class ShapeOutsideInfo final {
if (ShapeOutsideInfo* info = infoMap.get(&key))
return *info;
InfoMap::AddResult result =
- infoMap.add(&key, ShapeOutsideInfo::createInfo(key));
+ infoMap.insert(&key, ShapeOutsideInfo::createInfo(key));
return *result.storedValue->value;
}
static void removeInfo(const LayoutBox& key) { infoMap().remove(&key); }

Powered by Google App Engine
This is Rietveld 408576698