Index: Source/core/rendering/svg/RenderSVGResourceLinearGradient.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGResourceLinearGradient.cpp b/Source/core/rendering/svg/RenderSVGResourceLinearGradient.cpp |
index d6f54722ceeb4392adfa842ce5bc61e18f0f83a4..4a0b52f467a3a626934b0dd28e760bec0d5afd71 100644 |
--- a/Source/core/rendering/svg/RenderSVGResourceLinearGradient.cpp |
+++ b/Source/core/rendering/svg/RenderSVGResourceLinearGradient.cpp |
@@ -41,7 +41,7 @@ RenderSVGResourceLinearGradient::~RenderSVGResourceLinearGradient() |
bool RenderSVGResourceLinearGradient::collectGradientAttributes(SVGGradientElement* gradientElement) |
{ |
m_attributes = LinearGradientAttributes(); |
- return static_cast<SVGLinearGradientElement*>(gradientElement)->collectGradientAttributes(m_attributes); |
+ return toSVGLinearGradientElement(gradientElement)->collectGradientAttributes(m_attributes); |
} |
FloatPoint RenderSVGResourceLinearGradient::startPoint(const LinearGradientAttributes& attributes) const |