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

Unified Diff: third_party/WebKit/Source/core/layout/svg/SVGResourcesCycleSolver.cpp

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (Closed)
Patch Set: Created 3 years, 11 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/layout/svg/SVGResourcesCycleSolver.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGResourcesCycleSolver.cpp b/third_party/WebKit/Source/core/layout/svg/SVGResourcesCycleSolver.cpp
index b155c74f09aa834ed004836a207231514bb276f6..8ee065e87a5af606134372422370621df9dd91cb 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGResourcesCycleSolver.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/SVGResourcesCycleSolver.cpp
@@ -46,7 +46,7 @@ struct ActiveFrame {
ActiveFrame(ResourceSet& activeSet, LayoutSVGResourceContainer* resource)
: m_activeSet(activeSet), m_resource(resource) {
- m_activeSet.add(m_resource);
+ m_activeSet.insert(m_resource);
}
~ActiveFrame() { m_activeSet.remove(m_resource); }
@@ -87,7 +87,7 @@ bool SVGResourcesCycleSolver::resourceContainsCycles(
}
// No cycles found in (or from) this resource. Add it to the "DAG cache".
- m_dagCache.add(resource);
+ m_dagCache.insert(resource);
return false;
}
@@ -97,7 +97,7 @@ void SVGResourcesCycleSolver::resolveCycles() {
// If the starting LayoutObject is a resource container itself, then add it
// to the active set (to break direct self-references.)
if (m_layoutObject->isSVGResourceContainer())
- m_activeResources.add(toLayoutSVGResourceContainer(m_layoutObject));
+ m_activeResources.insert(toLayoutSVGResourceContainer(m_layoutObject));
ResourceSet localResources;
m_resources->buildSetOfResources(localResources);

Powered by Google App Engine
This is Rietveld 408576698