From 38a9a29f4f9436cace7f0e7abf9c586057df8a4e Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 13 Feb 2019 16:23:34 +0100 Subject: BASELINE: Update Chromium to 73.0.3683.37 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I08c9af2948b645f671e5d933aca1f7a90ea372f2 Reviewed-by: Michael BrĂ¼ning --- .../renderer/platform/fonts/opentype/open_type_caps_support.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'chromium/third_party/blink/renderer/platform/fonts/opentype/open_type_caps_support.h') 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 -- cgit v1.2.1