Index: Source/core/css/resolver/ElementStyleResources.cpp |
diff --git a/Source/core/css/resolver/ElementStyleResources.cpp b/Source/core/css/resolver/ElementStyleResources.cpp |
index 09e58c65360588ae1519372a4d20b866a9a768e3..e536d67dae8ff88da40a84afc38fabe1501c8dc4 100644 |
--- a/Source/core/css/resolver/ElementStyleResources.cpp |
+++ b/Source/core/css/resolver/ElementStyleResources.cpp |
@@ -45,7 +45,7 @@ PassRefPtr<StyleImage> ElementStyleResources::styleImage(const TextLinkColors& t |
if (value->isImageGeneratorValue()) { |
if (value->isGradientValue()) |
- return generatedOrPendingFromValue(property, static_cast<CSSGradientValue*>(value)->gradientWithStylesResolved(textLinkColors, currentColor).get()); |
+ return generatedOrPendingFromValue(property, toCSSGradientValue(value)->gradientWithStylesResolved(textLinkColors, currentColor).get()); |
return generatedOrPendingFromValue(property, static_cast<CSSImageGeneratorValue*>(value)); |
} |