| Index: third_party/WebKit/Source/platform/fonts/FontCache.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/FontCache.cpp b/third_party/WebKit/Source/platform/fonts/FontCache.cpp
|
| index 46d0b1d1b69c1aa11db43f658d7d04ac3a6ff66c..64be67e54dc858a517db43671fca350bb1015644 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/FontCache.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/FontCache.cpp
|
| @@ -233,12 +233,9 @@ FontVerticalDataCache& fontVerticalDataCacheInstance() {
|
| return fontVerticalDataCache;
|
| }
|
|
|
| -void FontCache::setFontManager(const sk_sp<SkFontMgr>& fontManager) {
|
| +void FontCache::setFontManager(sk_sp<SkFontMgr> fontManager) {
|
| DCHECK(!s_staticFontManager);
|
| - s_staticFontManager = fontManager.get();
|
| - // Explicitly AddRef since we're going to hold on to the object for the life
|
| - // of the program.
|
| - s_staticFontManager->ref();
|
| + s_staticFontManager = fontManager.release();
|
| }
|
|
|
| PassRefPtr<OpenTypeVerticalData> FontCache::getVerticalData(
|
|
|