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

Unified Diff: third_party/WebKit/Source/platform/fonts/win/FontFallbackWin.cpp

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
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/fonts/win/FontFallbackWin.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/win/FontFallbackWin.cpp b/third_party/WebKit/Source/platform/fonts/win/FontFallbackWin.cpp
index 26b7bca3be00efc7112bc69413e69a2333bf758a..3874415c67a0cce36eeb66bc09513b9e03ac9daa 100644
--- a/third_party/WebKit/Source/platform/fonts/win/FontFallbackWin.cpp
+++ b/third_party/WebKit/Source/platform/fonts/win/FontFallbackWin.cpp
@@ -451,7 +451,7 @@ const UChar* GetFontFamilyForScript(UScriptCode script,
if (script == USCRIPT_INVALID_CODE)
return 0;
- ASSERT(script < USCRIPT_CODE_LIMIT);
+ DCHECK_LT(script, USCRIPT_CODE_LIMIT);
if (generic == FontDescription::kMonospaceFamily) {
const UChar* monospace_family = FindMonospaceFontForScript(script);
if (monospace_family)
@@ -476,8 +476,8 @@ const UChar* GetFallbackFamily(UChar32 character,
UScriptCode* script_checked,
FontFallbackPriority fallback_priority,
SkFontMgr* font_manager) {
- ASSERT(character);
- ASSERT(font_manager);
+ DCHECK(character);
+ DCHECK(font_manager);
UBlockCode block = fallback_priority == FontFallbackPriority::kEmojiEmoji
? UBLOCK_EMOTICONS
: ublock_getCode(character);
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698