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

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

Issue 629073003: Simplify/cleanup {postApply,apply}Resource signatures (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 5808cd44716e3d299ae62c22813f537934a94ff3..d13bd6333907574b0a394b8d37eb023c402ad6cd 100644
--- a/Source/core/rendering/svg/RenderSVGShape.cpp
+++ b/Source/core/rendering/svg/RenderSVGShape.cpp
@@ -206,12 +206,12 @@ void RenderSVGShape::fillShape(RenderStyle* style, GraphicsContext* context)
if (RenderSVGResource* fillPaintingResource = RenderSVGResource::requestPaintingResource(ApplyToFillMode, this, style, hasFallback)) {
if (fillPaintingResource->applyResource(this, style, context, ApplyToFillMode)) {
fillShape(context);
- fillPaintingResource->postApplyResource(this, context);
+ fillPaintingResource->postApplyResource(context);
} else if (hasFallback) {
RenderSVGResourceSolidColor* fallbackResource = RenderSVGResource::sharedSolidPaintingResource();
if (fallbackResource->applyResource(this, style, context, ApplyToFillMode)) {
fillShape(context);
- fallbackResource->postApplyResource(this, context);
+ fallbackResource->postApplyResource(context);
}
}
}
@@ -223,12 +223,12 @@ void RenderSVGShape::strokeShape(RenderStyle* style, GraphicsContext* context)
if (RenderSVGResource* strokePaintingResource = RenderSVGResource::requestPaintingResource(ApplyToStrokeMode, this, style, hasFallback)) {
if (strokePaintingResource->applyResource(this, style, context, ApplyToStrokeMode)) {
strokeShape(context);
- strokePaintingResource->postApplyResource(this, context);
+ strokePaintingResource->postApplyResource(context);
} else if (hasFallback) {
RenderSVGResourceSolidColor* fallbackResource = RenderSVGResource::sharedSolidPaintingResource();
if (fallbackResource->applyResource(this, style, context, ApplyToStrokeMode)) {
strokeShape(context);
- fallbackResource->postApplyResource(this, context);
+ fallbackResource->postApplyResource(context);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698