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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 #ifndef RenderLayerClipper_h | 45 #ifndef RenderLayerClipper_h |
46 #define RenderLayerClipper_h | 46 #define RenderLayerClipper_h |
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; | |
55 | 54 |
56 struct ClipRectsContext { | 55 struct ClipRectsContext { |
57 ClipRectsContext(const RenderLayer* inRootLayer, RenderRegion* inRegion, Cli
pRectsType inClipRectsType, OverlayScrollbarSizeRelevancy inOverlayScrollbarSize
Relevancy = IgnoreOverlayScrollbarSize, ShouldRespectOverflowClip inRespectOverf
lowClip = RespectOverflowClip, const LayoutSize& inSubPixelAccumulation = Layout
Size()) | 56 ClipRectsContext(const RenderLayer* inRootLayer, ClipRectsType inClipRectsTy
pe, OverlayScrollbarSizeRelevancy inOverlayScrollbarSizeRelevancy = IgnoreOverla
yScrollbarSize, ShouldRespectOverflowClip inRespectOverflowClip = RespectOverflo
wClip, const LayoutSize& inSubPixelAccumulation = LayoutSize()) |
58 : rootLayer(inRootLayer) | 57 : rootLayer(inRootLayer) |
59 , region(inRegion) | |
60 , clipRectsType(inClipRectsType) | 58 , clipRectsType(inClipRectsType) |
61 , overlayScrollbarSizeRelevancy(inOverlayScrollbarSizeRelevancy) | 59 , overlayScrollbarSizeRelevancy(inOverlayScrollbarSizeRelevancy) |
62 , respectOverflowClip(inRespectOverflowClip) | 60 , respectOverflowClip(inRespectOverflowClip) |
63 , subPixelAccumulation(inSubPixelAccumulation) | 61 , subPixelAccumulation(inSubPixelAccumulation) |
64 { } | 62 { } |
65 const RenderLayer* rootLayer; | 63 const RenderLayer* rootLayer; |
66 RenderRegion* region; | |
67 ClipRectsType clipRectsType; | 64 ClipRectsType clipRectsType; |
68 OverlayScrollbarSizeRelevancy overlayScrollbarSizeRelevancy; | 65 OverlayScrollbarSizeRelevancy overlayScrollbarSizeRelevancy; |
69 ShouldRespectOverflowClip respectOverflowClip; | 66 ShouldRespectOverflowClip respectOverflowClip; |
70 const LayoutSize& subPixelAccumulation; | 67 const LayoutSize& subPixelAccumulation; |
71 }; | 68 }; |
72 | 69 |
73 class RenderLayerClipper { | 70 class RenderLayerClipper { |
74 WTF_MAKE_NONCOPYABLE(RenderLayerClipper); | 71 WTF_MAKE_NONCOPYABLE(RenderLayerClipper); |
75 public: | 72 public: |
76 RenderLayerClipper(RenderLayerModelObject* renderer) | 73 RenderLayerClipper(RenderLayerModelObject* renderer) |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 111 |
115 // FIXME: Could this be a RenderBox? | 112 // FIXME: Could this be a RenderBox? |
116 RenderLayerModelObject* m_renderer; | 113 RenderLayerModelObject* m_renderer; |
117 | 114 |
118 OwnPtr<ClipRectsCache> m_clipRectsCache; | 115 OwnPtr<ClipRectsCache> m_clipRectsCache; |
119 }; | 116 }; |
120 | 117 |
121 } // namespace WebCore | 118 } // namespace WebCore |
122 | 119 |
123 #endif // RenderLayerClipper_h | 120 #endif // RenderLayerClipper_h |
OLD | NEW |