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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2D.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/core/html/canvas/CanvasRenderingContext2D.cpp
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
index 829cdb8fb66916bdd22a5e9a786b74057c50b9d2..1c29389d4fdfe95994ad7eeb6ef81b0c2cfb3877 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
@@ -115,7 +115,7 @@ CanvasRenderingContext2D::~CanvasRenderingContext2D()
void CanvasRenderingContext2D::validateStateStack()
{
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
GraphicsContext* context = canvas()->existingDrawingContext();
if (context && !context->contextDisabled())
ASSERT(context->saveCount() == m_stateStack.size());

Powered by Google App Engine
This is Rietveld 408576698