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

Side by Side Diff: Source/core/rendering/RenderLayerReflectionInfo.h

Issue 869323003: Oilpan: move RenderObjects off heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review-induced improvements Created 5 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 #include "core/rendering/LayerPaintingInfo.h" 48 #include "core/rendering/LayerPaintingInfo.h"
49 #include "core/rendering/RenderLayerModelObject.h" 49 #include "core/rendering/RenderLayerModelObject.h"
50 #include "wtf/Noncopyable.h" 50 #include "wtf/Noncopyable.h"
51 51
52 namespace blink { 52 namespace blink {
53 53
54 class RenderLayer; 54 class RenderLayer;
55 class RenderReplica; 55 class RenderReplica;
56 56
57 class RenderLayerReflectionInfo : public NoBaseWillBeGarbageCollected<RenderLaye rReflectionInfo> { 57 class RenderLayerReflectionInfo {
58 WTF_MAKE_NONCOPYABLE(RenderLayerReflectionInfo); 58 WTF_MAKE_NONCOPYABLE(RenderLayerReflectionInfo);
59 public: 59 public:
60 explicit RenderLayerReflectionInfo(RenderBox&); 60 explicit RenderLayerReflectionInfo(RenderBox&);
61 void destroy(); 61 void destroy();
62 void trace(Visitor*);
63 62
64 RenderReplica* reflection() const { return m_reflection; } 63 RenderReplica* reflection() const { return m_reflection; }
65 RenderLayer* reflectionLayer() const; 64 RenderLayer* reflectionLayer() const;
66 65
67 bool isPaintingInsideReflection() const { return m_isPaintingInsideReflectio n; } 66 bool isPaintingInsideReflection() const { return m_isPaintingInsideReflectio n; }
68 67
69 void updateAfterStyleChange(const RenderStyle* oldStyle); 68 void updateAfterStyleChange(const RenderStyle* oldStyle);
70 69
71 void paint(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags); 70 void paint(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags);
72 71
73 private: 72 private:
74 RenderBox& box() { return *m_box; } 73 RenderBox& box() { return *m_box; }
75 const RenderBox& box() const { return *m_box; } 74 const RenderBox& box() const { return *m_box; }
76 75
77 RawPtrWillBeMember<RenderBox> m_box; 76 RenderBox* m_box;
78 RawPtrWillBeMember<RenderReplica> m_reflection; 77 RenderReplica* m_reflection;
79 78
80 // A state bit tracking if we are painting inside a replica. 79 // A state bit tracking if we are painting inside a replica.
81 unsigned m_isPaintingInsideReflection : 1; 80 unsigned m_isPaintingInsideReflection : 1;
82 }; 81 };
83 82
84 } // namespace blink 83 } // namespace blink
85 84
86 #endif // RenderLayerReflectinInfo_h 85 #endif // RenderLayerReflectinInfo_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | Source/core/rendering/RenderLayerReflectionInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698