| Index: Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp
|
| diff --git a/Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp b/Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp
|
| index 0c7684b0dc79b414fd529ece045dddec2505f42d..eb1a45ed8bd2fbec4ee0d8d98b613bfc7b4a4ea3 100644
|
| --- a/Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp
|
| +++ b/Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp
|
| @@ -84,20 +84,7 @@ bool RenderSVGResourceSolidColor::applyResource(RenderObject* object, RenderStyl
|
| void RenderSVGResourceSolidColor::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);
|
| }
|
|
|
| }
|
|
|