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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerStackingNode.cpp

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: m_domTreeVersion initialization 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/paint/PaintLayerStackingNode.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.cpp b/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.cpp
index a026998d1038b144dc304ebbdb914dfea6c426f8..55b10159f23301a2b66a94284ff4ad7bea4a3d34 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.cpp
@@ -74,7 +74,7 @@ PaintLayerStackingNode::PaintLayerStackingNode(PaintLayer* layer)
}
PaintLayerStackingNode::~PaintLayerStackingNode() {
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
if (!layoutObject()->documentBeingDestroyed()) {
DCHECK(!isInStackingParentZOrderLists());
@@ -100,7 +100,7 @@ void PaintLayerStackingNode::dirtyZOrderLists() {
#endif
DCHECK(isStackingContext());
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
updateStackingParentForZOrderLists(0);
#endif
@@ -167,7 +167,7 @@ void PaintLayerStackingNode::rebuildZOrderLists() {
}
}
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
updateStackingParentForZOrderLists(this);
#endif
@@ -195,7 +195,7 @@ void PaintLayerStackingNode::collectLayers(
}
}
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool PaintLayerStackingNode::isInStackingParentZOrderLists() const {
if (!m_stackingParent || m_stackingParent->zOrderListsDirty())
return false;
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h ('k') | third_party/WebKit/Source/core/paint/SVGPaintContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698