Index: Source/core/paint/SVGShapePainter.h |
diff --git a/Source/core/paint/SVGShapePainter.h b/Source/core/paint/SVGShapePainter.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..32312f3192e33ea3186b8c47abec36c0aba07b84 |
--- /dev/null |
+++ b/Source/core/paint/SVGShapePainter.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef SVGShapePainter_h |
+#define SVGShapePainter_h |
+ |
+namespace blink { |
+ |
+struct PaintInfo; |
+class FloatPoint; |
+class GraphicsContext; |
+class Path; |
+class RenderSVGShape; |
+ |
+class SVGShapePainter { |
+public: |
+ SVGShapePainter(RenderSVGShape& renderSVGShape) : m_renderSVGShape(renderSVGShape) { } |
+ |
+ void paint(PaintInfo&); |
+ |
+private: |
+ void fillShape(GraphicsContext*); |
+ void strokeShape(GraphicsContext*); |
+ |
+ void paintMarkers(PaintInfo&); |
+ void strokeZeroLengthLineCaps(GraphicsContext*); |
+ Path* zeroLengthLinecapPath(const FloatPoint&) const; |
+ |
+ RenderSVGShape& m_renderSVGShape; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // SVGShapePainter_h |