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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/ShapeResultSpacing.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/ShapeResultSpacing.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultSpacing.cpp b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultSpacing.cpp
index 153fb4ad8e19c9a04e2c8ca8cd9db605c375fd0b..4f9c362bea108eca4b1d720a1ba00b43018eaffd 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultSpacing.cpp
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultSpacing.cpp
@@ -42,7 +42,7 @@ ShapeResultSpacing::ShapeResultSpacing(const TextRun& run,
expansion_opportunity_count_ =
Character::ExpansionOpportunityCount(run, is_after_expansion);
if (is_after_expansion && !run.AllowsTrailingExpansion()) {
- ASSERT(expansion_opportunity_count_ > 0);
+ DCHECK_GT(expansion_opportunity_count_, 0u);
--expansion_opportunity_count_;
}
@@ -52,7 +52,7 @@ ShapeResultSpacing::ShapeResultSpacing(const TextRun& run,
float ShapeResultSpacing::NextExpansion() {
if (!expansion_opportunity_count_) {
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698