Chromium Code Reviews| Index: Source/core/rendering/svg/RenderSVGShape.cpp |
| diff --git a/Source/core/rendering/svg/RenderSVGShape.cpp b/Source/core/rendering/svg/RenderSVGShape.cpp |
| index d13bd6333907574b0a394b8d37eb023c402ad6cd..20ef852f1468fa692cc588c7390f1aebe427a534 100644 |
| --- a/Source/core/rendering/svg/RenderSVGShape.cpp |
| +++ b/Source/core/rendering/svg/RenderSVGShape.cpp |
| @@ -205,11 +205,13 @@ void RenderSVGShape::fillShape(RenderStyle* style, GraphicsContext* context) |
| bool hasFallback; |
| if (RenderSVGResource* fillPaintingResource = RenderSVGResource::requestPaintingResource(ApplyToFillMode, this, style, hasFallback)) { |
| if (fillPaintingResource->applyResource(this, style, context, ApplyToFillMode)) { |
| + SVGRenderSupport::updateGraphicsContext(context, style, *this, ApplyToFillMode); |
|
pdr.
2014/10/07 02:57:48
Can we move this call into applyResource so it doe
fs
2014/10/07 12:34:20
We can - at least for now. In ~2 CLs applyResource
|
| fillShape(context); |
| fillPaintingResource->postApplyResource(context); |
| } else if (hasFallback) { |
| RenderSVGResourceSolidColor* fallbackResource = RenderSVGResource::sharedSolidPaintingResource(); |
| if (fallbackResource->applyResource(this, style, context, ApplyToFillMode)) { |
| + SVGRenderSupport::updateGraphicsContext(context, style, *this, ApplyToFillMode); |
| fillShape(context); |
| fallbackResource->postApplyResource(context); |
| } |
| @@ -222,11 +224,13 @@ void RenderSVGShape::strokeShape(RenderStyle* style, GraphicsContext* context) |
| bool hasFallback; |
| if (RenderSVGResource* strokePaintingResource = RenderSVGResource::requestPaintingResource(ApplyToStrokeMode, this, style, hasFallback)) { |
| if (strokePaintingResource->applyResource(this, style, context, ApplyToStrokeMode)) { |
| + SVGRenderSupport::updateGraphicsContext(context, style, *this, ApplyToStrokeMode); |
| strokeShape(context); |
| strokePaintingResource->postApplyResource(context); |
| } else if (hasFallback) { |
| RenderSVGResourceSolidColor* fallbackResource = RenderSVGResource::sharedSolidPaintingResource(); |
| if (fallbackResource->applyResource(this, style, context, ApplyToStrokeMode)) { |
| + SVGRenderSupport::updateGraphicsContext(context, style, *this, ApplyToStrokeMode); |
| strokeShape(context); |
| fallbackResource->postApplyResource(context); |
| } |