OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 } | 84 } |
85 | 85 |
86 if (renderer.hasClip()) { | 86 if (renderer.hasClip()) { |
87 LayoutRect newClip = toRenderBox(renderer).clipRect(offset); | 87 LayoutRect newClip = toRenderBox(renderer).clipRect(offset); |
88 clipRects.setPosClipRect(intersection(newClip, clipRects.posClipRect()))
; | 88 clipRects.setPosClipRect(intersection(newClip, clipRects.posClipRect()))
; |
89 clipRects.setOverflowClipRect(intersection(newClip, clipRects.overflowCl
ipRect())); | 89 clipRects.setOverflowClipRect(intersection(newClip, clipRects.overflowCl
ipRect())); |
90 clipRects.setFixedClipRect(intersection(newClip, clipRects.fixedClipRect
())); | 90 clipRects.setFixedClipRect(intersection(newClip, clipRects.fixedClipRect
())); |
91 } | 91 } |
92 } | 92 } |
93 | 93 |
94 LayerClipper::LayerClipper(LayoutLayerModelObject& renderer) | 94 LayerClipper::LayerClipper(LayoutBoxModelObject& renderer) |
95 : m_renderer(renderer) | 95 : m_renderer(renderer) |
96 { | 96 { |
97 } | 97 } |
98 | 98 |
99 ClipRects* LayerClipper::clipRectsIfCached(const ClipRectsContext& context) cons
t | 99 ClipRects* LayerClipper::clipRectsIfCached(const ClipRectsContext& context) cons
t |
100 { | 100 { |
101 ASSERT(context.usesCache()); | 101 ASSERT(context.usesCache()); |
102 if (!m_cache) | 102 if (!m_cache) |
103 return 0; | 103 return 0; |
104 ClipRectsCache::Entry& entry = m_cache->get(context.cacheSlot); | 104 ClipRectsCache::Entry& entry = m_cache->get(context.cacheSlot); |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 ASSERT(current); | 365 ASSERT(current); |
366 if (current->transform() || current->isPaintInvalidationContainer()) | 366 if (current->transform() || current->isPaintInvalidationContainer()) |
367 return const_cast<Layer*>(current); | 367 return const_cast<Layer*>(current); |
368 } | 368 } |
369 | 369 |
370 ASSERT_NOT_REACHED(); | 370 ASSERT_NOT_REACHED(); |
371 return 0; | 371 return 0; |
372 } | 372 } |
373 | 373 |
374 } // namespace blink | 374 } // namespace blink |
OLD | NEW |