| Index: third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp b/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
|
| index ee425ba764a2deff0e630de1dccfb53d2b05cb4f..71ee51eba1df8af4c95f5de1347772df1c2ed709 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
|
| @@ -164,21 +164,18 @@ AnimatedPropertyType SVGAnimateElement::animatedPropertyType() {
|
| }
|
|
|
| bool SVGAnimateElement::hasValidTarget() {
|
| - return SVGAnimationElement::hasValidTarget() && hasValidAttributeName() &&
|
| - hasValidAttributeType();
|
| + if (!SVGAnimationElement::hasValidTarget())
|
| + return false;
|
| + if (!hasValidAttributeName())
|
| + return false;
|
| + resolveTargetProperty();
|
| + return m_type != AnimatedUnknown && !m_hasInvalidCSSAttributeType;
|
| }
|
|
|
| bool SVGAnimateElement::hasValidAttributeName() const {
|
| return attributeName() != anyQName();
|
| }
|
|
|
| -bool SVGAnimateElement::hasValidAttributeType() {
|
| - if (!targetElement())
|
| - return false;
|
| - return animatedPropertyType() != AnimatedUnknown &&
|
| - !hasInvalidCSSAttributeType();
|
| -}
|
| -
|
| bool SVGAnimateElement::shouldApplyAnimation(
|
| const SVGElement& targetElement,
|
| const QualifiedName& attributeName) {
|
|
|