diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/css/css_font_face.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/css/css_font_face.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/css/css_font_face.h b/chromium/third_party/blink/renderer/core/css/css_font_face.h index 1c725193245..7727f1f7f98 100644 --- a/chromium/third_party/blink/renderer/core/css/css_font_face.h +++ b/chromium/third_party/blink/renderer/core/css/css_font_face.h @@ -80,6 +80,11 @@ class CORE_EXPORT CSSFontFace final : public GarbageCollected<CSSFontFace> { void Load(); void Load(const FontDescription&); + // Recalculate the font loading timeline period for the font face. + // https://drafts.csswg.org/css-fonts-4/#font-display-timeline + // Returns true if the display period is changed. + bool UpdatePeriod(); + bool HadBlankText() { return IsValid() && sources_.front()->HadBlankText(); } void Trace(Visitor*); |