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

Side by Side Diff: Source/core/paint/FramePainter.h

Issue 1291673002: Oilpan: Fix a raw reference in FramePainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/paint/FramePainter.cpp » ('j') | Source/core/paint/FramePainter.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef FramePainter_h 5 #ifndef FramePainter_h
6 #define FramePainter_h 6 #define FramePainter_h
7 7
8 #include "core/paint/PaintPhase.h" 8 #include "core/paint/PaintPhase.h"
9 #include "platform/heap/Handle.h"
9 10
10 namespace blink { 11 namespace blink {
11 12
12 class FrameView; 13 class FrameView;
13 class GraphicsContext; 14 class GraphicsContext;
14 class IntRect; 15 class IntRect;
15 class Scrollbar; 16 class Scrollbar;
16 17
17 class FramePainter { 18 class FramePainter {
19 STACK_ALLOCATED();
20 WTF_MAKE_NONCOPYABLE(FramePainter);
18 public: 21 public:
19 FramePainter(FrameView& frameView) : m_frameView(frameView) { } 22 FramePainter(FrameView& frameView) : m_frameView(&frameView) { }
haraken 2015/08/12 05:25:54 Add explicit.
Yuta Kitamura 2015/08/12 05:38:27 Done.
20 23
21 void paint(GraphicsContext*, const GlobalPaintFlags, const IntRect&); 24 void paint(GraphicsContext*, const GlobalPaintFlags, const IntRect&);
22 void paintScrollbars(GraphicsContext*, const IntRect&); 25 void paintScrollbars(GraphicsContext*, const IntRect&);
23 void paintContents(GraphicsContext*, const GlobalPaintFlags, const IntRect& damageRect); 26 void paintContents(GraphicsContext*, const GlobalPaintFlags, const IntRect& damageRect);
24 void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect); 27 void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect);
25 28
26 private: 29 private:
27 void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&); 30 void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&);
28 31
29 FrameView& m_frameView; 32 RawPtrWillBeMember<FrameView> m_frameView;
30 static bool s_inPaintContents; 33 static bool s_inPaintContents;
31 }; 34 };
32 35
33 } // namespace blink 36 } // namespace blink
34 37
35 #endif // FramePainter_h 38 #endif // FramePainter_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/paint/FramePainter.cpp » ('j') | Source/core/paint/FramePainter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698