Index: Source/core/paint/SVGImagePainter.h |
diff --git a/Source/core/paint/SVGImagePainter.h b/Source/core/paint/SVGImagePainter.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..33be3ac6f64b00a23ca85135f3e019a4bee7477c |
--- /dev/null |
+++ b/Source/core/paint/SVGImagePainter.h |
@@ -0,0 +1,28 @@ |
+// 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 SVGImagePainter_h |
+#define SVGImagePainter_h |
+ |
+namespace blink { |
+ |
+struct PaintInfo; |
+class RenderSVGImage; |
+ |
+class SVGImagePainter { |
+public: |
+ SVGImagePainter(RenderSVGImage& renderSVGImage) : m_renderSVGImage(renderSVGImage) { } |
+ |
+ void paint(PaintInfo&); |
+ |
+ // Assumes the PaintInfo context has had all local transforms applied. |
+ static void paintForeground(RenderSVGImage&, PaintInfo&); |
+ |
+private: |
+ RenderSVGImage& m_renderSVGImage; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // SVGImagePainter_h |