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

Unified Diff: Source/core/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h

Issue 19914002: Use toSVGPathElement() instead of static_cast<> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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/SVGPathSegList.cpp ('k') | Source/core/svg/properties/SVGPathSegListPropertyTearOff.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h
diff --git a/Source/core/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h b/Source/core/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h
index 404406d02f23b29b4084c5179adf01b4d27f5f73..dfdb6d431649cd9a1dc41f8a41410ca9a036b151 100644
--- a/Source/core/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h
+++ b/Source/core/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h
@@ -88,7 +88,7 @@ public:
void animValDidChange()
{
ASSERT(m_animatedPathByteStream);
- SVGPathElement* pathElement = static_cast<SVGPathElement*>(contextElement());
+ SVGPathElement* pathElement = toSVGPathElement(contextElement());
// If the animVal is observed from JS, we have to update it on each animation step.
// This is an expensive operation and only done, if someone actually observes the animatedPathSegList() while an animation is running.
« no previous file with comments | « Source/core/svg/SVGPathSegList.cpp ('k') | Source/core/svg/properties/SVGPathSegListPropertyTearOff.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698