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

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: 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/FontFallbackList.h
diff --git a/third_party/WebKit/Source/platform/fonts/FontFallbackList.h b/third_party/WebKit/Source/platform/fonts/FontFallbackList.h
index eb31073e31defbafeffebc714c7cd0f6221c59f1..31355570a8968997c5049991e757b20dc7639306 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> {
shape_cache_ =
FontCache::GetFontCache()->GetShapeCache(key)->GetWeakPtr();
}
- ASSERT(shape_cache_);
+ DCHECK(shape_cache_);
if (GetFontSelector())
shape_cache_->ClearIfVersionChanged(GetFontSelector()->Version());
return shape_cache_.get();
@@ -71,11 +71,11 @@ class PLATFORM_EXPORT FontFallbackList : public RefCounted<FontFallbackList> {
const SimpleFontData* PrimarySimpleFontData(
const FontDescription& font_description) {
- ASSERT(IsMainThread());
+ DCHECK(IsMainThread());
if (!cached_primary_simple_font_data_) {
cached_primary_simple_font_data_ =
DeterminePrimarySimpleFontData(font_description);
- ASSERT(cached_primary_simple_font_data_);
+ DCHECK(cached_primary_simple_font_data_);
}
return cached_primary_simple_font_data_;
}

Powered by Google App Engine
This is Rietveld 408576698