Index: Source/core/css/CSSParser-in.cpp |
diff --git a/Source/core/css/CSSParser-in.cpp b/Source/core/css/CSSParser-in.cpp |
index 118d8a13700a84a364088d7d9f0da47f3a4a4383..54cdebd3daa3b22ff8482cc6cc4f545f789506d9 100644 |
--- a/Source/core/css/CSSParser-in.cpp |
+++ b/Source/core/css/CSSParser-in.cpp |
@@ -7395,7 +7395,7 @@ bool CSSParser::parseDeprecatedGradient(CSSParserValueList* valueList, RefPtr<CS |
a = args->next(); |
if (!a || a->unit != CSSPrimitiveValue::CSS_NUMBER) |
return false; |
- static_cast<CSSRadialGradientValue*>(result.get())->setFirstRadius(createPrimitiveNumericValue(a)); |
+ toCSSRadialGradientValue(result.get())->setFirstRadius(createPrimitiveNumericValue(a)); |
// Comma after the first radius. |
a = args->next(); |
@@ -7432,7 +7432,7 @@ bool CSSParser::parseDeprecatedGradient(CSSParserValueList* valueList, RefPtr<CS |
a = args->next(); |
if (!a || a->unit != CSSPrimitiveValue::CSS_NUMBER) |
return false; |
- static_cast<CSSRadialGradientValue*>(result.get())->setSecondRadius(createPrimitiveNumericValue(a)); |
+ toCSSRadialGradientValue(result.get())->setSecondRadius(createPrimitiveNumericValue(a)); |
} |
// We now will accept any number of stops (0 or more). |