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

Unified Diff: Source/core/svg/SVGMPathElement.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/SVGMPathElement.cpp
diff --git a/Source/core/svg/SVGMPathElement.cpp b/Source/core/svg/SVGMPathElement.cpp
index 93a21c87b638f2bbd36d7c2741491aa65dc7919d..5930cccd8a5dc4753ae79d3e05d8f1061ffa06a5 100644
--- a/Source/core/svg/SVGMPathElement.cpp
+++ b/Source/core/svg/SVGMPathElement.cpp
@@ -154,7 +154,7 @@ SVGPathElement* SVGMPathElement::pathElement()
{
Element* target = targetElementFromIRIString(hrefCurrentValue(), document());
if (target && target->hasTagName(SVGNames::pathTag))
- return static_cast<SVGPathElement*>(target);
+ return toSVGPathElement(target);
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698