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

Side by Side Diff: Source/core/rendering/compositing/CompositingInputsUpdater.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/rendering/compositing/CompositingInputsUpdater.h" 6 #include "core/rendering/compositing/CompositingInputsUpdater.h"
7 7
8 #include "core/rendering/RenderBlock.h" 8 #include "core/rendering/RenderBlock.h"
9 #include "core/rendering/RenderLayer.h" 9 #include "core/rendering/RenderLayer.h"
10 #include "core/rendering/compositing/CompositedLayerMapping.h" 10 #include "core/rendering/compositing/CompositedLayerMapping.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 descendantProperties.hasDescendantWithClipPath |= child->hasDescendantWi thClipPath() || child->renderer()->hasClipPath(); 165 descendantProperties.hasDescendantWithClipPath |= child->hasDescendantWi thClipPath() || child->renderer()->hasClipPath();
166 } 166 }
167 167
168 m_geometryMap.popMappingsToAncestor(layer->parent()); 168 m_geometryMap.popMappingsToAncestor(layer->parent());
169 169
170 layer->updateDescendantDependentCompositingInputs(descendantProperties); 170 layer->updateDescendantDependentCompositingInputs(descendantProperties);
171 171
172 layer->didUpdateCompositingInputs(); 172 layer->didUpdateCompositingInputs();
173 } 173 }
174 174
175 #if ASSERT_ENABLED 175 #if ENABLE(ASSERT)
176 176
177 void CompositingInputsUpdater::assertNeedsCompositingInputsUpdateBitsCleared(Ren derLayer* layer) 177 void CompositingInputsUpdater::assertNeedsCompositingInputsUpdateBitsCleared(Ren derLayer* layer)
178 { 178 {
179 ASSERT(!layer->childNeedsCompositingInputsUpdate()); 179 ASSERT(!layer->childNeedsCompositingInputsUpdate());
180 ASSERT(!layer->needsCompositingInputsUpdate()); 180 ASSERT(!layer->needsCompositingInputsUpdate());
181 181
182 for (RenderLayer* child = layer->firstChild(); child; child = child->nextSib ling()) 182 for (RenderLayer* child = layer->firstChild(); child; child = child->nextSib ling())
183 assertNeedsCompositingInputsUpdateBitsCleared(child); 183 assertNeedsCompositingInputsUpdateBitsCleared(child);
184 } 184 }
185 185
186 #endif 186 #endif
187 187
188 } // namespace WebCore 188 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698