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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.cpp

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/graphics/paint/DisplayItemClient.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.cpp b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.cpp
index f8264990f93783d3b6418e90f75398559d19cb27..eb65a9882d13c85b03f909a18b0e084ecde9318e 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.cpp
@@ -53,9 +53,10 @@ void DisplayItemClient::beginShouldKeepAlive(const void* owner) const {
if (!displayItemClientsShouldKeepAlive)
displayItemClientsShouldKeepAlive =
new HashMap<const void*, HashMap<const DisplayItemClient*, String>>();
- auto addResult = displayItemClientsShouldKeepAlive
- ->add(owner, HashMap<const DisplayItemClient*, String>())
- .storedValue->value.add(this, "");
+ auto addResult =
+ displayItemClientsShouldKeepAlive
+ ->insert(owner, HashMap<const DisplayItemClient*, String>())
+ .storedValue->value.insert(this, "");
if (addResult.isNewEntry)
addResult.storedValue->value = debugName();
}

Powered by Google App Engine
This is Rietveld 408576698