Index: Source/core/svg/SVGLinearGradientElement.cpp |
diff --git a/Source/core/svg/SVGLinearGradientElement.cpp b/Source/core/svg/SVGLinearGradientElement.cpp |
index 583fcf42e8d8244b5b97a8afdcf0836ae452972d..5d5a8076cc303e27dd84fbe769d35f0283995257 100644 |
--- a/Source/core/svg/SVGLinearGradientElement.cpp |
+++ b/Source/core/svg/SVGLinearGradientElement.cpp |
@@ -148,7 +148,7 @@ bool SVGLinearGradientElement::collectGradientAttributes(LinearGradientAttribute |
} |
if (isLinear) { |
- SVGLinearGradientElement* linear = static_cast<SVGLinearGradientElement*>(current); |
+ SVGLinearGradientElement* linear = toSVGLinearGradientElement(current); |
if (!attributes.hasX1() && current->hasAttribute(SVGNames::x1Attr)) |
attributes.setX1(linear->x1CurrentValue()); |