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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp

Issue 2408913002: Push hasValidAttributeName/Type down into SVGAnimateElement (Closed)
Patch Set: Created 4 years, 2 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/SVGAnimationElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp b/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp
index f8b993764eec2eb1449a9334d9b296a7fd61e86e..8f7c47a67d644e609ce507c553eb6b29a4343b96 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp
@@ -518,11 +518,7 @@ void SVGAnimationElement::currentValuesForValuesAnimation(
void SVGAnimationElement::startedActiveInterval() {
m_animationValid = false;
- if (!isValid())
- return;
- if (!targetElement())
- return;
- if (!hasValidAttributeType())
+ if (!isValid() || !hasValidTarget())
return;
// These validations are appropriate for all animation modes.
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGDiscardElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698