| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 enum ShouldRespectOverflowClipType { IgnoreOverflowClip, RespectOverflowClip }; | 60 enum ShouldRespectOverflowClipType { IgnoreOverflowClip, RespectOverflowClip }; |
| 61 | 61 |
| 62 class ClipRectsContext { | 62 class ClipRectsContext { |
| 63 STACK_ALLOCATED(); | 63 STACK_ALLOCATED(); |
| 64 | 64 |
| 65 public: | 65 public: |
| 66 ClipRectsContext(const PaintLayer* root, | 66 ClipRectsContext(const PaintLayer* root, |
| 67 ClipRectsCacheSlot slot, | 67 ClipRectsCacheSlot slot, |
| 68 OverlayScrollbarClipBehavior overlayScrollbarClipBehavior = | 68 OverlayScrollbarClipBehavior overlayScrollbarClipBehavior = |
| 69 IgnoreOverlayScrollbarSize, | 69 IgnorePlatformOverlayScrollbarSize, |
| 70 const LayoutSize& accumulation = LayoutSize()) | 70 const LayoutSize& accumulation = LayoutSize()) |
| 71 : rootLayer(root), | 71 : rootLayer(root), |
| 72 overlayScrollbarClipBehavior(overlayScrollbarClipBehavior), | 72 overlayScrollbarClipBehavior(overlayScrollbarClipBehavior), |
| 73 m_cacheSlot(slot), | 73 m_cacheSlot(slot), |
| 74 subPixelAccumulation(accumulation), | 74 subPixelAccumulation(accumulation), |
| 75 respectOverflowClip(slot == PaintingClipRectsIgnoringOverflowClip | 75 respectOverflowClip(slot == PaintingClipRectsIgnoringOverflowClip |
| 76 ? IgnoreOverflowClip | 76 ? IgnoreOverflowClip |
| 77 : RespectOverflowClip), | 77 : RespectOverflowClip), |
| 78 respectOverflowClipForViewport( | 78 respectOverflowClipForViewport( |
| 79 slot == RootRelativeClipRectsIgnoringViewportClip | 79 slot == RootRelativeClipRectsIgnoringViewportClip |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 238 |
| 239 const PaintLayer& m_layer; | 239 const PaintLayer& m_layer; |
| 240 GeometryMapper* m_geometryMapper; | 240 GeometryMapper* m_geometryMapper; |
| 241 | 241 |
| 242 friend class PaintLayerClipperTest; | 242 friend class PaintLayerClipperTest; |
| 243 }; | 243 }; |
| 244 | 244 |
| 245 } // namespace blink | 245 } // namespace blink |
| 246 | 246 |
| 247 #endif // LayerClipper_h | 247 #endif // LayerClipper_h |
| OLD | NEW |