Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: Source/core/layout/LayerClipper.cpp

Issue 945803004: Merge back LayoutLayerModelObject into RenderBoxModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Better rebasing. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayerClipper.h ('k') | Source/core/layout/LayerReflectionInfo.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/layout/LayerClipper.h ('k') | Source/core/layout/LayerReflectionInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698