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

Unified Diff: third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp

Issue 2618443002: Remove use of legacy SkFontMgr factories. (Closed)
Patch Set: Address comments. Created 3 years, 11 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/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 4b51489187fbea7431d364d8964d8bc4c04ec452..a96b8bacd6ee06673d77289d17e95ae51295ba1f 100644
--- a/third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp
+++ b/third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp
@@ -34,14 +34,8 @@
namespace blink {
-FontCache::FontCache() : m_purgePreventCount(0) {
- if (s_staticFontManager) {
- adopted(s_staticFontManager);
- m_fontManager = sk_ref_sp(s_staticFontManager);
- } else {
- m_fontManager = nullptr;
- }
-}
+FontCache::FontCache()
+ : m_purgePreventCount(0), m_fontManager(sk_ref_sp(s_staticFontManager)) {}
static AtomicString& mutableSystemFontFamily() {
DEFINE_STATIC_LOCAL(AtomicString, systemFontFamily, ());

Powered by Google App Engine
This is Rietveld 408576698