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

Unified Diff: third_party/WebKit/Source/core/layout/TextRunConstructor.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/TextRunConstructor.cpp
diff --git a/third_party/WebKit/Source/core/layout/TextRunConstructor.cpp b/third_party/WebKit/Source/core/layout/TextRunConstructor.cpp
index c0ed240d27668c448e241241bedbadf20d6ad1d6..39c24337ed466285551fa53ccbf31e7e3d05d75c 100644
--- a/third_party/WebKit/Source/core/layout/TextRunConstructor.cpp
+++ b/third_party/WebKit/Source/core/layout/TextRunConstructor.cpp
@@ -96,7 +96,7 @@ TextRun constructTextRun(const Font& font,
unsigned length,
const ComputedStyle& style,
TextDirection direction) {
- ASSERT(offset + length <= text->textLength());
+ DCHECK_LE(offset + length, text->textLength());
if (text->hasEmptyText())
return constructTextRunInternal(font, static_cast<const LChar*>(nullptr), 0,
style, direction);

Powered by Google App Engine
This is Rietveld 408576698