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); |