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

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
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..12987434a7271e297c5958681c7bcc3e302c67fc 100644
--- a/Source/core/svg/properties/SVGPathSegListPropertyTearOff.cpp
+++ b/Source/core/svg/properties/SVGPathSegListPropertyTearOff.cpp
@@ -90,7 +90,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)

Powered by Google App Engine
This is Rietveld 408576698