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

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

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase 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 b1890ab05ff9d1c30a8d8cf4925881823fc5b260..67a9d573785143e0e21f2534f050569531a759bc 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
@@ -478,7 +478,7 @@ CSSPropertyID SVGElement::cssPropertyIdForSVGAttributeName(
}
}
- return propertyNameToIdMap->get(attrName.localName().impl());
+ return propertyNameToIdMap->at(attrName.localName().impl());
}
void SVGElement::updateRelativeLengthsInformation(bool clientHasRelativeLengths,
@@ -745,7 +745,7 @@ AnimatedPropertyType SVGElement::animatedPropertyTypeForCSSAttribute(
// If the attribute is not present in the map, this will return the "empty
// value" per HashTraits - which is AnimatedUnknown.
DCHECK_EQ(HashTraits<AnimatedPropertyType>::emptyValue(), AnimatedUnknown);
- return cssPropertyMap.get(attributeName);
+ return cssPropertyMap.at(attributeName);
}
void SVGElement::addToPropertyMap(SVGAnimatedPropertyBase* property) {
@@ -980,7 +980,7 @@ void SVGElement::synchronizeAnimatedSVGAttribute(
elementData()->m_animatedSVGAttributesAreDirty = false;
} else {
- SVGAnimatedPropertyBase* property = m_attributeToPropertyMap.get(name);
+ SVGAnimatedPropertyBase* property = m_attributeToPropertyMap.at(name);
if (property && property->needsSynchronizeAttribute())
property->synchronizeAttribute();
}

Powered by Google App Engine
This is Rietveld 408576698