| Index: third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp b/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp
|
| index 9cba858e6da91e7a7a506e736c3084783018e84d..4f0a55d5a45e8bc08f42a3b38b8c45cc0ea2c1c1 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp
|
| @@ -242,7 +242,8 @@ PassRefPtr<SkTypeface> FontCache::createTypeface(const FontDescription& fontDesc
|
|
|
| // FIXME: Use m_fontManager, SkFontStyle and matchFamilyStyle instead of
|
| // CreateFromName on all platforms.
|
| - return adoptRef(SkTypeface::CreateFromName(name.data(), static_cast<SkTypeface::Style>(style)));
|
| + const SkFontStyle fontStyle(style);
|
| + return adoptRef(SkTypeface::CreateFromName(name.data(), fontStyle));
|
| }
|
|
|
| #if !OS(WIN)
|
|
|