OLD | NEW |
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 explicit PaintLayerReflectionInfo(LayoutBox&); | 74 explicit PaintLayerReflectionInfo(LayoutBox&); |
75 void destroy(); | 75 void destroy(); |
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 void paint(GraphicsContext*, const PaintLayerPaintingInfo&, PaintLayerFlags)
; | 84 void paint(GraphicsContext&, const PaintLayerPaintingInfo&, PaintLayerFlags)
; |
85 | 85 |
86 private: | 86 private: |
87 LayoutBox& box() { return *m_box; } | 87 LayoutBox& box() { return *m_box; } |
88 const LayoutBox& box() const { return *m_box; } | 88 const LayoutBox& box() const { return *m_box; } |
89 | 89 |
90 // The reflected box, ie the box with -webkit-box-reflect. | 90 // The reflected box, ie the box with -webkit-box-reflect. |
91 LayoutBox* m_box; | 91 LayoutBox* m_box; |
92 | 92 |
93 // The reflection object. | 93 // The reflection object. |
94 // This LayoutObject is owned by PaintLayerReflectinInfo. | 94 // This LayoutObject is owned by PaintLayerReflectinInfo. |
95 LayoutReplica* m_reflection; | 95 LayoutReplica* m_reflection; |
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 |
OLD | NEW |