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

Unified Diff: third_party/WebKit/Source/core/dom/custom/V0CustomElementScheduler.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/custom/V0CustomElementScheduler.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/V0CustomElementScheduler.cpp b/third_party/WebKit/Source/core/dom/custom/V0CustomElementScheduler.cpp
index 8cd07dfd595e9520fe9f19eb6d32afada1f93c21..bf8d1ffe4557a1aa1c12a693ecd7633b31f7bc6f 100644
--- a/third_party/WebKit/Source/core/dom/custom/V0CustomElementScheduler.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/V0CustomElementScheduler.cpp
@@ -58,7 +58,7 @@ static ElementCallbackQueueMap& callbackQueues() {
static V0CustomElementCallbackQueue& ensureCallbackQueue(Element* element) {
ElementCallbackQueueMap::ValueType* it =
- callbackQueues().add(element, nullptr).storedValue;
+ callbackQueues().insert(element, nullptr).storedValue;
if (!it->value)
it->value = V0CustomElementCallbackQueue::create(element);
return *it->value.get();

Powered by Google App Engine
This is Rietveld 408576698