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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 ClipRects& getClipRects(const ClipRectsContext&) const; | 203 ClipRects& getClipRects(const ClipRectsContext&) const; |
204 | 204 |
205 void calculateClipRects(const ClipRectsContext&, ClipRects&) const; | 205 void calculateClipRects(const ClipRectsContext&, ClipRects&) const; |
206 ClipRects* clipRectsIfCached(const ClipRectsContext&) const; | 206 ClipRects* clipRectsIfCached(const ClipRectsContext&) const; |
207 ClipRects& storeClipRectsInCache(const ClipRectsContext&, | 207 ClipRects& storeClipRectsInCache(const ClipRectsContext&, |
208 ClipRects* parentClipRects, | 208 ClipRects* parentClipRects, |
209 const ClipRects&) const; | 209 const ClipRects&) const; |
210 | 210 |
211 void getOrCalculateClipRects(const ClipRectsContext&, ClipRects&) const; | 211 void getOrCalculateClipRects(const ClipRectsContext&, ClipRects&) const; |
212 | 212 |
| 213 bool shouldClipOverflow(const ClipRectsContext&) const; |
213 bool shouldRespectOverflowClip(const ClipRectsContext&) const; | 214 bool shouldRespectOverflowClip(const ClipRectsContext&) const; |
214 | 215 |
215 ClipRect clipRectWithGeometryMapper(const ClipRectsContext&, | 216 ClipRect clipRectWithGeometryMapper(const ClipRectsContext&, |
216 bool isForeground) const; | 217 bool isForeground) const; |
217 void mapLocalToRootWithGeometryMapper(const ClipRectsContext&, | 218 void mapLocalToRootWithGeometryMapper(const ClipRectsContext&, |
218 LayoutRect& localRect) const; | 219 LayoutRect& localRect) const; |
219 void calculateRectsWithGeometryMapper( | 220 void calculateRectsWithGeometryMapper( |
220 const ClipRectsContext&, | 221 const ClipRectsContext&, |
221 const LayoutRect& paintDirtyRect, | 222 const LayoutRect& paintDirtyRect, |
222 LayoutRect& layerBounds, | 223 LayoutRect& layerBounds, |
223 ClipRect& backgroundRect, | 224 ClipRect& backgroundRect, |
224 ClipRect& foregroundRect, | 225 ClipRect& foregroundRect, |
225 const LayoutPoint* offsetFromRoot = 0) const; | 226 const LayoutPoint* offsetFromRoot = 0) const; |
226 | 227 |
227 ClipRect applyOverflowClipToBackgroundRectWithGeometryMapper( | 228 ClipRect applyOverflowClipToBackgroundRectWithGeometryMapper( |
228 const ClipRectsContext&, | 229 const ClipRectsContext&, |
229 const ClipRect&) const; | 230 const ClipRect&) const; |
230 | 231 |
231 const PaintLayer& m_layer; | 232 const PaintLayer& m_layer; |
232 std::unique_ptr<GeometryMapper> m_geometryMapper; | 233 std::unique_ptr<GeometryMapper> m_geometryMapper; |
233 }; | 234 }; |
234 | 235 |
235 } // namespace blink | 236 } // namespace blink |
236 | 237 |
237 #endif // LayerClipper_h | 238 #endif // LayerClipper_h |
OLD | NEW |