| Index: third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp b/third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp
|
| index 311e6a94f3b25904d9a03a501a6fb3ab60e2a0cd..c4cf06c9cc732e9cfff9ed3f594aff3cd1d5ad0a 100644
|
| --- a/third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp
|
| @@ -532,17 +532,17 @@ SMILTime SMILTimeContainer::updateAnimations(SMILTime elapsed, bool seekToTime)
|
| #endif
|
|
|
| for (unsigned i = 0; i < animationsToApplySize; ++i) {
|
| - if (animationsToApply[i]->inDocument() && animationsToApply[i]->isSVGDiscardElement()) {
|
| + if (animationsToApply[i]->inShadowIncludingDocument() && animationsToApply[i]->isSVGDiscardElement()) {
|
| SVGSMILElement* animDiscard = animationsToApply[i];
|
| SVGElement* targetElement = animDiscard->targetElement();
|
| - if (targetElement && targetElement->inDocument()) {
|
| + if (targetElement && targetElement->inShadowIncludingDocument()) {
|
| targetElement->remove(IGNORE_EXCEPTION);
|
| - ASSERT(!targetElement->inDocument());
|
| + ASSERT(!targetElement->inShadowIncludingDocument());
|
| }
|
|
|
| - if (animDiscard->inDocument()) {
|
| + if (animDiscard->inShadowIncludingDocument()) {
|
| animDiscard->remove(IGNORE_EXCEPTION);
|
| - ASSERT(!animDiscard->inDocument());
|
| + ASSERT(!animDiscard->inShadowIncludingDocument());
|
| }
|
| }
|
| }
|
|
|