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

Unified Diff: Source/core/rendering/style/RenderStyle.h

Issue 361543002: Remove SVGPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Give SVGPaintType a new home Created 6 years, 6 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/style/RenderStyle.h
diff --git a/Source/core/rendering/style/RenderStyle.h b/Source/core/rendering/style/RenderStyle.h
index 2eed7f2f5e125785efa78987a040a37bb5e92978..cc3c50479e2efb5be43381c94e55267d68bfebfb 100644
--- a/Source/core/rendering/style/RenderStyle.h
+++ b/Source/core/rendering/style/RenderStyle.h
@@ -57,7 +57,6 @@
#include "core/rendering/style/StyleTransformData.h"
#include "core/rendering/style/StyleVisualData.h"
#include "core/rendering/style/StyleWillChangeData.h"
-#include "core/svg/SVGPaint.h"
#include "platform/Length.h"
#include "platform/LengthBox.h"
#include "platform/LengthSize.h"
@@ -1406,15 +1405,13 @@ public:
const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); }
SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); }
- const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fillPaintType(); }
+ const SVGPaintType& fillPaintType() const { return svgStyle()->fillPaintType(); }
Color fillPaintColor() const { return svgStyle()->fillPaintColor(); }
- void setFillPaintColor(const Color& c) { accessSVGStyle()->setFillPaint(SVGPaint::SVG_PAINTTYPE_RGBCOLOR, c, ""); }
float fillOpacity() const { return svgStyle()->fillOpacity(); }
void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); }
- const SVGPaint::SVGPaintType& strokePaintType() const { return svgStyle()->strokePaintType(); }
+ const SVGPaintType& strokePaintType() const { return svgStyle()->strokePaintType(); }
Color strokePaintColor() const { return svgStyle()->strokePaintColor(); }
- void setStrokePaintColor(const Color& c) { accessSVGStyle()->setStrokePaint(SVGPaint::SVG_PAINTTYPE_RGBCOLOR, c, ""); }
float strokeOpacity() const { return svgStyle()->strokeOpacity(); }
void setStrokeOpacity(float f) { accessSVGStyle()->setStrokeOpacity(f); }
SVGLength* strokeWidth() const { return svgStyle()->strokeWidth(); }

Powered by Google App Engine
This is Rietveld 408576698