Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Unified Diff: third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp

Issue 1858163002: Rename inDocument() to inShadowIncludingDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 f6d952125070b8e1f8877d0231bf8c3e267b9977..66685621a203e124600bad2b5ac82318a439e091 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());
}
}
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGUseElement.cpp ('k') | third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698