Chromium Code Reviews| 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..f0748a37561b247338dae7c88cff870c369e0c19 100644 |
| --- a/third_party/WebKit/Source/core/svg/SVGElement.cpp |
| +++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp |
| @@ -703,11 +703,9 @@ 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. |
| + return cssPropertyMap.get(attributeName); |
|
pdr.
2016/08/29 00:07:09
In addition to this comment, can you enforce it wi
|
| } |
| void SVGElement::addToPropertyMap(SVGAnimatedPropertyBase* property) |