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

Unified Diff: third_party/WebKit/Source/core/css/FontFace.h

Issue 1773633003: [DO NOT COMMIT] Trace events for layout-based First Meaningful Paint detection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
Index: third_party/WebKit/Source/core/css/FontFace.h
diff --git a/third_party/WebKit/Source/core/css/FontFace.h b/third_party/WebKit/Source/core/css/FontFace.h
index c9d51d307ea3aa5204c4755919ec1b7d94248dfc..3ab15078a06d39d08f61a85836ae23764e6850aa 100644
--- a/third_party/WebKit/Source/core/css/FontFace.h
+++ b/third_party/WebKit/Source/core/css/FontFace.h
@@ -50,6 +50,7 @@ class DOMArrayBuffer;
class DOMArrayBufferView;
class Document;
class ExceptionState;
+class FontDescription;
class FontFaceDescriptors;
class StringOrArrayBufferOrArrayBufferView;
class StylePropertySet;
@@ -94,6 +95,8 @@ public:
DOMException* error() const { return m_error; }
FontTraits traits() const;
CSSFontFace* cssFontFace() { return m_cssFontFace.get(); }
+ bool isBlank() const;
+ bool willUseFontData(const FontDescription&, const String& text);
DECLARE_VIRTUAL_TRACE();
@@ -145,6 +148,7 @@ private:
Member<LoadedProperty> m_loadedProperty;
Member<CSSFontFace> m_cssFontFace;
HeapVector<Member<LoadFontCallback>> m_callbacks;
+ unsigned m_charCount = 0;
};
using FontFaceArray = HeapVector<Member<FontFace>>;

Powered by Google App Engine
This is Rietveld 408576698