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

Unified Diff: Source/core/svg/SVGRadialGradientElement.cpp

Issue 22897011: Introduce toSVGRadialGradientElement(), 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 | « Source/core/svg/SVGRadialGradientElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGRadialGradientElement.cpp
diff --git a/Source/core/svg/SVGRadialGradientElement.cpp b/Source/core/svg/SVGRadialGradientElement.cpp
index 6ba70e50d97618c5a1f70513710f324af0a8296f..4929cc24265d5887b5540c0c0458eae61a9065d3 100644
--- a/Source/core/svg/SVGRadialGradientElement.cpp
+++ b/Source/core/svg/SVGRadialGradientElement.cpp
@@ -159,7 +159,7 @@ bool SVGRadialGradientElement::collectGradientAttributes(RadialGradientAttribute
}
if (isRadial) {
- SVGRadialGradientElement* radial = static_cast<SVGRadialGradientElement*>(current);
+ SVGRadialGradientElement* radial = toSVGRadialGradientElement(current);
if (!attributes.hasCx() && current->hasAttribute(SVGNames::cxAttr))
attributes.setCx(radial->cxCurrentValue());
« no previous file with comments | « Source/core/svg/SVGRadialGradientElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698