| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 #include "core/rendering/ClipRect.h" | 48 #include "core/rendering/ClipRect.h" |
| 49 #include "core/rendering/RenderBox.h" // For OverlayScrollbarSizeRelevancy. | 49 #include "core/rendering/RenderBox.h" // For OverlayScrollbarSizeRelevancy. |
| 50 | 50 |
| 51 namespace WebCore { | 51 namespace WebCore { |
| 52 | 52 |
| 53 class RenderLayer; | 53 class RenderLayer; |
| 54 class RenderRegion; | 54 class RenderRegion; |
| 55 | 55 |
| 56 struct ClipRectsContext { | 56 struct ClipRectsContext { |
| 57 ClipRectsContext(const RenderLayer* inRootLayer, RenderRegion* inRegion, Cli
pRectsType inClipRectsType, OverlayScrollbarSizeRelevancy inOverlayScrollbarSize
Relevancy = IgnoreOverlayScrollbarSize, ShouldRespectOverflowClip inRespectOverf
lowClip = RespectOverflowClip) | 57 ClipRectsContext(const RenderLayer* inRootLayer, RenderRegion* inRegion, Cli
pRectsType inClipRectsType, OverlayScrollbarSizeRelevancy inOverlayScrollbarSize
Relevancy = IgnoreOverlayScrollbarSize, ShouldRespectOverflowClip inRespectOverf
lowClip = RespectOverflowClip, const LayoutSize& inSubPixelAccumulation = Layout
Size()) |
| 58 : rootLayer(inRootLayer) | 58 : rootLayer(inRootLayer) |
| 59 , region(inRegion) | 59 , region(inRegion) |
| 60 , clipRectsType(inClipRectsType) | 60 , clipRectsType(inClipRectsType) |
| 61 , overlayScrollbarSizeRelevancy(inOverlayScrollbarSizeRelevancy) | 61 , overlayScrollbarSizeRelevancy(inOverlayScrollbarSizeRelevancy) |
| 62 , respectOverflowClip(inRespectOverflowClip) | 62 , respectOverflowClip(inRespectOverflowClip) |
| 63 , subPixelAccumulation(inSubPixelAccumulation) |
| 63 { } | 64 { } |
| 64 const RenderLayer* rootLayer; | 65 const RenderLayer* rootLayer; |
| 65 RenderRegion* region; | 66 RenderRegion* region; |
| 66 ClipRectsType clipRectsType; | 67 ClipRectsType clipRectsType; |
| 67 OverlayScrollbarSizeRelevancy overlayScrollbarSizeRelevancy; | 68 OverlayScrollbarSizeRelevancy overlayScrollbarSizeRelevancy; |
| 68 ShouldRespectOverflowClip respectOverflowClip; | 69 ShouldRespectOverflowClip respectOverflowClip; |
| 70 const LayoutSize& subPixelAccumulation; |
| 69 }; | 71 }; |
| 70 | 72 |
| 71 class RenderLayerClipper { | 73 class RenderLayerClipper { |
| 72 WTF_MAKE_NONCOPYABLE(RenderLayerClipper); | 74 WTF_MAKE_NONCOPYABLE(RenderLayerClipper); |
| 73 public: | 75 public: |
| 74 RenderLayerClipper(RenderLayerModelObject* renderer) | 76 RenderLayerClipper(RenderLayerModelObject* renderer) |
| 75 : m_renderer(renderer) | 77 : m_renderer(renderer) |
| 76 { | 78 { |
| 77 } | 79 } |
| 78 | 80 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 108 private: | 110 private: |
| 109 // FIXME: Could this be a RenderBox? | 111 // FIXME: Could this be a RenderBox? |
| 110 RenderLayerModelObject* m_renderer; | 112 RenderLayerModelObject* m_renderer; |
| 111 | 113 |
| 112 OwnPtr<ClipRectsCache> m_clipRectsCache; | 114 OwnPtr<ClipRectsCache> m_clipRectsCache; |
| 113 }; | 115 }; |
| 114 | 116 |
| 115 } // namespace WebCore | 117 } // namespace WebCore |
| 116 | 118 |
| 117 #endif // RenderLayerClipper_h | 119 #endif // RenderLayerClipper_h |
| OLD | NEW |