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 b0acb93ae827f9027dc7e10cd064062910bb43ba..3f97befc9aa0810466d6d9dfea1f6c4fcd3d2dfa 100644 |
--- a/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp |
+++ b/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp |
@@ -174,7 +174,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) |