blob: 7f6ed9a2985f56342ae2e384976a6f5d19aa8e03 [file] [log] [blame]
// 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