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

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

Issue 2595393002: Fold SVGAnimatedTypeAnimator into SVGAnimateElement (Closed)
Patch Set: More ASSERT to DCHECK Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimatedTypeAnimator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cb2e4aa0d60746e15fca2838df3383cd53fa26cb..10150aca88ddd3e29ce7239a127e4ce74d16d017 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp
@@ -467,12 +467,8 @@ void SVGAnimationElement::currentValuesForValuesAnimation(
CalcMode calcMode = this->getCalcMode();
if (isSVGAnimateElement(*this)) {
SVGAnimateElement& animateElement = toSVGAnimateElement(*this);
- if (!animateElement.animatedPropertyTypeSupportsAddition()) {
- ASSERT(animateElement.animatedPropertyType() != AnimatedTransformList ||
- isSVGAnimateTransformElement(*this));
- ASSERT(animateElement.animatedPropertyType() != AnimatedUnknown);
+ if (!animateElement.animatedPropertyTypeSupportsAddition())
calcMode = CalcModeDiscrete;
- }
}
if (!m_keyPoints.isEmpty() && calcMode != CalcModePaced)
return currentValuesFromKeyPoints(percent, effectivePercent, from, to);
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimatedTypeAnimator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698