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

Unified Diff: Source/core/accessibility/AXRenderObject.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/AXObjectCache.cpp ('k') | Source/core/animation/CompositorAnimationsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXRenderObject.cpp
diff --git a/Source/core/accessibility/AXRenderObject.cpp b/Source/core/accessibility/AXRenderObject.cpp
index c50a6297abc222d99080ec77e450bda6e677814a..bf857a7f331d99d33511f6b91bfa01d5f408d0d7 100644
--- a/Source/core/accessibility/AXRenderObject.cpp
+++ b/Source/core/accessibility/AXRenderObject.cpp
@@ -169,7 +169,7 @@ AXRenderObject::AXRenderObject(RenderObject* renderer)
, m_renderer(renderer)
, m_cachedElementRectDirty(true)
{
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
m_renderer->setHasAXObject(true);
#endif
}
@@ -419,7 +419,7 @@ void AXRenderObject::detach()
detachRemoteSVGRoot();
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
if (m_renderer)
m_renderer->setHasAXObject(false);
#endif
@@ -576,7 +576,7 @@ AXObjectInclusion AXRenderObject::defaultObjectInclusion() const
bool AXRenderObject::computeAccessibilityIsIgnored() const
{
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
ASSERT(m_initialized);
#endif
« no previous file with comments | « Source/core/accessibility/AXObjectCache.cpp ('k') | Source/core/animation/CompositorAnimationsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698