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

Unified Diff: Source/core/svg/properties/SVGPathSegListPropertyTearOff.cpp

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/properties/SVGAnimatedPathSegListPropertyTearOff.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/properties/SVGPathSegListPropertyTearOff.cpp
diff --git a/Source/core/svg/properties/SVGPathSegListPropertyTearOff.cpp b/Source/core/svg/properties/SVGPathSegListPropertyTearOff.cpp
index b0906648fa42155c1e7b4877b338141ec61835f6..6a15cadd965cab2c30b2553248698d39b32a190c 100644
--- a/Source/core/svg/properties/SVGPathSegListPropertyTearOff.cpp
+++ b/Source/core/svg/properties/SVGPathSegListPropertyTearOff.cpp
@@ -89,8 +89,7 @@ SVGPathElement* SVGPathSegListPropertyTearOff::contextElement() const
{
SVGElement* contextElement = m_animatedProperty->contextElement();
ASSERT(contextElement);
- ASSERT(contextElement->hasTagName(SVGNames::pathTag));
- return static_cast<SVGPathElement*>(contextElement);
+ return toSVGPathElement(contextElement);
}
bool SVGPathSegListPropertyTearOff::processIncomingListItemValue(const ListItemType& newItem, unsigned* indexToModify)
« no previous file with comments | « Source/core/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698