| 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 b40d3d62658addf035aa0ccd3460cb9c3faa07f8..76d626078b885dae5764ff35add2ae70180ed848 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
|
| @@ -226,7 +226,7 @@ static inline void removeCSSPropertyFromTarget(SVGElement* targetElement, CSSPro
|
| static inline void applyCSSPropertyToTargetAndInstances(SVGElement* targetElement, const QualifiedName& attributeName, const String& valueAsString)
|
| {
|
| ASSERT(targetElement);
|
| - if (attributeName == anyQName() || !targetElement->inShadowIncludingDocument() || !targetElement->parentNode())
|
| + if (attributeName == anyQName() || !targetElement->isConnected() || !targetElement->parentNode())
|
| return;
|
|
|
| CSSPropertyID id = cssPropertyID(attributeName.localName());
|
| @@ -245,7 +245,7 @@ static inline void applyCSSPropertyToTargetAndInstances(SVGElement* targetElemen
|
| static inline void removeCSSPropertyFromTargetAndInstances(SVGElement* targetElement, const QualifiedName& attributeName)
|
| {
|
| ASSERT(targetElement);
|
| - if (attributeName == anyQName() || !targetElement->inShadowIncludingDocument() || !targetElement->parentNode())
|
| + if (attributeName == anyQName() || !targetElement->isConnected() || !targetElement->parentNode())
|
| return;
|
|
|
| CSSPropertyID id = cssPropertyID(attributeName.localName());
|
| @@ -270,7 +270,7 @@ static inline void notifyTargetAboutAnimValChange(SVGElement* targetElement, con
|
| static inline void notifyTargetAndInstancesAboutAnimValChange(SVGElement* targetElement, const QualifiedName& attributeName)
|
| {
|
| ASSERT(targetElement);
|
| - if (attributeName == anyQName() || !targetElement->inShadowIncludingDocument() || !targetElement->parentNode())
|
| + if (attributeName == anyQName() || !targetElement->isConnected() || !targetElement->parentNode())
|
| return;
|
|
|
| SVGElement::InstanceUpdateBlocker blocker(targetElement);
|
|
|