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

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: 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 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());
}
}
}

Powered by Google App Engine
This is Rietveld 408576698