| 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 331c4611c1e8729fa70f55d06705e2b8d23f5cad..4dac59a14b76f9d2317c0646b424b2c77ea37c9d 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
|
| @@ -233,7 +233,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->inDocument() || !targetElement->parentNode())
|
| + if (attributeName == anyQName() || !targetElement->inShadowIncludingDocument() || !targetElement->parentNode())
|
| return;
|
|
|
| CSSPropertyID id = cssPropertyID(attributeName.localName());
|
| @@ -252,7 +252,7 @@ static inline void applyCSSPropertyToTargetAndInstances(SVGElement* targetElemen
|
| static inline void removeCSSPropertyFromTargetAndInstances(SVGElement* targetElement, const QualifiedName& attributeName)
|
| {
|
| ASSERT(targetElement);
|
| - if (attributeName == anyQName() || !targetElement->inDocument() || !targetElement->parentNode())
|
| + if (attributeName == anyQName() || !targetElement->inShadowIncludingDocument() || !targetElement->parentNode())
|
| return;
|
|
|
| CSSPropertyID id = cssPropertyID(attributeName.localName());
|
| @@ -280,7 +280,7 @@ static inline void notifyTargetAboutAnimValChange(SVGElement* targetElement, con
|
| static inline void notifyTargetAndInstancesAboutAnimValChange(SVGElement* targetElement, const QualifiedName& attributeName)
|
| {
|
| ASSERT(targetElement);
|
| - if (attributeName == anyQName() || !targetElement->inDocument() || !targetElement->parentNode())
|
| + if (attributeName == anyQName() || !targetElement->inShadowIncludingDocument() || !targetElement->parentNode())
|
| return;
|
|
|
| SVGElement::InstanceUpdateBlocker blocker(targetElement);
|
|
|