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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/paint/FramePainter.cpp » ('j') | Source/core/paint/FramePainter.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/FramePainter.h
diff --git a/Source/core/paint/FramePainter.h b/Source/core/paint/FramePainter.h
index 44e1f8135f7c03fe2b1161845a5739780e276708..9647b5cb5f2e6ab3f9b2467a78d8e90d89a9e965 100644
--- a/Source/core/paint/FramePainter.h
+++ b/Source/core/paint/FramePainter.h
@@ -6,6 +6,7 @@
#define FramePainter_h
#include "core/paint/PaintPhase.h"
+#include "platform/heap/Handle.h"
namespace blink {
@@ -15,8 +16,10 @@ class IntRect;
class Scrollbar;
class FramePainter {
+ STACK_ALLOCATED();
+ WTF_MAKE_NONCOPYABLE(FramePainter);
public:
- FramePainter(FrameView& frameView) : m_frameView(frameView) { }
+ FramePainter(FrameView& frameView) : m_frameView(&frameView) { }
haraken 2015/08/12 05:25:54 Add explicit.
Yuta Kitamura 2015/08/12 05:38:27 Done.
void paint(GraphicsContext*, const GlobalPaintFlags, const IntRect&);
void paintScrollbars(GraphicsContext*, const IntRect&);
@@ -26,7 +29,7 @@ public:
private:
void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&);
- FrameView& m_frameView;
+ RawPtrWillBeMember<FrameView> m_frameView;
static bool s_inPaintContents;
};
« 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