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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2D.cpp

Issue 327323002: Start removing the double-negative !ASSERT_DISABLED (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/core/html/HTMLSelectElement.cpp ('k') | Source/core/inspector/InspectorCounters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
index 7a47b837d61a9f6c6f31668eea752ade0c50cff6..6ef99dcde6499c40016a7a2c4a16d89482985f55 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
@@ -116,7 +116,7 @@ CanvasRenderingContext2D::~CanvasRenderingContext2D()
void CanvasRenderingContext2D::validateStateStack()
{
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
GraphicsContext* context = canvas()->existingDrawingContext();
if (context && !context->contextDisabled())
ASSERT(context->saveCount() == m_stateStack.size());
« no previous file with comments | « Source/core/html/HTMLSelectElement.cpp ('k') | Source/core/inspector/InspectorCounters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698