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

Unified Diff: third_party/WebKit/Source/platform/fonts/opentype/OpenTypeVerticalData.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/opentype/OpenTypeVerticalData.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeVerticalData.cpp b/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeVerticalData.cpp
index 4fa03457897f5a8b02de19df9aeb93f36d98e585..53792557c39716615316053d988a75bba8e93ef5 100644
--- a/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeVerticalData.cpp
+++ b/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeVerticalData.cpp
@@ -245,7 +245,7 @@ void OpenTypeVerticalData::GetVerticalTranslationsForGlyphs(
size_t count,
float* out_xy_array) const {
size_t count_widths = advance_widths_.size();
- ASSERT(count_widths > 0);
+ DCHECK_GT(count_widths, 0u);
const FontMetrics& metrics = font->GetFontMetrics();
float size_per_unit = font->SizePerUnit();
float ascent = metrics.Ascent();

Powered by Google App Engine
This is Rietveld 408576698