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

Unified Diff: third_party/WebKit/Source/platform/fonts/Font.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
Index: third_party/WebKit/Source/platform/fonts/Font.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/Font.cpp b/third_party/WebKit/Source/platform/fonts/Font.cpp
index bcbf112864165784d4d0f8979daef43fba18c1af..81d41846cb4446c4e31d40ed238825489ad45a26 100644
--- a/third_party/WebKit/Source/platform/fonts/Font.cpp
+++ b/third_party/WebKit/Source/platform/fonts/Font.cpp
@@ -162,7 +162,8 @@ bool Font::DrawBidiText(PaintCanvas* canvas,
// sub-run painting is not supported for Bidi text.
const TextRun& run = run_info.run;
- ASSERT((run_info.from == 0) && (run_info.to == run.length()));
+ DCHECK_EQ(run_info.from, 0u);
+ DCHECK_EQ(run_info.to, run.length());
BidiResolver<TextRunIterator, BidiCharacterRun> bidi_resolver;
bidi_resolver.SetStatus(
BidiStatus(run.Direction(), run.DirectionalOverride()));
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/Font.h ('k') | third_party/WebKit/Source/platform/fonts/FontCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698