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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutText.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/LayoutText.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutText.h b/third_party/WebKit/Source/core/layout/LayoutText.h
index 7b9184c8ea1687d1cca026c7aa364d0ff1e51711..6c10d9e93cf47b76c37e64d64e72e33beea3ed39 100644
--- a/third_party/WebKit/Source/core/layout/LayoutText.h
+++ b/third_party/WebKit/Source/core/layout/LayoutText.h
@@ -72,7 +72,7 @@ class CORE_EXPORT LayoutText : public LayoutObject {
// not the content of the Text node, updating text-transform property
// doesn't re-transform the string.
LayoutText(Node*, PassRefPtr<StringImpl>);
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
~LayoutText() override;
#endif
@@ -343,7 +343,7 @@ inline float LayoutText::hyphenWidth(const Font& font,
DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutText, isText());
-#if !ENABLE(ASSERT)
+#if !DCHECK_IS_ON()
inline void LayoutText::checkConsistency() const {}
#endif

Powered by Google App Engine
This is Rietveld 408576698