| 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 59cd332406b7539fed65aba3e116a4929c30f836..302d7bf4f524bb365763adcabc58ade96a299fa9 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)
|
|
|