| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 friend class LayerClipper; | 89 friend class LayerClipper; |
| 90 | 90 |
| 91 ClipRectsCacheSlot cacheSlot; | 91 ClipRectsCacheSlot cacheSlot; |
| 92 LayoutSize subPixelAccumulation; | 92 LayoutSize subPixelAccumulation; |
| 93 ShouldRespectOverflowClip respectOverflowClip; | 93 ShouldRespectOverflowClip respectOverflowClip; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 class LayerClipper { | 96 class LayerClipper { |
| 97 WTF_MAKE_NONCOPYABLE(LayerClipper); | 97 WTF_MAKE_NONCOPYABLE(LayerClipper); |
| 98 public: | 98 public: |
| 99 explicit LayerClipper(LayoutLayerModelObject&); | 99 explicit LayerClipper(LayoutBoxModelObject&); |
| 100 | 100 |
| 101 void clearClipRectsIncludingDescendants(); | 101 void clearClipRectsIncludingDescendants(); |
| 102 void clearClipRectsIncludingDescendants(ClipRectsCacheSlot); | 102 void clearClipRectsIncludingDescendants(ClipRectsCacheSlot); |
| 103 | 103 |
| 104 LayoutRect childrenClipRect() const; // Returns the foreground clip rect of
the layer in the document's coordinate space. | 104 LayoutRect childrenClipRect() const; // Returns the foreground clip rect of
the layer in the document's coordinate space. |
| 105 LayoutRect localClipRect() const; // Returns the background clip rect of the
layer in the local coordinate space. | 105 LayoutRect localClipRect() const; // Returns the background clip rect of the
layer in the local coordinate space. |
| 106 | 106 |
| 107 ClipRects* getClipRects(const ClipRectsContext&) const; | 107 ClipRects* getClipRects(const ClipRectsContext&) const; |
| 108 | 108 |
| 109 ClipRect backgroundClipRect(const ClipRectsContext&) const; | 109 ClipRect backgroundClipRect(const ClipRectsContext&) const; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 133 Layer* clippingRootForPainting() const; | 133 Layer* clippingRootForPainting() const; |
| 134 | 134 |
| 135 ClipRectsCache& cache() const | 135 ClipRectsCache& cache() const |
| 136 { | 136 { |
| 137 if (!m_cache) | 137 if (!m_cache) |
| 138 m_cache = adoptPtr(new ClipRectsCache); | 138 m_cache = adoptPtr(new ClipRectsCache); |
| 139 return *m_cache; | 139 return *m_cache; |
| 140 } | 140 } |
| 141 | 141 |
| 142 // FIXME: Could this be a RenderBox? | 142 // FIXME: Could this be a RenderBox? |
| 143 LayoutLayerModelObject& m_renderer; | 143 LayoutBoxModelObject& m_renderer; |
| 144 mutable OwnPtr<ClipRectsCache> m_cache; | 144 mutable OwnPtr<ClipRectsCache> m_cache; |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 } // namespace blink | 147 } // namespace blink |
| 148 | 148 |
| 149 #endif // LayerClipper_h | 149 #endif // LayerClipper_h |
| OLD | NEW |