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

Side by Side Diff: Source/core/rendering/RenderLayerClipper.cpp

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. Created 6 years, 5 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
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 ASSERT(clipRects == *entry.clipRects); 117 ASSERT(clipRects == *entry.clipRects);
118 #endif 118 #endif
119 119
120 return entry.clipRects.get(); 120 return entry.clipRects.get();
121 } 121 }
122 122
123 ClipRects* RenderLayerClipper::storeClipRectsInCache(const ClipRectsContext& con text, ClipRects* parentClipRects, const ClipRects& clipRects) const 123 ClipRects* RenderLayerClipper::storeClipRectsInCache(const ClipRectsContext& con text, ClipRects* parentClipRects, const ClipRects& clipRects) const
124 { 124 {
125 ClipRectsCache::Entry& entry = cache().get(context.cacheSlot); 125 ClipRectsCache::Entry& entry = cache().get(context.cacheSlot);
126 entry.root = context.rootLayer; 126 entry.root = context.rootLayer;
127 #if ASSERT_ENABLED 127 #if ENABLE(ASSERT)
128 entry.scrollbarRelevancy = context.scrollbarRelevancy; 128 entry.scrollbarRelevancy = context.scrollbarRelevancy;
129 #endif 129 #endif
130 130
131 if (parentClipRects) { 131 if (parentClipRects) {
132 // If our clip rects match the clip rects of our parent, we share storag e. 132 // If our clip rects match the clip rects of our parent, we share storag e.
133 if (clipRects == *parentClipRects) { 133 if (clipRects == *parentClipRects) {
134 entry.clipRects = parentClipRects; 134 entry.clipRects = parentClipRects;
135 return parentClipRects; 135 return parentClipRects;
136 } 136 }
137 } 137 }
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 ASSERT(current); 371 ASSERT(current);
372 if (current->transform() || current->isPaintInvalidationContainer()) 372 if (current->transform() || current->isPaintInvalidationContainer())
373 return const_cast<RenderLayer*>(current); 373 return const_cast<RenderLayer*>(current);
374 } 374 }
375 375
376 ASSERT_NOT_REACHED(); 376 ASSERT_NOT_REACHED();
377 return 0; 377 return 0;
378 } 378 }
379 379
380 } // namespace WebCore 380 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698