Index: Source/core/css/resolver/ElementStyleResources.cpp |
diff --git a/Source/core/css/resolver/ElementStyleResources.cpp b/Source/core/css/resolver/ElementStyleResources.cpp |
index 0b937280aa39de886331136a28dcb85b74db110f..76b0327c901495eea4b6daf0f5a8ae53fa8c64ef 100644 |
--- a/Source/core/css/resolver/ElementStyleResources.cpp |
+++ b/Source/core/css/resolver/ElementStyleResources.cpp |
@@ -42,11 +42,8 @@ PassRefPtr<StyleImage> ElementStyleResources::styleImage(Document& document, con |
if (value->isImageValue()) |
return cachedOrPendingFromValue(document, property, toCSSImageValue(value)); |
- if (value->isImageGeneratorValue()) { |
- if (value->isGradientValue()) |
- return generatedOrPendingFromValue(property, toCSSGradientValue(value)->gradientWithStylesResolved(textLinkColors, currentColor).get()); |
+ if (value->isImageGeneratorValue()) |
return generatedOrPendingFromValue(property, toCSSImageGeneratorValue(value)); |
- } |
if (value->isImageSetValue()) |
return setOrPendingFromValue(property, toCSSImageSetValue(value)); |