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

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: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/fonts 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 3f5674690f899584ce0e17f89b81b85162d47b87..14c3bcc0ae9b2b785bb1bbfb63c6ef7ace7d6d84 100644
--- a/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeVerticalData.cpp
+++ b/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeVerticalData.cpp
@@ -244,7 +244,7 @@ void OpenTypeVerticalData::getVerticalTranslationsForGlyphs(
size_t count,
float* outXYArray) const {
size_t countWidths = m_advanceWidths.size();
- ASSERT(countWidths > 0);
+ DCHECK_GT(countWidths, 0u);
const FontMetrics& metrics = font->getFontMetrics();
float sizePerUnit = font->sizePerUnit();
float ascent = metrics.ascent();

Powered by Google App Engine
This is Rietveld 408576698