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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |