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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h
index 1431b5df6698878125d12f0e400fa75e4a97886d..312c9fa9cffb7d07103ed1bd8b696db46446a948 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h
@@ -191,7 +191,7 @@ class CORE_EXPORT CompositedLayerMapping final : public GraphicsLayerClient {
bool updateSquashingLayerAssignment(PaintLayer* squashedLayer,
size_t nextSquashedLayerIndex);
void removeLayerFromSquashingGraphicsLayer(const PaintLayer*);
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool verifyLayerInSquashingVector(const PaintLayer*);
#endif
@@ -216,7 +216,7 @@ class CORE_EXPORT CompositedLayerMapping final : public GraphicsLayerClient {
bool isTrackingRasterInvalidations() const override;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
void verifyNotPainting() override;
#endif
@@ -266,7 +266,7 @@ class CORE_EXPORT CompositedLayerMapping final : public GraphicsLayerClient {
GraphicsLayerUpdater::UpdateType updateTypeForChildren(
GraphicsLayerUpdater::UpdateType) const;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
void assertNeedsToUpdateGraphicsLayerBitsCleared() {
ASSERT(m_pendingUpdateScope == GraphicsLayerUpdateNone);
}

Powered by Google App Engine
This is Rietveld 408576698