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

Unified Diff: third_party/WebKit/Source/core/layout/TextAutosizer.h

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: Created 3 years, 11 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
Index: third_party/WebKit/Source/core/layout/TextAutosizer.h
diff --git a/third_party/WebKit/Source/core/layout/TextAutosizer.h b/third_party/WebKit/Source/core/layout/TextAutosizer.h
index c3fb67e2df9ab90b33e3a5e1c381c5d8ecbec755..0c59502b64ebf08fe9a112cd8bf1c6599e767d4b 100644
--- a/third_party/WebKit/Source/core/layout/TextAutosizer.h
+++ b/third_party/WebKit/Source/core/layout/TextAutosizer.h
@@ -253,7 +253,7 @@ class CORE_EXPORT TextAutosizer final
// Superclusters that need to be checked for consistency at the start of the
// next layout.
HashSet<Supercluster*> m_potentiallyInconsistentSuperclusters;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
void assertMapsAreConsistent();
#endif
};
@@ -347,7 +347,7 @@ class CORE_EXPORT TextAutosizer final
Member<const Document> m_document;
const LayoutBlock* m_firstBlockToBeginLayout;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
// Used to ensure we don't compute properties of a block before beginLayout()
// is called on it.
ConstBlockSet m_blocksThatHaveBegunLayout;

Powered by Google App Engine
This is Rietveld 408576698