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

Unified Diff: third_party/WebKit/Source/core/css/CSSFontFace.cpp

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: All windows error are Resolved now. Created 3 years, 9 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/core/css/CSSFontFace.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSFontFace.cpp b/third_party/WebKit/Source/core/css/CSSFontFace.cpp
index 2443bf39cb96b786fa2efb75aad1b5808adfb334..9db4ab1daae179f3ad8f1e5e09b5694406bad2a8 100644
--- a/third_party/WebKit/Source/core/css/CSSFontFace.cpp
+++ b/third_party/WebKit/Source/core/css/CSSFontFace.cpp
@@ -44,7 +44,7 @@ void CSSFontFace::addSource(CSSFontFaceSource* source) {
void CSSFontFace::setSegmentedFontFace(
CSSSegmentedFontFace* segmentedFontFace) {
- ASSERT(!m_segmentedFontFace);
+ DCHECK(!m_segmentedFontFace);
m_segmentedFontFace = segmentedFontFace;
}
@@ -151,7 +151,7 @@ void CSSFontFace::load() {
void CSSFontFace::load(const FontDescription& fontDescription) {
if (loadStatus() == FontFace::Unloaded)
setLoadStatus(FontFace::Loading);
- ASSERT(loadStatus() == FontFace::Loading);
+ DCHECK_EQ(loadStatus(), FontFace::Loading);
while (!m_sources.isEmpty()) {
Member<CSSFontFaceSource>& source = m_sources.front();
@@ -175,7 +175,7 @@ void CSSFontFace::load(const FontDescription& fontDescription) {
}
void CSSFontFace::setLoadStatus(FontFace::LoadStatusType newStatus) {
- ASSERT(m_fontFace);
+ DCHECK(m_fontFace);
if (newStatus == FontFace::Error)
m_fontFace->setError();
else
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontFace.h ('k') | third_party/WebKit/Source/core/css/CSSFontFaceRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698