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

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

Issue 130623002: Clean up static_cast<SVGFooElement*> by using toSVGFoo() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 11 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/SVGAnimateTransformElement.h ('k') | Source/core/svg/SVGCursorElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAnimatedTransformList.cpp
diff --git a/Source/core/svg/SVGAnimatedTransformList.cpp b/Source/core/svg/SVGAnimatedTransformList.cpp
index bc11a030ace1f382f036759e20fa34aded6b2949..9a3971b938eb4a90c4b43c0604bed75c658784c0 100644
--- a/Source/core/svg/SVGAnimatedTransformList.cpp
+++ b/Source/core/svg/SVGAnimatedTransformList.cpp
@@ -34,7 +34,7 @@ namespace WebCore {
SVGAnimatedTransformListAnimator::SVGAnimatedTransformListAnimator(SVGAnimationElement* animationElement, SVGElement* contextElement)
: SVGAnimatedTypeAnimator(AnimatedTransformList, animationElement, contextElement)
- , m_transformTypeString(SVGTransform::transformTypePrefixForParsing(static_cast<SVGAnimateTransformElement*>(animationElement)->transformType()))
+ , m_transformTypeString(SVGTransform::transformTypePrefixForParsing(toSVGAnimateTransformElement(animationElement)->transformType()))
{
// Only <animateTransform> uses this animator, as <animate> doesn't allow to animate transform lists directly.
ASSERT(animationElement->hasTagName(SVGNames::animateTransformTag));
« no previous file with comments | « Source/core/svg/SVGAnimateTransformElement.h ('k') | Source/core/svg/SVGCursorElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698