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

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

Issue 22791004: Add toSVGStopElement(Node* node) to clean-up a static_cast<SVGStopElement*> (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/svg/SVGStopElement.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 f6b6dde6be62bcb42df5270e9de29c68c7c33c50..1eaf384472f5754eba421ce097a5e9e6bed37e4b 100644
--- a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp
+++ b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp
@@ -625,7 +625,7 @@ void writeSVGGradientStop(TextStream& ts, const RenderSVGGradientStop& stop, int
{
writeStandardPrefix(ts, stop, indent);
- SVGStopElement* stopElement = static_cast<SVGStopElement*>(stop.node());
+ SVGStopElement* stopElement = toSVGStopElement(stop.node());
ASSERT(stopElement);
RenderStyle* style = stop.style();
« no previous file with comments | « no previous file | Source/core/svg/SVGStopElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698