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/FontFaceCreationParams.h

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/FontFaceCreationParams.h
diff --git a/third_party/WebKit/Source/platform/fonts/FontFaceCreationParams.h b/third_party/WebKit/Source/platform/fonts/FontFaceCreationParams.h
index 3e47d4e81e465227f2f48bc7aa5206ce154cc453..653c274ff9644e79b959bbc3df96903175cd38f6 100644
--- a/third_party/WebKit/Source/platform/fonts/FontFaceCreationParams.h
+++ b/third_party/WebKit/Source/platform/fonts/FontFaceCreationParams.h
@@ -79,19 +79,19 @@ class FontFaceCreationParams {
FontFaceCreationType creationType() const { return m_creationType; }
AtomicString family() const {
- ASSERT(m_creationType == CreateFontByFamily);
+ DCHECK_EQ(m_creationType, CreateFontByFamily);
return m_family;
}
CString filename() const {
- ASSERT(m_creationType == CreateFontByFciIdAndTtcIndex);
+ DCHECK_EQ(m_creationType, CreateFontByFciIdAndTtcIndex);
return m_filename;
}
int fontconfigInterfaceId() const {
- ASSERT(m_creationType == CreateFontByFciIdAndTtcIndex);
+ DCHECK_EQ(m_creationType, CreateFontByFciIdAndTtcIndex);
return m_fontconfigInterfaceId;
}
int ttcIndex() const {
- ASSERT(m_creationType == CreateFontByFciIdAndTtcIndex);
+ DCHECK_EQ(m_creationType, CreateFontByFciIdAndTtcIndex);
return m_ttcIndex;
}

Powered by Google App Engine
This is Rietveld 408576698