Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1216)

Unified Diff: Source/core/rendering/svg/RenderSVGShape.cpp

Issue 630903003: Move common GC state update code out of paint-server application (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698