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

Unified Diff: Source/core/dom/TreeScopeAdopter.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/Node.cpp ('k') | Source/core/dom/TreeScopeAdopter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/TreeScopeAdopter.h
diff --git a/Source/core/dom/TreeScopeAdopter.h b/Source/core/dom/TreeScopeAdopter.h
index 85310ec088823499c9932063add01102fb8a81f6..396c36000986a5b6a39495168e2279304f277821 100644
--- a/Source/core/dom/TreeScopeAdopter.h
+++ b/Source/core/dom/TreeScopeAdopter.h
@@ -39,10 +39,10 @@ public:
void execute() const { moveTreeToNewScope(m_toAdopt); }
bool needsScopeChange() const { return m_oldScope != m_newScope; }
-#ifdef NDEBUG
- static void ensureDidMoveToNewDocumentWasCalled(Document&) { }
-#else
+#if ENABLE(ASSERT)
static void ensureDidMoveToNewDocumentWasCalled(Document&);
+#else
+ static void ensureDidMoveToNewDocumentWasCalled(Document&) { }
#endif
private:
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/dom/TreeScopeAdopter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698