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

Side by Side Diff: Source/core/layout/LayerReflectionInfo.h

Issue 898783003: Move rendering/RenderLayer* to layout/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/core/layout/LayerPaintingInfo.h ('k') | Source/core/layout/LayerReflectionInfo.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 24 matching lines...) Expand all
35 * applicable instead of those above. If you wish to allow use of your 35 * applicable instead of those above. If you wish to allow use of your
36 * version of this file only under the terms of one of those two 36 * version of this file only under the terms of one of those two
37 * licenses (the MPL or the GPL) and not to allow others to use your 37 * licenses (the MPL or the GPL) and not to allow others to use your
38 * version of this file under the LGPL, indicate your decision by 38 * version of this file under the LGPL, indicate your decision by
39 * deletingthe provisions above and replace them with the notice and 39 * deletingthe provisions above and replace them with the notice and
40 * other provisions required by the MPL or the GPL, as the case may be. 40 * other provisions required by the MPL or the GPL, as the case may be.
41 * If you do not delete the provisions above, a recipient may use your 41 * If you do not delete the provisions above, a recipient may use your
42 * version of this file under any of the LGPL, the MPL or the GPL. 42 * version of this file under any of the LGPL, the MPL or the GPL.
43 */ 43 */
44 44
45 #ifndef RenderLayerReflectionInfo_h 45 #ifndef LayerReflectionInfo_h
46 #define RenderLayerReflectionInfo_h 46 #define LayerReflectionInfo_h
47 47
48 #include "core/rendering/LayerPaintingInfo.h" 48 #include "core/layout/LayerPaintingInfo.h"
49 #include "core/rendering/RenderLayerModelObject.h" 49 #include "core/layout/LayoutLayerModelObject.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 Layer;
55 class RenderReplica; 55 class RenderReplica;
56 56
57 class RenderLayerReflectionInfo { 57 class LayerReflectionInfo {
58 WTF_MAKE_NONCOPYABLE(RenderLayerReflectionInfo); 58 WTF_MAKE_NONCOPYABLE(LayerReflectionInfo);
59 public: 59 public:
60 explicit RenderLayerReflectionInfo(RenderBox&); 60 explicit LayerReflectionInfo(RenderBox&);
61 void destroy(); 61 void destroy();
62 62
63 RenderReplica* reflection() const { return m_reflection; } 63 RenderReplica* reflection() const { return m_reflection; }
64 RenderLayer* reflectionLayer() const; 64 Layer* reflectionLayer() const;
65 65
66 bool isPaintingInsideReflection() const { return m_isPaintingInsideReflectio n; } 66 bool isPaintingInsideReflection() const { return m_isPaintingInsideReflectio n; }
67 67
68 void updateAfterStyleChange(const RenderStyle* oldStyle); 68 void updateAfterStyleChange(const RenderStyle* oldStyle);
69 69
70 void paint(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags); 70 void paint(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags);
71 71
72 private: 72 private:
73 RenderBox& box() { return *m_box; } 73 RenderBox& box() { return *m_box; }
74 const RenderBox& box() const { return *m_box; } 74 const RenderBox& box() const { return *m_box; }
75 75
76 RenderBox* m_box; 76 RenderBox* m_box;
77 RenderReplica* m_reflection; 77 RenderReplica* m_reflection;
78 78
79 // A state bit tracking if we are painting inside a replica. 79 // A state bit tracking if we are painting inside a replica.
80 unsigned m_isPaintingInsideReflection : 1; 80 unsigned m_isPaintingInsideReflection : 1;
81 }; 81 };
82 82
83 } // namespace blink 83 } // namespace blink
84 84
85 #endif // RenderLayerReflectinInfo_h 85 #endif // LayerReflectinInfo_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayerPaintingInfo.h ('k') | Source/core/layout/LayerReflectionInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698