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

Unified Diff: Source/core/fetch/FontResource.h

Issue 983973004: Provide user friendly messages for OTS parsing of fonts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase patch Created 5 years, 6 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
« no previous file with comments | « Source/core/css/FontLoader.cpp ('k') | Source/core/fetch/FontResource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/FontResource.h
diff --git a/Source/core/fetch/FontResource.h b/Source/core/fetch/FontResource.h
index e5606a9446c50e533bb874c7e47d8dfb72ed8b70..40b2e03aa1a50500af7e3289d5c0671025405801 100644
--- a/Source/core/fetch/FontResource.h
+++ b/Source/core/fetch/FontResource.h
@@ -61,6 +61,7 @@ public:
void setCORSFailed() override { m_corsFailed = true; }
bool isCORSFailed() const { return m_corsFailed; }
+ String otsParsingMessage() const { return m_otsParsingMessage; }
bool ensureCustomFontData();
FontPlatformData platformDataFromCustomData(float size, bool bold, bool italic, FontOrientation = FontOrientation::Horizontal);
@@ -87,6 +88,7 @@ private:
enum State { Unloaded, LoadScheduled, LoadInitiated };
OwnPtr<FontCustomPlatformData> m_fontData;
+ String m_otsParsingMessage;
State m_state;
bool m_exceedsFontLoadWaitLimit;
bool m_corsFailed;
« no previous file with comments | « Source/core/css/FontLoader.cpp ('k') | Source/core/fetch/FontResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698