| 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 32bba2fa2cf377ca67cb046cd63ff03dba7646ac..2745db411f495bbdf8e474623d19db1802815b67 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMac.mm
|
| +++ b/third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMac.mm
|
| @@ -57,7 +57,8 @@ static CGFloat toYosemiteFontWeight(blink::FontWeight fontWeight) {
|
| 0x3fe1eb8520000000, // NSFontWeightHeavy
|
| 0x3fe3d70a40000000, // NSFontWeightBlack
|
| };
|
| - ASSERT(fontWeight >= 0 && fontWeight <= 8);
|
| + DCHECK_GE(fontWeight, 0);
|
| + DCHECK_LE(fontWeight, 8);
|
| CGFloat* weight = reinterpret_cast<CGFloat*>(&nsFontWeights[fontWeight]);
|
| return *weight;
|
| }
|
|
|