Index: third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.cpp |
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.cpp b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.cpp |
index 7e4a4da7f1fb2d2478c9eec2d2ddd8c74373b88c..1ea954159ab71ff906d5826c69de592518efc167 100644 |
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.cpp |
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.cpp |
@@ -71,7 +71,7 @@ inline unsigned countGraphemesInCluster(const UChar* str, |
endIndex = tempIndex; |
} |
uint16_t length = endIndex - startIndex; |
- ASSERT(static_cast<unsigned>(startIndex + length) <= strLength); |
+ DCHECK_LE(static_cast<unsigned>(startIndex + length), strLength); |
TextBreakIterator* cursorPosIterator = |
cursorMovementIterator(&str[startIndex], length); |
@@ -464,7 +464,7 @@ int ShapeResultBuffer::offsetForPosition(const TextRun& run, |
continue; |
int offsetForWord = |
wordResult->offsetForPosition(targetX, includePartialGlyphs); |
- ASSERT(offsetForWord >= 0); |
+ DCHECK_GE(offsetForWord, 0); |
totalOffset += offsetForWord; |
if (targetX >= 0 && targetX <= wordResult->width()) |
return totalOffset; |