Index: third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp |
diff --git a/third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp b/third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp |
index 70493006f50a08c7a15fc72e8789726d408a1cbd..3ef9cac311c1f07a2a60e567086388f50ede8f61 100644 |
--- a/third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp |
+++ b/third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp |
@@ -32,6 +32,17 @@ |
namespace blink { |
+FontCache::FontCache() |
+ : m_purgePreventCount(0) |
+{ |
+ if (s_fontManager) { |
+ adopted(s_fontManager); |
+ m_fontManager = s_fontManager; |
+ } else { |
+ m_fontManager = nullptr; |
+ } |
+} |
+ |
void FontCache::getFontForCharacter(UChar32 c, const char* preferredLocale, FontCache::PlatformFallbackFont* fallbackFont) |
{ |
WebFallbackFont webFallbackFont; |