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

Unified Diff: Source/core/page/Page.h

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/page/Page.h
diff --git a/Source/core/page/Page.h b/Source/core/page/Page.h
index 0f1d2143a1fd0d446cfd0415eb4a82f5c947f702..fe7a532008dfb0e6afcf5a96d4b41cb2cf77b9c1 100644
--- a/Source/core/page/Page.h
+++ b/Source/core/page/Page.h
@@ -203,7 +203,7 @@ public:
bool isCursorVisible() const;
void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; }
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
void setIsPainting(bool painting) { m_isPainting = painting; }
bool isPainting() const { return m_isPainting; }
#endif
@@ -234,7 +234,7 @@ protected:
private:
void initGroup();
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
void checkSubframeCountConsistency() const;
#else
void checkSubframeCountConsistency() const { }
@@ -299,7 +299,7 @@ private:
bool m_isCursorVisible;
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
bool m_isPainting;
#endif

Powered by Google App Engine
This is Rietveld 408576698