| Index: third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp b/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp
|
| index 7d6df0667c998bac13fee09889755f54a39c2cb1..3aab5b09f53dcdd49b60e705a876c4b9ab55f778 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp
|
| @@ -45,11 +45,13 @@
|
| const hb_tag_t kGSUB = HB_TAG('G', 'S', 'U', 'B');
|
| unsigned scriptIndex = 0;
|
| // Identify for which script a GSUB table is available.
|
| - hb_ot_layout_table_choose_script(face,
|
| + if (!hb_ot_layout_table_choose_script(face,
|
| kGSUB,
|
| scriptTags,
|
| &scriptIndex,
|
| - nullptr);
|
| + nullptr)) {
|
| + return false;
|
| + }
|
|
|
| if (hb_ot_layout_language_find_feature(face, kGSUB,
|
| scriptIndex,
|
|
|