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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontPlatformData.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/FontPlatformData.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp b/third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp
index d65086618cc88e39af3ef943d6d02bcddbae091a..845eff6e3770db2b2a077175176f9ca611316a55 100644
--- a/third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp
+++ b/third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp
@@ -223,7 +223,7 @@ SkFontID FontPlatformData::uniqueID() const {
}
String FontPlatformData::fontFamilyName() const {
- ASSERT(this->typeface());
+ DCHECK(this->typeface());
SkTypeface::LocalizedStrings* fontFamilyIterator =
this->typeface()->createFamilyNameIterator();
SkTypeface::LocalizedString localizedString;
@@ -266,9 +266,9 @@ bool FontPlatformData::hasSpaceInLigaturesOrKerning(
return false;
hb_font_t* font = hbFace->getScaledFont();
- ASSERT(font);
+ DCHECK(font);
hb_face_t* face = hb_font_get_face(font);
- ASSERT(face);
+ DCHECK(face);
hb_codepoint_t space;
// If the space glyph isn't present in the font then each space character

Powered by Google App Engine
This is Rietveld 408576698