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

Unified Diff: third_party/WebKit/Source/core/loader/resource/FontResource.h

Issue 2550663002: Allow creating font data while FontResource is revalidating (Closed)
Patch Set: rebase Created 3 years, 10 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/loader/resource/FontResource.h
diff --git a/third_party/WebKit/Source/core/loader/resource/FontResource.h b/third_party/WebKit/Source/core/loader/resource/FontResource.h
index cbe83d76bff2e52e5ae9c6bd84e686c894b39553..de4ffb1a6583d691e222640c8240a4a469da5eb9 100644
--- a/third_party/WebKit/Source/core/loader/resource/FontResource.h
+++ b/third_party/WebKit/Source/core/loader/resource/FontResource.h
@@ -62,6 +62,7 @@ class CORE_EXPORT FontResource final : public Resource {
bool isCORSFailed() const { return m_corsFailed; }
String otsParsingMessage() const { return m_otsParsingMessage; }
+ bool hasCustomFontData() const { return static_cast<bool>(m_fontData); }
bool ensureCustomFontData();
FontPlatformData platformDataFromCustomData(
float size,

Powered by Google App Engine
This is Rietveld 408576698