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

Unified Diff: Source/core/paint/SVGImagePainter.h

Issue 603053002: Move RenderSVGImage's paint code to SVGImagePainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/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

Powered by Google App Engine
This is Rietveld 408576698