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

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

Issue 2696183002: Migrate WTF::HashSet::remove() to ::erase() [part 1] (Closed)
Patch Set: one more platform-specific reference 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/SVGElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGElement.cpp
index 2167da9a2e85d5c10a8eba3b515c9edf26730bf2..53baaab839ee6d66335018073a7f44dca9eaf8ba 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
@@ -532,7 +532,7 @@ void SVGElement::updateRelativeLengthsInformation(bool clientHasRelativeLengths,
if (clientHasRelativeLengths)
currentElement.m_elementsWithRelativeLengths.insert(clientElement);
else
- currentElement.m_elementsWithRelativeLengths.remove(clientElement);
+ currentElement.m_elementsWithRelativeLengths.erase(clientElement);
// If the relative length state hasn't changed, we can stop propagating the
// notification.
@@ -629,7 +629,7 @@ void SVGElement::removeInstanceMapping(SVGElement* instance) {
HeapHashSet<WeakMember<SVGElement>>& instances =
svgRareData()->elementInstances();
- instances.remove(instance);
+ instances.erase(instance);
}
static HeapHashSet<WeakMember<SVGElement>>& emptyInstances() {
@@ -1278,7 +1278,7 @@ void SVGElement::removeAllIncomingReferences() {
SVGElementSet& incomingReferences = svgRareData()->incomingReferences();
for (SVGElement* sourceElement : incomingReferences) {
ASSERT(sourceElement->hasSVGRareData());
- sourceElement->ensureSVGRareData()->outgoingReferences().remove(this);
+ sourceElement->ensureSVGRareData()->outgoingReferences().erase(this);
}
incomingReferences.clear();
}
@@ -1290,7 +1290,7 @@ void SVGElement::removeAllOutgoingReferences() {
SVGElementSet& outgoingReferences = svgRareData()->outgoingReferences();
for (SVGElement* targetElement : outgoingReferences) {
ASSERT(targetElement->hasSVGRareData());
- targetElement->ensureSVGRareData()->incomingReferences().remove(this);
+ targetElement->ensureSVGRareData()->incomingReferences().erase(this);
}
outgoingReferences.clear();
}

Powered by Google App Engine
This is Rietveld 408576698