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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 ShouldRespectOverflowClip respectOverflowClip; | 91 ShouldRespectOverflowClip respectOverflowClip; |
92 }; | 92 }; |
93 | 93 |
94 class RenderLayerClipper { | 94 class RenderLayerClipper { |
95 WTF_MAKE_NONCOPYABLE(RenderLayerClipper); | 95 WTF_MAKE_NONCOPYABLE(RenderLayerClipper); |
96 public: | 96 public: |
97 explicit RenderLayerClipper(RenderLayerModelObject&); | 97 explicit RenderLayerClipper(RenderLayerModelObject&); |
98 | 98 |
99 void clearClipRectsIncludingDescendants(); | 99 void clearClipRectsIncludingDescendants(); |
100 void clearClipRectsIncludingDescendants(ClipRectsCacheSlot); | 100 void clearClipRectsIncludingDescendants(ClipRectsCacheSlot); |
101 void clearClipRects(); | |
102 | 101 |
103 LayoutRect childrenClipRect() const; // Returns the foreground clip rect of
the layer in the document's coordinate space. | 102 LayoutRect childrenClipRect() const; // Returns the foreground clip rect of
the layer in the document's coordinate space. |
104 LayoutRect localClipRect() const; // Returns the background clip rect of the
layer in the local coordinate space. | 103 LayoutRect localClipRect() const; // Returns the background clip rect of the
layer in the local coordinate space. |
105 | 104 |
106 ClipRect backgroundClipRect(const ClipRectsContext&) const; | 105 ClipRect backgroundClipRect(const ClipRectsContext&) const; |
107 | 106 |
108 // This method figures out our layerBounds in coordinates relative to | 107 // This method figures out our layerBounds in coordinates relative to |
109 // |rootLayer|. It also computes our background and foreground clip rects | 108 // |rootLayer|. It also computes our background and foreground clip rects |
110 // for painting/event handling. | 109 // for painting/event handling. |
111 // Pass offsetFromRoot if known. | 110 // Pass offsetFromRoot if known. |
(...skipping 20 matching lines...) Expand all Loading... |
132 } | 131 } |
133 | 132 |
134 // FIXME: Could this be a RenderBox? | 133 // FIXME: Could this be a RenderBox? |
135 RenderLayerModelObject& m_renderer; | 134 RenderLayerModelObject& m_renderer; |
136 OwnPtr<ClipRectsCache> m_cache; | 135 OwnPtr<ClipRectsCache> m_cache; |
137 }; | 136 }; |
138 | 137 |
139 } // namespace WebCore | 138 } // namespace WebCore |
140 | 139 |
141 #endif // RenderLayerClipper_h | 140 #endif // RenderLayerClipper_h |
OLD | NEW |