Chromium Code Reviews| Index: third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMac.mm |
| diff --git a/third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMac.mm b/third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMac.mm |
| index 99b6d8cc404f7777809a11ab5e40742091bf20b5..615b881013eeb994438b68811aeb2b77a4fba1b9 100644 |
| --- a/third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMac.mm |
| +++ b/third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMac.mm |
| @@ -57,7 +57,7 @@ static CGFloat toYosemiteFontWeight(blink::FontWeight fontWeight) { |
| 0x3fe1eb8520000000, // NSFontWeightHeavy |
| 0x3fe3d70a40000000, // NSFontWeightBlack |
| }; |
| - ASSERT(fontWeight >= 0 && fontWeight <= 8); |
| + DCHECK(fontWeight >= 0 && fontWeight <= 8); |
|
tkent
2017/04/09 23:13:23
Split this into two DCHECKs.
Hwanseung Lee
2017/04/11 22:25:09
Done.
|
| CGFloat* weight = reinterpret_cast<CGFloat*>(&nsFontWeights[fontWeight]); |
| return *weight; |
| } |