Index: Source/core/rendering/svg/RenderSVGResourceGradient.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGResourceGradient.cpp b/Source/core/rendering/svg/RenderSVGResourceGradient.cpp |
index ebe7d52e22f0c28caf3b91d5e1c4ffc3c1883402..9d1cf6cdf746b7140634a4c545ed2ab8a1dfc3ec 100644 |
--- a/Source/core/rendering/svg/RenderSVGResourceGradient.cpp |
+++ b/Source/core/rendering/svg/RenderSVGResourceGradient.cpp |
@@ -131,20 +131,7 @@ bool RenderSVGResourceGradient::applyResource(RenderObject* object, RenderStyle* |
void RenderSVGResourceGradient::postApplyResource(RenderObject*, GraphicsContext*& context, unsigned short resourceMode, const Path* path, const RenderSVGShape* shape) |
{ |
ASSERT(context); |
- ASSERT(resourceMode != ApplyToDefaultMode); |
- |
- if (resourceMode & ApplyToFillMode) { |
- if (path) |
- context->fillPath(*path); |
- else if (shape) |
- shape->fillShape(context); |
- } |
- if (resourceMode & ApplyToStrokeMode) { |
- if (path) |
- context->strokePath(*path); |
- else if (shape) |
- shape->strokeShape(context); |
- } |
+ SVGRenderSupport::fillOrStrokePrimitive(context, resourceMode, path, shape); |
context->restore(); |
} |