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

Unified Diff: third_party/WebKit/Source/core/svg/SVGElementProxy.cpp

Issue 2796163002: Migrate WTF::HashCountedSet::add() to ::insert() (Closed)
Patch Set: Created 3 years, 8 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 29e2c7d2335509590d2825def2778c2f953c6c4b..a87b6bcd30e5cd8802388c7f79873ebc57ea7fd6 100644
--- a/third_party/WebKit/Source/core/svg/SVGElementProxy.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElementProxy.cpp
@@ -19,7 +19,7 @@ class SVGElementProxy::IdObserver : public IdTargetObserver {
: IdTargetObserver(treeScope.idTargetObserverRegistry(), proxy.id()),
m_treeScope(&treeScope) {}
- void addClient(SVGResourceClient* client) { m_clients.add(client); }
+ void addClient(SVGResourceClient* client) { m_clients.insert(client); }
bool removeClient(SVGResourceClient* client) {
return m_clients.remove(client);
}
@@ -28,7 +28,7 @@ class SVGElementProxy::IdObserver : public IdTargetObserver {
TreeScope* treeScope() const { return m_treeScope; }
void transferClients(IdObserver& observer) {
for (const auto& client : m_clients)
- observer.m_clients.add(client.key, client.value);
+ observer.m_clients.insert(client.key, client.value);
m_clients.clear();
}

Powered by Google App Engine
This is Rietveld 408576698