Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Unified Diff: third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp

Issue 2040923002: Addendum to OpenType feature detection simplification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3aab5b09f53dcdd49b60e705a876c4b9ab55f778..7d6df0667c998bac13fee09889755f54a39c2cb1 100644
--- a/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp
+++ b/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp
@@ -45,13 +45,11 @@ bool OpenTypeCapsSupport::supportsOpenTypeFeature(
const hb_tag_t kGSUB = HB_TAG('G', 'S', 'U', 'B');
unsigned scriptIndex = 0;
// Identify for which script a GSUB table is available.
- if (!hb_ot_layout_table_choose_script(face,
+ hb_ot_layout_table_choose_script(face,
kGSUB,
scriptTags,
&scriptIndex,
- nullptr)) {
- return false;
- }
+ nullptr);
if (hb_ot_layout_language_find_feature(face, kGSUB,
scriptIndex,
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698