Chromium Code Reviews| Index: Source/platform/fonts/FontTraitsMask.h |
| diff --git a/Source/platform/fonts/FontTraitsMask.h b/Source/platform/fonts/FontTraitsMask.h |
| index b95d131ff5dcef5e788634dd078ecd21d36ebeda..69f1c801cef1fdf88db1a6fbc3c7a9e97139eae2 100644 |
| --- a/Source/platform/fonts/FontTraitsMask.h |
| +++ b/Source/platform/fonts/FontTraitsMask.h |
| @@ -42,6 +42,10 @@ enum { |
| FontWeight700Bit, |
| FontWeight800Bit, |
| FontWeight900Bit, |
| + FontStretchBit1, |
| + FontStretchBit2, |
| + FontStretchBit3, |
| + FontStretchBit4, |
| FontTraitsMaskWidth |
| }; |
| @@ -63,7 +67,12 @@ enum FontTraitsMask { |
| FontWeight700Mask = 1 << FontWeight700Bit, |
| FontWeight800Mask = 1 << FontWeight800Bit, |
| FontWeight900Mask = 1 << FontWeight900Bit, |
| - FontWeightMask = FontWeight100Mask | FontWeight200Mask | FontWeight300Mask | FontWeight400Mask | FontWeight500Mask | FontWeight600Mask | FontWeight700Mask | FontWeight800Mask | FontWeight900Mask |
| + FontWeightMask = FontWeight100Mask | FontWeight200Mask | FontWeight300Mask | FontWeight400Mask | FontWeight500Mask | FontWeight600Mask | FontWeight700Mask | FontWeight800Mask | FontWeight900Mask, |
|
eseidel
2014/03/04 02:11:26
Why are these stored this way if you can only have
|
| + FontStretchBit1Mask = 1 << FontStretchBit1, |
|
eseidel
2014/03/04 08:58:27
Why have separate constants for these? Why not ju
|
| + FontStretchBit2Mask = 1 << FontStretchBit2, |
| + FontStretchBit3Mask = 1 << FontStretchBit3, |
| + FontStretchBit4Mask = 1 << FontStretchBit4, |
| + FontStretchMask = FontStretchBit1Mask | FontStretchBit2Mask | FontStretchBit3Mask | FontStretchBit4Mask |
| }; |
| } // namespace WebCore |