Index: Source/core/rendering/svg/RenderSVGResource.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGResource.cpp b/Source/core/rendering/svg/RenderSVGResource.cpp |
index cc9c6067a21cf5a79306573ba73d998ec52587d5..abbbede9694e7d0c18c726253397d22a67112410 100644 |
--- a/Source/core/rendering/svg/RenderSVGResource.cpp |
+++ b/Source/core/rendering/svg/RenderSVGResource.cpp |
@@ -109,9 +109,8 @@ RenderSVGResource* RenderSVGResource::requestPaintingResource(RenderSVGResourceM |
// If the primary resource is just a color, return immediately. |
RenderSVGResourceSolidColor* colorResource = RenderSVGResource::sharedSolidPaintingResource(); |
if (paintType < SVG_PAINTTYPE_URI_NONE) { |
- if (!hasColor && !inheritColorFromParentStyle(object, applyToFill, color)) |
- return 0; |
- |
+ // |paintType| will be either <current-color> or <rgb-color> here - both of which will have a color. |
+ ASSERT(hasColor); |
colorResource->setColor(color); |
return colorResource; |
} |