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 28 matching lines...) Expand all Loading... |
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 LayerClipper_h | 45 #ifndef LayerClipper_h |
46 #define LayerClipper_h | 46 #define LayerClipper_h |
47 | 47 |
48 #include "core/layout/ClipRectsCache.h" | 48 #include "core/layout/ClipRectsCache.h" |
49 #include "core/rendering/RenderBox.h" | 49 #include "core/layout/LayoutBox.h" |
50 | 50 |
51 namespace blink { | 51 namespace blink { |
52 | 52 |
53 class Layer; | 53 class Layer; |
54 | 54 |
55 enum ShouldRespectOverflowClip { | 55 enum ShouldRespectOverflowClip { |
56 IgnoreOverflowClip, | 56 IgnoreOverflowClip, |
57 RespectOverflowClip | 57 RespectOverflowClip |
58 }; | 58 }; |
59 | 59 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 132 |
133 Layer* clippingRootForPainting() const; | 133 Layer* clippingRootForPainting() const; |
134 | 134 |
135 ClipRectsCache& cache() const | 135 ClipRectsCache& cache() const |
136 { | 136 { |
137 if (!m_cache) | 137 if (!m_cache) |
138 m_cache = adoptPtr(new ClipRectsCache); | 138 m_cache = adoptPtr(new ClipRectsCache); |
139 return *m_cache; | 139 return *m_cache; |
140 } | 140 } |
141 | 141 |
142 // FIXME: Could this be a RenderBox? | 142 // FIXME: Could this be a LayoutBox? |
143 LayoutBoxModelObject& m_renderer; | 143 LayoutBoxModelObject& m_renderer; |
144 mutable OwnPtr<ClipRectsCache> m_cache; | 144 mutable OwnPtr<ClipRectsCache> m_cache; |
145 }; | 145 }; |
146 | 146 |
147 } // namespace blink | 147 } // namespace blink |
148 | 148 |
149 #endif // LayerClipper_h | 149 #endif // LayerClipper_h |
OLD | NEW |