| Index: pdf/pdfium/pdfium_engine.cc
|
| diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
|
| index 8c49b9dc0bc67a56ed1bb3732a394ae62ec88ccb..679719f2f9683bbe118f8789c7f6efa1b585d0be 100644
|
| --- a/pdf/pdfium/pdfium_engine.cc
|
| +++ b/pdf/pdfium/pdfium_engine.cc
|
| @@ -135,10 +135,10 @@ struct PDFFontSubstitution {
|
| };
|
|
|
| PP_BrowserFont_Trusted_Weight WeightToBrowserFontTrustedWeight(int weight) {
|
| - COMPILE_ASSERT(PP_BROWSERFONT_TRUSTED_WEIGHT_100 == 0,
|
| - PP_BrowserFont_Trusted_Weight_Min);
|
| - COMPILE_ASSERT(PP_BROWSERFONT_TRUSTED_WEIGHT_900 == 8,
|
| - PP_BrowserFont_Trusted_Weight_Max);
|
| + static_assert(PP_BROWSERFONT_TRUSTED_WEIGHT_100 == 0,
|
| + "PP_BrowserFont_Trusted_Weight min");
|
| + static_assert(PP_BROWSERFONT_TRUSTED_WEIGHT_900 == 8,
|
| + "PP_BrowserFont_Trusted_Weight max");
|
| const int kMinimumWeight = 100;
|
| const int kMaximumWeight = 900;
|
| int normalized_weight =
|
|
|