| 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 26e0d38ddc0333ac465aafe22444790a08bb8121..00919b333634309bef89b043b880234a655f4ede 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
|
| @@ -703,11 +703,10 @@ AnimatedPropertyType SVGElement::animatedPropertyTypeForCSSAttribute(const Quali
|
| for (size_t i = 0; i < WTF_ARRAY_LENGTH(attrToTypes); i++)
|
| cssPropertyMap.set(attrToTypes[i].attr, attrToTypes[i].propType);
|
| }
|
| -
|
| - if (cssPropertyMap.contains(attributeName))
|
| - return cssPropertyMap.get(attributeName);
|
| -
|
| - return AnimatedUnknown;
|
| + // 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);
|
| }
|
|
|
| void SVGElement::addToPropertyMap(SVGAnimatedPropertyBase* property)
|
|
|