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

Unified Diff: third_party/WebKit/Source/core/svg/SVGTreeScopeResources.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/svg/SVGTreeScopeResources.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGTreeScopeResources.cpp b/third_party/WebKit/Source/core/svg/SVGTreeScopeResources.cpp
index 2a997401aebd2efe0cda0faee68ae9f9cd91e6ca..eacac72899bd8aa87c840109d3a82ee8ff9b3cb9 100644
--- a/third_party/WebKit/Source/core/svg/SVGTreeScopeResources.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGTreeScopeResources.cpp
@@ -52,7 +52,7 @@ void SVGTreeScopeResources::addPendingResource(const AtomicString& id,
return;
HeapHashMap<AtomicString, Member<SVGPendingElements>>::AddResult result =
- m_pendingResources.add(id, nullptr);
+ m_pendingResources.insert(id, nullptr);
if (result.isNewEntry)
result.storedValue->value = new SVGPendingElements;
result.storedValue->value->insert(element);

Powered by Google App Engine
This is Rietveld 408576698