Index: Source/core/rendering/svg/RenderSVGResource.h |
diff --git a/Source/core/rendering/svg/RenderSVGResource.h b/Source/core/rendering/svg/RenderSVGResource.h |
index 1fe6ac71992bce430a6be5e3015116d2253a532f..d733028ee1152c3aafcddf19517d653e2e69b94d 100644 |
--- a/Source/core/rendering/svg/RenderSVGResource.h |
+++ b/Source/core/rendering/svg/RenderSVGResource.h |
@@ -57,13 +57,16 @@ public: |
explicit SVGPaintServer(PassRefPtr<Gradient>); |
explicit SVGPaintServer(PassRefPtr<Pattern>); |
- static SVGPaintServer requestForRenderer(RenderObject&, RenderStyle*, RenderSVGResourceModeFlags); |
+ static SVGPaintServer requestForRenderer(RenderObject&, RenderStyle*, RenderSVGResourceMode); |
void apply(GraphicsContext&, RenderSVGResourceMode, GraphicsContextStateSaver* = 0); |
static SVGPaintServer invalid() { return SVGPaintServer(Color(Color::transparent)); } |
bool isValid() const { return m_color != Color::transparent; } |
+ bool isTransformDependent() const { return m_gradient || m_pattern; } |
+ void prependTransform(const AffineTransform&); |
+ |
private: |
RefPtr<Gradient> m_gradient; |
RefPtr<Pattern> m_pattern; |
@@ -75,7 +78,7 @@ public: |
RenderSVGResource() { } |
virtual ~RenderSVGResource() { } |
- virtual SVGPaintServer preparePaintServer(RenderObject*, RenderStyle*, RenderSVGResourceModeFlags); |
+ virtual SVGPaintServer preparePaintServer(RenderObject*); |
virtual RenderSVGResourceType resourceType() const = 0; |