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/GraphicsContext.h

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/platform/graphics/Canvas2DLayerBridge.cpp ('k') | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsContext.h
diff --git a/Source/platform/graphics/GraphicsContext.h b/Source/platform/graphics/GraphicsContext.h
index 7a3767db1a795cb24e9492fd24f582663d003609..3da192015350d46835d89c8111d1493d17d9d533 100644
--- a/Source/platform/graphics/GraphicsContext.h
+++ b/Source/platform/graphics/GraphicsContext.h
@@ -112,7 +112,7 @@ public:
void save();
void restore();
unsigned saveCount() { return m_canvasStateStack.size(); }
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
void disableDestructionChecks() { m_disableDestructionChecks = true; }
#endif
@@ -514,7 +514,7 @@ private:
struct RecordingState;
Vector<RecordingState> m_recordingStateStack;
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
unsigned m_annotationCount;
unsigned m_layerCount;
bool m_disableDestructionChecks;
« no previous file with comments | « Source/platform/graphics/Canvas2DLayerBridge.cpp ('k') | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698