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

Unified Diff: third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.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/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 10192d7fb7214137bcbd265dd52db5541c7b3a8d..59a96e84d6b777c69f118721973297e4be08f073 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().erase(&key); }

Powered by Google App Engine
This is Rietveld 408576698