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

Unified Diff: Source/core/dom/shadow/ComposedTreeWalker.h

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/dom/TreeScopeAdopter.cpp ('k') | Source/core/editing/EditCommand.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/shadow/ComposedTreeWalker.h
diff --git a/Source/core/dom/shadow/ComposedTreeWalker.h b/Source/core/dom/shadow/ComposedTreeWalker.h
index f7cf3e0fb3dfb53bfac9c8a415386e6d30845a05..dd48f375ba97d46585d265c25aa4cf9e68f1af1f 100644
--- a/Source/core/dom/shadow/ComposedTreeWalker.h
+++ b/Source/core/dom/shadow/ComposedTreeWalker.h
@@ -74,7 +74,7 @@ private:
void assertPrecondition() const
{
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
ASSERT(m_node);
ASSERT(!m_node->isShadowRoot());
ASSERT(!isActiveInsertionPoint(*m_node));
@@ -83,7 +83,7 @@ private:
void assertPostcondition() const
{
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
if (m_node)
assertPrecondition();
#endif
@@ -115,7 +115,7 @@ private:
inline ComposedTreeWalker::ComposedTreeWalker(const Node* node, StartPolicy startPolicy)
: m_node(node)
{
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
if (m_node && startPolicy == CannotStartFromShadowBoundary)
assertPrecondition();
#endif
« no previous file with comments | « Source/core/dom/TreeScopeAdopter.cpp ('k') | Source/core/editing/EditCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698