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

Unified Diff: third_party/WebKit/Source/core/css/FontSize.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/FontSize.cpp
diff --git a/third_party/WebKit/Source/core/css/FontSize.cpp b/third_party/WebKit/Source/core/css/FontSize.cpp
index a91ca825f254b2fd9954ab7288f9f4f003b40809..d664fc46f2c23b8ab4c95e93c4a54a76a59f7196 100644
--- a/third_party/WebKit/Source/core/css/FontSize.cpp
+++ b/third_party/WebKit/Source/core/css/FontSize.cpp
@@ -141,7 +141,8 @@ static int inline rowFromMediumFontSizeInRange(const Settings* settings,
float FontSize::fontSizeForKeyword(const Document* document,
unsigned keyword,
bool isMonospace) {
- ASSERT(keyword >= 1 && keyword <= 8);
+ DCHECK_GE(keyword, 1u);
+ DCHECK_LE(keyword, 8u);
const Settings* settings = document->settings();
if (!settings)
return 1.0f;
« no previous file with comments | « third_party/WebKit/Source/core/css/FontSize.h ('k') | third_party/WebKit/Source/core/css/MediaQueryEvaluator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698