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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // Compute and return the clip rects. If useCached is true, will used previo
usly computed clip rects on ancestors | 108 // Compute and return the clip rects. If useCached is true, will used previo
usly computed clip rects on ancestors |
109 // (rather than computing them all from scratch up the parent chain). | 109 // (rather than computing them all from scratch up the parent chain). |
110 void calculateClipRects(const ClipRectsContext&, ClipRects&) const; | 110 void calculateClipRects(const ClipRectsContext&, ClipRects&) const; |
111 | 111 |
112 private: | 112 private: |
113 void parentClipRects(const ClipRectsContext&, ClipRects&) const; | 113 void parentClipRects(const ClipRectsContext&, ClipRects&) const; |
114 | 114 |
115 // The layer relative to which clipping rects for this layer are computed. | 115 // The layer relative to which clipping rects for this layer are computed. |
116 RenderLayer* clippingRootForPainting() const; | 116 RenderLayer* clippingRootForPainting() const; |
117 | 117 |
| 118 bool isClippingRootForContext(const ClipRectsContext&) const; |
| 119 |
118 // FIXME: Could this be a RenderBox? | 120 // FIXME: Could this be a RenderBox? |
119 RenderLayerModelObject* m_renderer; | 121 RenderLayerModelObject* m_renderer; |
120 OwnPtr<ClipRectsCache> m_clipRectsCache; | 122 OwnPtr<ClipRectsCache> m_clipRectsCache; |
121 unsigned m_compositingClipRectsDirty : 1; | 123 unsigned m_compositingClipRectsDirty : 1; |
122 }; | 124 }; |
123 | 125 |
124 } // namespace WebCore | 126 } // namespace WebCore |
125 | 127 |
126 #endif // RenderLayerClipper_h | 128 #endif // RenderLayerClipper_h |
OLD | NEW |