| Index: third_party/WebKit/Source/core/paint/FramePainter.h
|
| diff --git a/third_party/WebKit/Source/core/paint/FramePainter.h b/third_party/WebKit/Source/core/paint/FramePainter.h
|
| index 752f2699d9a7ad6df5a7a78ca39192f1a6304f31..9e8378f0c4328b304ad2473cfd68c5d1bafe116f 100644
|
| --- a/third_party/WebKit/Source/core/paint/FramePainter.h
|
| +++ b/third_party/WebKit/Source/core/paint/FramePainter.h
|
| @@ -11,6 +11,7 @@
|
| namespace blink {
|
|
|
| class CullRect;
|
| +struct FrameFirstPaint;
|
| class FrameView;
|
| class GraphicsContext;
|
| class IntRect;
|
| @@ -21,19 +22,21 @@ class FramePainter {
|
| WTF_MAKE_NONCOPYABLE(FramePainter);
|
|
|
| public:
|
| - explicit FramePainter(const FrameView& frame_view)
|
| - : frame_view_(&frame_view) {}
|
| + FramePainter(GraphicsContext&, const FrameView&);
|
| + ~FramePainter();
|
|
|
| - void Paint(GraphicsContext&, const GlobalPaintFlags, const CullRect&);
|
| - void PaintScrollbars(GraphicsContext&, const IntRect&);
|
| - void PaintContents(GraphicsContext&, const GlobalPaintFlags, const IntRect&);
|
| - void PaintScrollCorner(GraphicsContext&, const IntRect& corner_rect);
|
| + void Paint(const GlobalPaintFlags, const CullRect&);
|
| + void PaintScrollbars(const IntRect&);
|
| + void PaintContents(const GlobalPaintFlags, const IntRect&);
|
| + void PaintScrollCorner(const IntRect& corner_rect);
|
|
|
| private:
|
| - void PaintScrollbar(GraphicsContext&, Scrollbar&, const IntRect&);
|
| + void PaintScrollbar(Scrollbar&, const IntRect&);
|
|
|
| - const FrameView& GetFrameView();
|
| + const FrameView& GetFrameView() const;
|
| + void NotifyPaint(const FrameFirstPaint&) const;
|
|
|
| + GraphicsContext& context_;
|
| Member<const FrameView> frame_view_;
|
| static bool in_paint_contents_;
|
| };
|
|
|