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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.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/CompositorMutableStateProvider.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.cpp b/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.cpp
index cd167b1a8e21fd7a82fac1686d64d6862b90f366..e5b2392656b9b51e6ebe5048457ad5b56642541a 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.cpp
@@ -35,7 +35,7 @@ CompositorMutableStateProvider::getMutableStateFor(uint64_t elementId) {
// Ensure that we have an entry in the map for |elementId| but do as few
// allocations and queries as possible. This will update the map only if we
// have not added a value for |elementId|.
- auto result = m_mutations->map.add(elementId, nullptr);
+ auto result = m_mutations->map.insert(elementId, nullptr);
// Only if this is a new entry do we want to allocate a new mutation.
if (result.isNewEntry)

Powered by Google App Engine
This is Rietveld 408576698