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

Unified Diff: Source/core/accessibility/AXNodeObject.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/core/accessibility/AXNodeObject.h ('k') | Source/core/accessibility/AXObjectCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXNodeObject.cpp
diff --git a/Source/core/accessibility/AXNodeObject.cpp b/Source/core/accessibility/AXNodeObject.cpp
index 92ea1d1493026afc7a670923f324e367ef4f127c..098628122ed8b40d2f7f722dc189a0edd0400d70 100644
--- a/Source/core/accessibility/AXNodeObject.cpp
+++ b/Source/core/accessibility/AXNodeObject.cpp
@@ -52,7 +52,7 @@ AXNodeObject::AXNodeObject(Node* node)
: AXObject()
, m_ariaRole(UnknownRole)
, m_childrenDirty(false)
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
, m_initialized(false)
#endif
, m_node(node)
@@ -154,7 +154,7 @@ void AXNodeObject::changeValueByStep(bool increase)
bool AXNodeObject::computeAccessibilityIsIgnored() const
{
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
// Double-check that an AXObject is never accessed before
// it's been initialized.
ASSERT(m_initialized);
@@ -446,7 +446,7 @@ AccessibilityRole AXNodeObject::remapAriaRoleDueToParent(AccessibilityRole role)
void AXNodeObject::init()
{
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
ASSERT(!m_initialized);
m_initialized = true;
#endif
« no previous file with comments | « Source/core/accessibility/AXNodeObject.h ('k') | Source/core/accessibility/AXObjectCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698