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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // This method figures out our layerBounds in coordinates relative to | 142 // This method figures out our layerBounds in coordinates relative to |
143 // |rootLayer|. It also computes our background and foreground clip rects | 143 // |rootLayer|. It also computes our background and foreground clip rects |
144 // for painting/event handling. | 144 // for painting/event handling. |
145 // Pass offsetFromRoot if known. | 145 // Pass offsetFromRoot if known. |
146 void calculateRects(const ClipRectsContext&, const LayoutRect& paintDirtyRec
t, LayoutRect& layerBounds, | 146 void calculateRects(const ClipRectsContext&, const LayoutRect& paintDirtyRec
t, LayoutRect& layerBounds, |
147 ClipRect& backgroundRect, ClipRect& foregroundRect, ClipRect& outlineRec
t, const LayoutPoint* offsetFromRoot = 0) const; | 147 ClipRect& backgroundRect, ClipRect& foregroundRect, ClipRect& outlineRec
t, const LayoutPoint* offsetFromRoot = 0) const; |
148 void calculateClipRects(const ClipRectsContext&, ClipRectComputationState&)
const; | 148 void calculateClipRects(const ClipRectsContext&, ClipRectComputationState&)
const; |
149 | 149 |
150 DeprecatedPaintLayer* clippingRootForPainting() const; | 150 DeprecatedPaintLayer* clippingRootForPainting() const; |
151 | 151 |
| 152 void precalculateAbsoluteClipRects(); |
| 153 |
152 private: | 154 private: |
153 void setClipRect(const ClipRectsContext&, const ClipRectComputationState&) c
onst; | 155 void setClipRect(const ClipRectsContext&, const ClipRectComputationState&) c
onst; |
154 void addClipsFromThisObject(const ClipRectsContext&, ClipRects&) const; | 156 void addClipsFromThisObject(const ClipRectsContext&, ClipRects&) const; |
155 void updateClipRectBasedOnPosition(ClipRects*) const; | 157 void updateClipRectBasedOnPosition(ClipRects*) const; |
156 | 158 |
157 ClipRect uncachedBackgroundClipRect(const ClipRectsContext&) const; | 159 ClipRect uncachedBackgroundClipRect(const ClipRectsContext&) const; |
158 void uncachedCalculateClipRects(const ClipRectsContext&, ClipRects&) const; | 160 void uncachedCalculateClipRects(const ClipRectsContext&, ClipRects&) const; |
159 | 161 |
160 bool shouldRespectOverflowClip(const ClipRectsContext&) const; | 162 bool shouldRespectOverflowClip(const ClipRectsContext&) const; |
161 | 163 |
162 // FIXME: Could this be a LayoutBox? | 164 // FIXME: Could this be a LayoutBox? |
163 LayoutBoxModelObject& m_layoutObject; | 165 LayoutBoxModelObject& m_layoutObject; |
164 mutable OwnPtr<ClipRect> m_clips[NumberOfClipRectsCacheSlots]; | 166 mutable OwnPtr<ClipRect> m_clips[NumberOfClipRectsCacheSlots]; |
165 }; | 167 }; |
166 | 168 |
167 } // namespace blink | 169 } // namespace blink |
168 | 170 |
169 #endif // LayerClipper_h | 171 #endif // LayerClipper_h |
OLD | NEW |