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

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

Issue 19781008: Introduce toSVGRectElement(), use it (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/rendering/svg/SVGPathData.cpp ('k') | Source/core/svg/SVGRectElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/SVGRenderTreeAsText.cpp
diff --git a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp
index fc5b9a68bd0737f041b548d2f77a99338761a1e6..9cae67f235e41b0cc544d1ce8f1e5acd3362994b 100644
--- a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp
+++ b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp
@@ -331,7 +331,7 @@ static TextStream& operator<<(TextStream& ts, const RenderSVGShape& shape)
SVGLengthContext lengthContext(svgElement);
if (svgElement->hasTagName(SVGNames::rectTag)) {
- SVGRectElement* element = static_cast<SVGRectElement*>(svgElement);
+ SVGRectElement* element = toSVGRectElement(svgElement);
writeNameValuePair(ts, "x", element->xCurrentValue().value(lengthContext));
writeNameValuePair(ts, "y", element->yCurrentValue().value(lengthContext));
writeNameValuePair(ts, "width", element->widthCurrentValue().value(lengthContext));
« no previous file with comments | « Source/core/rendering/svg/SVGPathData.cpp ('k') | Source/core/svg/SVGRectElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698