diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGResource.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGResource.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGResource.h b/chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGResource.h index 676562dd01c..d1d3a89926b 100644 --- a/chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGResource.h +++ b/chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGResource.h @@ -43,9 +43,8 @@ enum RenderSVGResourceMode { ApplyToStrokeMode = 1 << 2, ApplyToTextMode = 1 << 3 // used in combination with ApplyTo{Fill|Stroke}Mode }; +typedef unsigned RenderSVGResourceModeFlags; -class Color; -class FloatRect; class GraphicsContext; class Path; class RenderObject; @@ -75,8 +74,9 @@ public: } // Helper utilities used in the render tree to access resources used for painting shapes/text (gradients & patterns & solid colors only) - static RenderSVGResource* fillPaintingResource(RenderObject*, const RenderStyle*, Color& fallbackColor); - static RenderSVGResource* strokePaintingResource(RenderObject*, const RenderStyle*, Color& fallbackColor); + // If hasFallback gets set to true, the sharedSolidPaintingResource is set to a fallback color. + static RenderSVGResource* fillPaintingResource(RenderObject*, const RenderStyle*, bool& hasFallback); + static RenderSVGResource* strokePaintingResource(RenderObject*, const RenderStyle*, bool& hasFallback); static RenderSVGResourceSolidColor* sharedSolidPaintingResource(); static void markForLayoutAndParentResourceInvalidation(RenderObject*, bool needsLayout = true); |