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

Unified Diff: third_party/WebKit/Source/core/dom/ChildListMutationScope.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/core/dom/ChildListMutationScope.cpp
diff --git a/third_party/WebKit/Source/core/dom/ChildListMutationScope.cpp b/third_party/WebKit/Source/core/dom/ChildListMutationScope.cpp
index f6742602861d37388701ce809419196b6fa3bcbc..b96ccf192da2146b2bff3748579c73a863f2c439 100644
--- a/third_party/WebKit/Source/core/dom/ChildListMutationScope.cpp
+++ b/third_party/WebKit/Source/core/dom/ChildListMutationScope.cpp
@@ -69,7 +69,7 @@ void ChildListMutationAccumulator::leaveMutationScope() {
ChildListMutationAccumulator* ChildListMutationAccumulator::getOrCreate(
Node& target) {
- AccumulatorMap::AddResult result = accumulatorMap().add(&target, nullptr);
+ AccumulatorMap::AddResult result = accumulatorMap().insert(&target, nullptr);
ChildListMutationAccumulator* accumulator;
if (!result.isNewEntry) {
accumulator = result.storedValue->value;

Powered by Google App Engine
This is Rietveld 408576698