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

Unified Diff: third_party/WebKit/Source/core/svg/SVGElementProxy.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/SVGElementProxy.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElementProxy.cpp b/third_party/WebKit/Source/core/svg/SVGElementProxy.cpp
index 4f33bfe380cbf9c09287f69cb784613ce55b0da6..41033b528ec34d55c2dc86b93b3cc839c4656e24 100644
--- a/third_party/WebKit/Source/core/svg/SVGElementProxy.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElementProxy.cpp
@@ -84,11 +84,11 @@ void SVGElementProxy::addClient(SVGResourceClient* client) {
return;
// Ensure sure we have an observer registered for this tree scope.
auto& scopeObserver =
- m_observers.add(clientScope, nullptr).storedValue->value;
+ m_observers.insert(clientScope, nullptr).storedValue->value;
if (!scopeObserver)
scopeObserver = new IdObserver(*clientScope, *this);
- auto& observer = m_clients.add(client, nullptr).storedValue->value;
+ auto& observer = m_clients.insert(client, nullptr).storedValue->value;
if (!observer)
observer = scopeObserver;

Powered by Google App Engine
This is Rietveld 408576698