Chromium Code Reviews| 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..5ba98f2446ded4adb1fda9dca1b030e8ce9c4dab 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, static_cast<unsigned>(1)); |
|
tkent
2017/03/28 14:44:55
static_cast<unsigned>(1) -> 1u
nikhil.sahni
2017/03/30 12:17:57
Done.
|
| + DCHECK_LE(keyword, static_cast<unsigned>(8)); |
|
tkent
2017/03/28 14:44:55
static_cast<unsigned>(8) -> 8u
nikhil.sahni
2017/03/30 12:17:57
Done.
|
| const Settings* settings = document->settings(); |
| if (!settings) |
| return 1.0f; |