diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-02-13 16:23:34 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-02-14 10:37:21 +0000 |
commit | 38a9a29f4f9436cace7f0e7abf9c586057df8a4e (patch) | |
tree | c4e8c458dc595bc0ddb435708fa2229edfd00bd4 /chromium/third_party/blink/renderer/platform/fonts/opentype/open_type_caps_support.h | |
parent | e684a3455bcc29a6e3e66a004e352dea4e1141e7 (diff) | |
download | qtwebengine-chromium-38a9a29f4f9436cace7f0e7abf9c586057df8a4e.tar.gz |
BASELINE: Update Chromium to 73.0.3683.37
Change-Id: I08c9af2948b645f671e5d933aca1f7a90ea372f2
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/fonts/opentype/open_type_caps_support.h')
-rw-r--r-- | chromium/third_party/blink/renderer/platform/fonts/opentype/open_type_caps_support.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/platform/fonts/opentype/open_type_caps_support.h b/chromium/third_party/blink/renderer/platform/fonts/opentype/open_type_caps_support.h index 841e465c8a1..4f53191116f 100644 --- a/chromium/third_party/blink/renderer/platform/fonts/opentype/open_type_caps_support.h +++ b/chromium/third_party/blink/renderer/platform/fonts/opentype/open_type_caps_support.h @@ -29,7 +29,13 @@ class PLATFORM_EXPORT OpenTypeCapsSupport { CaseMapIntend NeedsCaseChange(SmallCapsIterator::SmallCapsBehavior run_case); private: + enum class FontFormat { kUndetermined, kOpenType, kAat }; + // Lazily intializes font_format_ when needed and returns the format of the + // underlying HarfBuzzFace/Font. + FontFormat GetFontFormat() const; void DetermineFontSupport(hb_script_t); + bool SupportsFeature(hb_script_t, uint32_t tag) const; + bool SupportsAatFeature(uint32_t tag) const; bool SupportsOpenTypeFeature(hb_script_t, uint32_t tag) const; const HarfBuzzFace* harfbuzz_face_; @@ -50,6 +56,7 @@ class PLATFORM_EXPORT OpenTypeCapsSupport { FontSupport font_support_; CapsSynthesis caps_synthesis_; + mutable FontFormat font_format_; }; }; // namespace blink |