Index: Source/core/paint/ViewPainter.h |
diff --git a/Source/core/paint/ViewPainter.h b/Source/core/paint/ViewPainter.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7f6ed9a2985f56342ae2e384976a6f5d19aa8e03 |
--- /dev/null |
+++ b/Source/core/paint/ViewPainter.h |
@@ -0,0 +1,30 @@ |
+// 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 ViewPainter_h |
+#define ViewPainter_h |
+ |
+namespace blink { |
+ |
+class LayoutPoint; |
+struct PaintInfo; |
+class RenderBox; |
+class RenderView; |
+ |
+class ViewPainter { |
+public: |
+ ViewPainter(RenderView& renderView) : m_renderView(renderView) { } |
+ |
+ void paint(PaintInfo&, const LayoutPoint& paintOffset); |
+ void paintBoxDecorationBackground(PaintInfo&); |
+ |
+private: |
+ bool rootFillsViewportBackground(RenderBox* rootBox) const; |
+ |
+ RenderView& m_renderView; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // ViewPainter_h |