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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerReflectionInfo.h

Issue 1657883002: Fix leak PaintLayerReflectionInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // some special paint flags (the most important being 65 // some special paint flags (the most important being
66 // PaintLayerPaintingReflection). See PaintLayerReflectionInfo::paint() and 66 // PaintLayerPaintingReflection). See PaintLayerReflectionInfo::paint() and
67 // ReplicaPainter for the entry point into the reflection painting code. 67 // ReplicaPainter for the entry point into the reflection painting code.
68 // 68 //
69 // See LayoutReplica for the peculiar tree structure generated by this design. 69 // See LayoutReplica for the peculiar tree structure generated by this design.
70 class PaintLayerReflectionInfo { 70 class PaintLayerReflectionInfo {
71 USING_FAST_MALLOC(PaintLayerReflectionInfo); 71 USING_FAST_MALLOC(PaintLayerReflectionInfo);
72 WTF_MAKE_NONCOPYABLE(PaintLayerReflectionInfo); 72 WTF_MAKE_NONCOPYABLE(PaintLayerReflectionInfo);
73 public: 73 public:
74 explicit PaintLayerReflectionInfo(LayoutBox&); 74 explicit PaintLayerReflectionInfo(LayoutBox&);
75 void destroy(); 75 ~PaintLayerReflectionInfo();
76 76
77 LayoutReplica* reflection() const { return m_reflection; } 77 LayoutReplica* reflection() const { return m_reflection; }
78 PaintLayer* reflectionLayer() const; 78 PaintLayer* reflectionLayer() const;
79 79
80 bool isPaintingInsideReflection() const { return m_isPaintingInsideReflectio n; } 80 bool isPaintingInsideReflection() const { return m_isPaintingInsideReflectio n; }
81 81
82 void updateAfterStyleChange(const ComputedStyle* oldStyle); 82 void updateAfterStyleChange(const ComputedStyle* oldStyle);
83 83
84 PaintLayerPainter::PaintResult paint(GraphicsContext&, const PaintLayerPaint ingInfo&, PaintLayerFlags); 84 PaintLayerPainter::PaintResult paint(GraphicsContext&, const PaintLayerPaint ingInfo&, PaintLayerFlags);
85 85
(...skipping 10 matching lines...) Expand all
96 96
97 // A state bit tracking if we are painting inside this replica. 97 // A state bit tracking if we are painting inside this replica.
98 // This is done to avoid infinite recursion during painting while also 98 // This is done to avoid infinite recursion during painting while also
99 // enabling nested reflection. 99 // enabling nested reflection.
100 unsigned m_isPaintingInsideReflection : 1; 100 unsigned m_isPaintingInsideReflection : 1;
101 }; 101 };
102 102
103 } // namespace blink 103 } // namespace blink
104 104
105 #endif // PaintLayerReflectinInfo_h 105 #endif // PaintLayerReflectinInfo_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerReflectionInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698