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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp

Issue 2770123003: Replace ASSERT with DCHECK in core/layout/ excluding subdirs (Closed)
Patch Set: Split some DCHECKs and add DCHECK_ops wherever possible Created 3 years, 8 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/LayoutTextFragment.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp b/third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp
index 3f11242b54cd0d467d3c2a522b0994f63b62be22..787b308ee18bb5db53a48f483892b94dc06581b6 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp
@@ -48,7 +48,7 @@ LayoutTextFragment::LayoutTextFragment(Node* node, StringImpl* str)
: LayoutTextFragment(node, str, 0, str ? str->length() : 0) {}
LayoutTextFragment::~LayoutTextFragment() {
- ASSERT(!m_firstLetterPseudoElement);
+ DCHECK(!m_firstLetterPseudoElement);
}
LayoutTextFragment* LayoutTextFragment::createAnonymous(PseudoElement& pseudo,
@@ -102,7 +102,7 @@ void LayoutTextFragment::setText(PassRefPtr<StringImpl> text, bool force) {
// first letter pseudo element to reattach itself so it can re-calculate the
// correct first-letter settings.
if (isRemainingTextLayoutObject()) {
- ASSERT(firstLetterPseudoElement());
+ DCHECK(firstLetterPseudoElement());
firstLetterPseudoElement()->updateTextFragments();
}
}

Powered by Google App Engine
This is Rietveld 408576698