Chromium Code Reviews| 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..037fa8671f11c9be21b0260d4a23903cf2f13e7e 100644 |
| --- a/third_party/WebKit/Source/core/paint/FramePainter.h |
| +++ b/third_party/WebKit/Source/core/paint/FramePainter.h |
| @@ -21,19 +21,19 @@ class FramePainter { |
| WTF_MAKE_NONCOPYABLE(FramePainter); |
| public: |
| - explicit FramePainter(const FrameView& frame_view) |
|
Xianzhu
2017/05/10 23:22:46
Please revert these changes as we no longer requir
Zhen Wang
2017/05/11 20:27:08
Done.
|
| - : frame_view_(&frame_view) {} |
| + FramePainter(GraphicsContext&, const FrameView&); |
| - 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; |
| + GraphicsContext& context_; |
| Member<const FrameView> frame_view_; |
| static bool in_paint_contents_; |
| }; |