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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.cpp

Issue 2807913002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/fonts (Closed)
Patch Set: rebase 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/platform/fonts/shaping/RunSegmenter.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.cpp b/third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.cpp
index 0f1b1c91c33da6dc38a7a99776ca0c6cc342b985..2ff7daf49be57ef8f3ee3881548688e384c517c3 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.cpp
+++ b/third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.cpp
@@ -37,7 +37,7 @@ RunSegmenter::RunSegmenter(const UChar* buffer,
at_end_(false) {}
void RunSegmenter::ConsumeScriptIteratorPastLastSplit() {
- ASSERT(script_run_iterator_);
+ DCHECK(script_run_iterator_);
if (script_run_iterator_position_ <= last_split_ &&
script_run_iterator_position_ < buffer_size_) {
while (script_run_iterator_->Consume(script_run_iterator_position_,
@@ -61,7 +61,7 @@ void RunSegmenter::ConsumeOrientationIteratorPastLastSplit() {
}
void RunSegmenter::ConsumeSymbolsIteratorPastLastSplit() {
- ASSERT(symbols_iterator_);
+ DCHECK(symbols_iterator_);
if (symbols_iterator_position_ <= last_split_ &&
symbols_iterator_position_ < buffer_size_) {
while (

Powered by Google App Engine
This is Rietveld 408576698