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

Side by Side Diff: Source/core/rendering/compositing/GraphicsLayerUpdater.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) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2014 Google Inc. All rights reserved. 3 * Copyright (C) 2014 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 updateType = mapping->updateTypeForChildren(updateType); 117 updateType = mapping->updateTypeForChildren(updateType);
118 mapping->clearNeedsGraphicsLayerUpdate(); 118 mapping->clearNeedsGraphicsLayerUpdate();
119 } 119 }
120 } 120 }
121 121
122 UpdateContext childContext(context, layer); 122 UpdateContext childContext(context, layer);
123 for (RenderLayer* child = layer.firstChild(); child; child = child->nextSibl ing()) 123 for (RenderLayer* child = layer.firstChild(); child; child = child->nextSibl ing())
124 updateRecursive(*child, updateType, childContext, layersNeedingPaintInva lidation); 124 updateRecursive(*child, updateType, childContext, layersNeedingPaintInva lidation);
125 } 125 }
126 126
127 #if ASSERT_ENABLED 127 #if ENABLE(ASSERT)
128 128
129 void GraphicsLayerUpdater::assertNeedsToUpdateGraphicsLayerBitsCleared(RenderLay er& layer) 129 void GraphicsLayerUpdater::assertNeedsToUpdateGraphicsLayerBitsCleared(RenderLay er& layer)
130 { 130 {
131 if (layer.hasCompositedLayerMapping()) 131 if (layer.hasCompositedLayerMapping())
132 layer.compositedLayerMapping()->assertNeedsToUpdateGraphicsLayerBitsClea red(); 132 layer.compositedLayerMapping()->assertNeedsToUpdateGraphicsLayerBitsClea red();
133 133
134 for (RenderLayer* child = layer.firstChild(); child; child = child->nextSibl ing()) 134 for (RenderLayer* child = layer.firstChild(); child; child = child->nextSibl ing())
135 assertNeedsToUpdateGraphicsLayerBitsCleared(*child); 135 assertNeedsToUpdateGraphicsLayerBitsCleared(*child);
136 } 136 }
137 137
138 #endif 138 #endif
139 139
140 } // namespace WebCore 140 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698