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

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: Rebased. 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
« no previous file with comments | « Source/platform/fonts/GlyphPageTreeNode.cpp ('k') | Source/platform/graphics/GraphicsLayerClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsLayer.cpp
diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp
index 1b885e0300c5ef020e4ecb5e35fe2217f332adaf..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
« no previous file with comments | « Source/platform/fonts/GlyphPageTreeNode.cpp ('k') | Source/platform/graphics/GraphicsLayerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698