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

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

Issue 190793011: Use isSVG*Element() helpers more in SVG code (Part 4) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
« no previous file with comments | « Source/core/svg/SVGAnimateMotionElement.cpp ('k') | Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAnimationElement.cpp
diff --git a/Source/core/svg/SVGAnimationElement.cpp b/Source/core/svg/SVGAnimationElement.cpp
index 608353a39b1b3981f85924828ef19fcc4674fd76..2507e8e770254bee41fc3b9940c2cea2480af3e8 100644
--- a/Source/core/svg/SVGAnimationElement.cpp
+++ b/Source/core/svg/SVGAnimationElement.cpp
@@ -183,7 +183,7 @@ void SVGAnimationElement::parseAttribute(const QualifiedName& name, const Atomic
}
if (name == SVGNames::keyPointsAttr) {
- if (hasTagName(SVGNames::animateMotionTag)) {
+ if (isSVGAnimateMotionElement(*this)) {
// This is specified to be an animateMotion attribute only but it is simpler to put it here
// where the other timing calculatations are.
parseKeyTimes(value, m_keyPoints, false);
@@ -305,7 +305,7 @@ void SVGAnimationElement::setCalcMode(const AtomicString& calcMode)
else if (calcMode == spline)
setCalcMode(CalcModeSpline);
else
- setCalcMode(hasTagName(SVGNames::animateMotionTag) ? CalcModePaced : CalcModeLinear);
+ setCalcMode(isSVGAnimateMotionElement(*this) ? CalcModePaced : CalcModeLinear);
}
void SVGAnimationElement::setAttributeType(const AtomicString& attributeType)
@@ -494,7 +494,7 @@ AnimatedPropertyType SVGAnimationElement::determineAnimatedPropertyType() const
// Only <animatedTransform> is allowed to animate AnimatedTransformList.
// http://www.w3.org/TR/SVG/animate.html#AnimationAttributesAndProperties
- if (propertyType == AnimatedTransformList && !hasTagName(SVGNames::animateTransformTag))
+ if (propertyType == AnimatedTransformList && !isSVGAnimateTransformElement(*this))
return AnimatedUnknown;
return propertyType;
« no previous file with comments | « Source/core/svg/SVGAnimateMotionElement.cpp ('k') | Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698