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

Unified Diff: Source/core/rendering/FastTextAutosizer.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/page/Page.cpp ('k') | Source/core/rendering/FastTextAutosizer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/FastTextAutosizer.h
diff --git a/Source/core/rendering/FastTextAutosizer.h b/Source/core/rendering/FastTextAutosizer.h
index b03041481e8e4a781461cbc05d3409e774e841cf..454aa0dfdcffc54f36b936abe5a5e8fd062377ae 100644
--- a/Source/core/rendering/FastTextAutosizer.h
+++ b/Source/core/rendering/FastTextAutosizer.h
@@ -220,7 +220,7 @@ private:
FingerprintMap m_fingerprints;
ReverseFingerprintMap m_blocksForFingerprint;
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
void assertMapsAreConsistent();
#endif
};
@@ -289,7 +289,7 @@ private:
const Document* m_document;
const RenderBlock* m_firstBlockToBeginLayout;
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
BlockSet m_blocksThatHaveBegunLayout; // Used to ensure we don't compute properties of a block before beginLayout() is called on it.
#endif
« no previous file with comments | « Source/core/page/Page.cpp ('k') | Source/core/rendering/FastTextAutosizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698