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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.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/platform/graphics/GraphicsLayer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index dfe1e0daae5a9b36735bf9c98883a6f18c34a283..ce29c2d4d98b96f19519c8a326378f2a63f06df4 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -112,7 +112,7 @@ GraphicsLayer::GraphicsLayer(GraphicsLayerClient* client)
m_renderingContext3d(0),
m_colorBehavior(ColorBehavior::transformToGlobalTarget()),
m_hasPreferredRasterBounds(false) {
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
if (m_client)
m_client->verifyNotPainting();
#endif
@@ -134,7 +134,7 @@ GraphicsLayer::~GraphicsLayer() {
m_linkHighlights[i]->clearCurrentGraphicsLayer();
m_linkHighlights.clear();
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
if (m_client)
m_client->verifyNotPainting();
#endif

Powered by Google App Engine
This is Rietveld 408576698