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

Unified Diff: Source/core/rendering/svg/SVGRenderSupport.h

Issue 571463002: Factor out common code from RenderSVGResource*::postApplyResource (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/SVGRenderSupport.h
diff --git a/Source/core/rendering/svg/SVGRenderSupport.h b/Source/core/rendering/svg/SVGRenderSupport.h
index 4fddafc2b23e52cb63ce4bb9f80f79a968a91083..af678f51b4ec31341922f42e333266a78f10a3e8 100644
--- a/Source/core/rendering/svg/SVGRenderSupport.h
+++ b/Source/core/rendering/svg/SVGRenderSupport.h
@@ -33,11 +33,13 @@ class GraphicsContext;
class PaintInvalidationState;
class LayoutRect;
struct PaintInfo;
+class Path;
class RenderGeometryMap;
class RenderLayerModelObject;
class RenderObject;
class RenderStyle;
class RenderSVGRoot;
+class RenderSVGShape;
class StrokeData;
class TransformState;
@@ -80,6 +82,9 @@ public:
static void applyStrokeStyleToContext(GraphicsContext*, const RenderStyle*, const RenderObject*);
static void applyStrokeStyleToStrokeData(StrokeData*, const RenderStyle*, const RenderObject*);
+ // Fill and/or stroke the primitive provide as either |path| or |shape|. The former has precedence if both are non-zero.
+ static void fillOrStrokePrimitive(GraphicsContext*, unsigned short resourceMode, const Path*, const RenderSVGShape*);
+
// Determines if any ancestor's transform has changed.
static bool transformToRootChanged(RenderObject*);
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp ('k') | Source/core/rendering/svg/SVGRenderSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698