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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontFallbackList.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/FontFallbackList.h
diff --git a/third_party/WebKit/Source/platform/fonts/FontFallbackList.h b/third_party/WebKit/Source/platform/fonts/FontFallbackList.h
index 57bb2089b6f4e8bd49c42de994110c6bae756de2..3d9896f0380d6cc13e316f82978e099728642c0e 100644
--- a/third_party/WebKit/Source/platform/fonts/FontFallbackList.h
+++ b/third_party/WebKit/Source/platform/fonts/FontFallbackList.h
@@ -63,7 +63,7 @@ class PLATFORM_EXPORT FontFallbackList : public RefCounted<FontFallbackList> {
FallbackListCompositeKey key = compositeKey(fontDescription);
m_shapeCache = FontCache::fontCache()->getShapeCache(key)->weakPtr();
}
- ASSERT(m_shapeCache);
+ DCHECK(m_shapeCache);
if (getFontSelector())
m_shapeCache->clearIfVersionChanged(getFontSelector()->version());
return m_shapeCache.get();
@@ -71,11 +71,11 @@ class PLATFORM_EXPORT FontFallbackList : public RefCounted<FontFallbackList> {
const SimpleFontData* primarySimpleFontData(
const FontDescription& fontDescription) {
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
if (!m_cachedPrimarySimpleFontData) {
m_cachedPrimarySimpleFontData =
determinePrimarySimpleFontData(fontDescription);
- ASSERT(m_cachedPrimarySimpleFontData);
+ DCHECK(m_cachedPrimarySimpleFontData);
}
return m_cachedPrimarySimpleFontData;
}

Powered by Google App Engine
This is Rietveld 408576698