Index: Source/core/rendering/style/SVGRenderStyle.h |
diff --git a/Source/core/rendering/style/SVGRenderStyle.h b/Source/core/rendering/style/SVGRenderStyle.h |
index e9b0625b262b19c32db0caad5e294305dad4500c..1c66bb7ab3f76e65ac1f301681227118f8c196e4 100644 |
--- a/Source/core/rendering/style/SVGRenderStyle.h |
+++ b/Source/core/rendering/style/SVGRenderStyle.h |
@@ -29,7 +29,6 @@ |
#include "core/rendering/style/RenderStyleConstants.h" |
#include "core/rendering/style/SVGRenderStyleDefs.h" |
#include "core/rendering/style/StyleDifference.h" |
-#include "core/svg/SVGPaint.h" |
#include "platform/graphics/GraphicsTypes.h" |
#include "platform/graphics/Path.h" |
@@ -69,11 +68,11 @@ public: |
static EGlyphOrientation initialGlyphOrientationHorizontal() { return GO_0DEG; } |
static EGlyphOrientation initialGlyphOrientationVertical() { return GO_AUTO; } |
static float initialFillOpacity() { return 1; } |
- static SVGPaint::SVGPaintType initialFillPaintType() { return SVGPaint::SVG_PAINTTYPE_RGBCOLOR; } |
+ static SVGPaintType initialFillPaintType() { return SVG_PAINTTYPE_RGBCOLOR; } |
static Color initialFillPaintColor() { return Color::black; } |
static String initialFillPaintUri() { return String(); } |
static float initialStrokeOpacity() { return 1; } |
- static SVGPaint::SVGPaintType initialStrokePaintType() { return SVGPaint::SVG_PAINTTYPE_NONE; } |
+ static SVGPaintType initialStrokePaintType() { return SVG_PAINTTYPE_NONE; } |
static Color initialStrokePaintColor() { return Color(); } |
static String initialStrokePaintUri() { return String(); } |
static PassRefPtr<SVGLengthList> initialStrokeDashArray() { return SVGLengthList::create(); } |
@@ -140,7 +139,7 @@ public: |
fill.access()->opacity = obj; |
} |
- void setFillPaint(SVGPaint::SVGPaintType type, const Color& color, const String& uri, bool applyToRegularStyle = true, bool applyToVisitedLinkStyle = false) |
+ void setFillPaint(SVGPaintType type, const Color& color, const String& uri, bool applyToRegularStyle = true, bool applyToVisitedLinkStyle = false) |
{ |
if (applyToRegularStyle) { |
if (!(fill->paintType == type)) |
@@ -166,7 +165,7 @@ public: |
stroke.access()->opacity = obj; |
} |
- void setStrokePaint(SVGPaint::SVGPaintType type, const Color& color, const String& uri, bool applyToRegularStyle = true, bool applyToVisitedLinkStyle = false) |
+ void setStrokePaint(SVGPaintType type, const Color& color, const String& uri, bool applyToRegularStyle = true, bool applyToVisitedLinkStyle = false) |
{ |
if (applyToRegularStyle) { |
if (!(stroke->paintType == type)) |
@@ -303,11 +302,11 @@ public: |
EGlyphOrientation glyphOrientationHorizontal() const { return (EGlyphOrientation) svg_inherited_flags._glyphOrientationHorizontal; } |
EGlyphOrientation glyphOrientationVertical() const { return (EGlyphOrientation) svg_inherited_flags._glyphOrientationVertical; } |
float fillOpacity() const { return fill->opacity; } |
- const SVGPaint::SVGPaintType& fillPaintType() const { return fill->paintType; } |
+ const SVGPaintType& fillPaintType() const { return fill->paintType; } |
const Color& fillPaintColor() const { return fill->paintColor; } |
const String& fillPaintUri() const { return fill->paintUri; } |
float strokeOpacity() const { return stroke->opacity; } |
- const SVGPaint::SVGPaintType& strokePaintType() const { return stroke->paintType; } |
+ const SVGPaintType& strokePaintType() const { return stroke->paintType; } |
const Color& strokePaintColor() const { return stroke->paintColor; } |
const String& strokePaintUri() const { return stroke->paintUri; } |
SVGLengthList* strokeDashArray() const { return stroke->dashArray.get(); } |
@@ -330,10 +329,10 @@ public: |
EPaintOrder paintOrder() const { return (EPaintOrder) svg_inherited_flags._paintOrder; } |
EPaintOrderType paintOrderType(unsigned index) const; |
- const SVGPaint::SVGPaintType& visitedLinkFillPaintType() const { return fill->visitedLinkPaintType; } |
+ const SVGPaintType& visitedLinkFillPaintType() const { return fill->visitedLinkPaintType; } |
const Color& visitedLinkFillPaintColor() const { return fill->visitedLinkPaintColor; } |
const String& visitedLinkFillPaintUri() const { return fill->visitedLinkPaintUri; } |
- const SVGPaint::SVGPaintType& visitedLinkStrokePaintType() const { return stroke->visitedLinkPaintType; } |
+ const SVGPaintType& visitedLinkStrokePaintType() const { return stroke->visitedLinkPaintType; } |
const Color& visitedLinkStrokePaintColor() const { return stroke->visitedLinkPaintColor; } |
const String& visitedLinkStrokePaintUri() const { return stroke->visitedLinkPaintUri; } |
@@ -342,9 +341,9 @@ public: |
bool hasMasker() const { return !maskerResource().isEmpty(); } |
bool hasFilter() const { return !filterResource().isEmpty(); } |
bool hasMarkers() const { return !markerStartResource().isEmpty() || !markerMidResource().isEmpty() || !markerEndResource().isEmpty(); } |
- bool hasStroke() const { return strokePaintType() != SVGPaint::SVG_PAINTTYPE_NONE; } |
+ bool hasStroke() const { return strokePaintType() != SVG_PAINTTYPE_NONE; } |
bool hasVisibleStroke() const { return hasStroke() && !strokeWidth()->isZero(); } |
- bool hasFill() const { return fillPaintType() != SVGPaint::SVG_PAINTTYPE_NONE; } |
+ bool hasFill() const { return fillPaintType() != SVG_PAINTTYPE_NONE; } |
bool isVerticalWritingMode() const { return writingMode() == WM_TBRL || writingMode() == WM_TB; } |
protected: |