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

Unified Diff: Source/core/rendering/svg/RenderSVGEllipse.cpp

Issue 23320003: Add toSVGCircleElement(), and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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 | « no previous file | Source/core/rendering/svg/SVGPathData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGEllipse.cpp
diff --git a/Source/core/rendering/svg/RenderSVGEllipse.cpp b/Source/core/rendering/svg/RenderSVGEllipse.cpp
index 3c559f6b6da8293c8026da28ff376da45ed20377..42b23b87076560919bba486f3c09a51a60cbefd1 100644
--- a/Source/core/rendering/svg/RenderSVGEllipse.cpp
+++ b/Source/core/rendering/svg/RenderSVGEllipse.cpp
@@ -77,8 +77,7 @@ void RenderSVGEllipse::calculateRadiiAndCenter()
{
ASSERT(node());
if (node()->hasTagName(SVGNames::circleTag)) {
-
- SVGCircleElement* circle = static_cast<SVGCircleElement*>(node());
+ SVGCircleElement* circle = toSVGCircleElement(node());
SVGLengthContext lengthContext(circle);
float radius = circle->rCurrentValue().value(lengthContext);
« no previous file with comments | « no previous file | Source/core/rendering/svg/SVGPathData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698