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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontFaceCreationParams.h

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/FontFaceCreationParams.h
diff --git a/third_party/WebKit/Source/platform/fonts/FontFaceCreationParams.h b/third_party/WebKit/Source/platform/fonts/FontFaceCreationParams.h
index d8998837138a56edac80c1665187097db102dbc9..80facb8825d577d8ffab3d1b9048b8055a291262 100644
--- a/third_party/WebKit/Source/platform/fonts/FontFaceCreationParams.h
+++ b/third_party/WebKit/Source/platform/fonts/FontFaceCreationParams.h
@@ -82,19 +82,19 @@ class FontFaceCreationParams {
FontFaceCreationType CreationType() const { return creation_type_; }
AtomicString Family() const {
- ASSERT(creation_type_ == kCreateFontByFamily);
+ DCHECK_EQ(creation_type_, kCreateFontByFamily);
return family_;
}
CString Filename() const {
- ASSERT(creation_type_ == kCreateFontByFciIdAndTtcIndex);
+ DCHECK_EQ(creation_type_, kCreateFontByFciIdAndTtcIndex);
return filename_;
}
int FontconfigInterfaceId() const {
- ASSERT(creation_type_ == kCreateFontByFciIdAndTtcIndex);
+ DCHECK_EQ(creation_type_, kCreateFontByFciIdAndTtcIndex);
return fontconfig_interface_id_;
}
int TtcIndex() const {
- ASSERT(creation_type_ == kCreateFontByFciIdAndTtcIndex);
+ DCHECK_EQ(creation_type_, kCreateFontByFciIdAndTtcIndex);
return ttc_index_;
}

Powered by Google App Engine
This is Rietveld 408576698