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

Unified Diff: third_party/WebKit/Source/core/svg/SVGElement.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/svg/SVGElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGElement.cpp
index ecc8a6083c73aa9a31e3ac08b3ce9b0808453def..88b13cabd79b091f5a2cf4d69f8c1e4987973a16 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
@@ -269,7 +269,7 @@ void SVGElement::setWebAnimatedAttribute(const QualifiedName& attribute,
notifyAnimValChanged(element, attribute);
}
});
- ensureSVGRareData()->webAnimatedAttributes().add(&attribute);
+ ensureSVGRareData()->webAnimatedAttributes().insert(&attribute);
}
void SVGElement::clearWebAnimatedAttributes() {
@@ -528,7 +528,7 @@ void SVGElement::updateRelativeLengthsInformation(bool clientHasRelativeLengths,
bool hadRelativeLengths = currentElement.hasRelativeLengths();
if (clientHasRelativeLengths)
- currentElement.m_elementsWithRelativeLengths.add(clientElement);
+ currentElement.m_elementsWithRelativeLengths.insert(clientElement);
else
currentElement.m_elementsWithRelativeLengths.remove(clientElement);
@@ -614,7 +614,7 @@ void SVGElement::mapInstanceToElement(SVGElement* instance) {
ensureSVGRareData()->elementInstances();
ASSERT(!instances.contains(instance));
- instances.add(instance);
+ instances.insert(instance);
}
void SVGElement::removeInstanceMapping(SVGElement* instance) {
@@ -1235,8 +1235,8 @@ SVGElementSet* SVGElement::setOfIncomingReferences() const {
void SVGElement::addReferenceTo(SVGElement* targetElement) {
ASSERT(targetElement);
- ensureSVGRareData()->outgoingReferences().add(targetElement);
- targetElement->ensureSVGRareData()->incomingReferences().add(this);
+ ensureSVGRareData()->outgoingReferences().insert(targetElement);
+ targetElement->ensureSVGRareData()->incomingReferences().insert(this);
}
void SVGElement::rebuildAllIncomingReferences() {
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp ('k') | third_party/WebKit/Source/core/svg/SVGElementProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698