Index: Source/core/platform/graphics/FontFallbackList.cpp |
diff --git a/Source/core/platform/graphics/FontFallbackList.cpp b/Source/core/platform/graphics/FontFallbackList.cpp |
index e3405e58e06a26528442f22738945c7f437445d0..a68e8ba94307be88aa7e6dae2ce01d946d256566 100644 |
--- a/Source/core/platform/graphics/FontFallbackList.cpp |
+++ b/Source/core/platform/graphics/FontFallbackList.cpp |
@@ -88,6 +88,21 @@ void FontFallbackList::determinePitch(const Font* font) const |
} |
} |
+bool FontFallbackList::loadingCustomFonts() const |
+{ |
+ if (m_loadingCustomFonts) |
+ return true; |
+ |
+ unsigned numFonts = m_fontList.size(); |
+ for (unsigned i = 0; i < numFonts; ++i) { |
+ if (m_fontList[i]->isCustomFont() && m_fontList[i]->isLoading()) { |
+ m_loadingCustomFonts = true; |
+ return true; |
+ } |
+ } |
+ return false; |
+} |
+ |
const FontData* FontFallbackList::fontDataAt(const Font* font, unsigned realizedFontIndex) const |
{ |
if (realizedFontIndex < m_fontList.size()) |