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

Unified Diff: third_party/WebKit/Source/core/dom/shadow/ElementShadowV0.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/shadow/ElementShadowV0.cpp
diff --git a/third_party/WebKit/Source/core/dom/shadow/ElementShadowV0.cpp b/third_party/WebKit/Source/core/dom/shadow/ElementShadowV0.cpp
index e9209399cdf0c9a3ff77d2c49280d28f445d6b1b..c8f6b5d04ebe048af8f9b1abca4c9017ff039196 100644
--- a/third_party/WebKit/Source/core/dom/shadow/ElementShadowV0.cpp
+++ b/third_party/WebKit/Source/core/dom/shadow/ElementShadowV0.cpp
@@ -205,7 +205,7 @@ void ElementShadowV0::distribute() {
void ElementShadowV0::didDistributeNode(const Node* node,
InsertionPoint* insertionPoint) {
NodeToDestinationInsertionPoints::AddResult result =
- m_nodeToInsertionPoints.add(node, nullptr);
+ m_nodeToInsertionPoints.insert(node, nullptr);
if (result.isNewEntry)
result.storedValue->value = new DestinationInsertionPoints;
result.storedValue->value->push_back(insertionPoint);

Powered by Google App Engine
This is Rietveld 408576698