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

Unified Diff: Source/platform/graphics/GraphicsLayer.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 side-by-side diff with in-line comments
Download patch
Index: Source/platform/graphics/GraphicsLayer.cpp
diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp
index 0bd1c8d990a0c3f36aa18c470d29a5291f5642d0..a33755e2bf53a629c1c2bf846cdacbefe7e2c7bc 100644
--- a/Source/platform/graphics/GraphicsLayer.cpp
+++ b/Source/platform/graphics/GraphicsLayer.cpp
@@ -105,7 +105,7 @@ GraphicsLayer::GraphicsLayer(GraphicsLayerClient* client)
, m_scrollableArea(0)
, m_3dRenderingContext(0)
{
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
if (m_client)
m_client->verifyNotPainting();
#endif
@@ -123,7 +123,7 @@ GraphicsLayer::~GraphicsLayer()
m_linkHighlights[i]->clearCurrentGraphicsLayer();
m_linkHighlights.clear();
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
if (m_client)
m_client->verifyNotPainting();
#endif
@@ -147,7 +147,7 @@ void GraphicsLayer::setParent(GraphicsLayer* layer)
m_parent = layer;
}
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
bool GraphicsLayer::hasAncestor(GraphicsLayer* ancestor) const
{

Powered by Google App Engine
This is Rietveld 408576698