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

Unified Diff: Source/core/rendering/RenderLayerReflectionInfo.h

Issue 423093002: Oilpan: Prepare to move RenderObject and RenderObjectChildList to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: dispose -> destroy Created 6 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 | « Source/core/rendering/RenderLayer.cpp ('k') | Source/core/rendering/RenderLayerReflectionInfo.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayerReflectionInfo.h
diff --git a/Source/core/rendering/RenderLayerReflectionInfo.h b/Source/core/rendering/RenderLayerReflectionInfo.h
index 51198a4482f29df8b33f4721c6fb0d3bb806d69a..e0a38958ec3c6244d4104ce8176850eae8dd8d1e 100644
--- a/Source/core/rendering/RenderLayerReflectionInfo.h
+++ b/Source/core/rendering/RenderLayerReflectionInfo.h
@@ -54,11 +54,12 @@ namespace blink {
class RenderLayer;
class RenderReplica;
-class RenderLayerReflectionInfo {
+class RenderLayerReflectionInfo : public NoBaseWillBeGarbageCollected<RenderLayerReflectionInfo> {
WTF_MAKE_NONCOPYABLE(RenderLayerReflectionInfo);
public:
explicit RenderLayerReflectionInfo(RenderBox&);
- ~RenderLayerReflectionInfo();
+ void destroy();
+ void trace(Visitor*);
RenderReplica* reflection() const { return m_reflection; }
RenderLayer* reflectionLayer() const;
@@ -72,8 +73,11 @@ public:
String debugName() const;
private:
- RenderBox& m_box;
- RenderReplica* m_reflection;
+ RenderBox& box() { return *m_box; }
+ const RenderBox& box() const { return *m_box; }
+
+ RawPtrWillBeMember<RenderBox> m_box;
+ RawPtrWillBeMember<RenderReplica> m_reflection;
// A state bit tracking if we are painting inside a replica.
unsigned m_isPaintingInsideReflection : 1;
« 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