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

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

Issue 594293002: Move painting code from RenderGrid to GridPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix debug build. 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/paint/GridPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/GridPainter.h
diff --git a/Source/core/paint/ViewPainter.h b/Source/core/paint/GridPainter.h
similarity index 51%
copy from Source/core/paint/ViewPainter.h
copy to Source/core/paint/GridPainter.h
index 7f6ed9a2985f56342ae2e384976a6f5d19aa8e03..3dfd11ea78373121655d18fe91a9a8b44a5140aa 100644
--- a/Source/core/paint/ViewPainter.h
+++ b/Source/core/paint/GridPainter.h
@@ -2,29 +2,29 @@
// 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
+#ifndef GridPainter_h
+#define GridPainter_h
namespace blink {
-class LayoutPoint;
struct PaintInfo;
+class LayoutPoint;
class RenderBox;
-class RenderView;
+class RenderGrid;
-class ViewPainter {
+class GridPainter {
public:
- ViewPainter(RenderView& renderView) : m_renderView(renderView) { }
+ GridPainter(RenderGrid& renderGrid) : m_renderGrid(renderGrid) { }
+
+ void paintChildren(PaintInfo&, const LayoutPoint&);
+ void paintChild(RenderBox*, PaintInfo&, const LayoutPoint&);
void paint(PaintInfo&, const LayoutPoint& paintOffset);
- void paintBoxDecorationBackground(PaintInfo&);
private:
- bool rootFillsViewportBackground(RenderBox* rootBox) const;
-
- RenderView& m_renderView;
+ RenderGrid& m_renderGrid;
};
} // namespace blink
-#endif // ViewPainter_h
+#endif // GridPainter_h
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/paint/GridPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698