Index: Source/platform/fonts/skia/SimpleFontDataSkia.cpp |
diff --git a/Source/platform/fonts/skia/SimpleFontDataSkia.cpp b/Source/platform/fonts/skia/SimpleFontDataSkia.cpp |
index 99396f46504c0d6c4b9b5114e5ae108a68cba6c6..748bed89c36b7bb1cf9d647b8fb77c1a10932e40 100644 |
--- a/Source/platform/fonts/skia/SimpleFontDataSkia.cpp |
+++ b/Source/platform/fonts/skia/SimpleFontDataSkia.cpp |
@@ -198,7 +198,7 @@ void SimpleFontData::platformDestroy() |
PassRefPtr<SimpleFontData> SimpleFontData::platformCreateScaledFontData(const FontDescription& fontDescription, float scaleFactor) const |
{ |
const float scaledSize = lroundf(fontDescription.computedSize() * scaleFactor); |
- return SimpleFontData::create(FontPlatformData(m_platformData, scaledSize), isCustomFont() ? CustomFontData::create(false) : 0); |
+ return SimpleFontData::create(FontPlatformData(m_platformData, scaledSize), isCustomFont() ? CustomFontData::create(false) : nullptr); |
} |
void SimpleFontData::determinePitch() |