Index: Source/core/rendering/svg/RenderSVGResource.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGResource.cpp b/Source/core/rendering/svg/RenderSVGResource.cpp |
index 0ee1191269dcf0c68afc7a0a9ce5f72852d05b10..eef60598685cc0f19c6b8fbcb8ba323e60a05371 100644 |
--- a/Source/core/rendering/svg/RenderSVGResource.cpp |
+++ b/Source/core/rendering/svg/RenderSVGResource.cpp |
@@ -81,8 +81,7 @@ static inline RenderSVGResource* requestPaintingResource(RenderSVGResourceMode m |
bool applyToFill = mode == ApplyToFillMode; |
SVGPaint::SVGPaintType paintType = applyToFill ? svgStyle->fillPaintType() : svgStyle->strokePaintType(); |
- if (paintType == SVGPaint::SVG_PAINTTYPE_NONE) |
- return 0; |
+ ASSERT(paintType != SVGPaint::SVG_PAINTTYPE_NONE); |
Color color; |
bool hasColor = false; |