| Index: third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp b/third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp
|
| index bbac0964f7a76c971ba814f134c25fb7e6503cf9..a80015798a09464cca3ef9a959594eab792433cc 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp
|
| @@ -167,6 +167,8 @@ CTFontRef FontPlatformData::CtFont() const {
|
| };
|
|
|
| CGFontRef FontPlatformData::CgFont() const {
|
| + if (!CtFont())
|
| + return nullptr;
|
| return CTFontCopyGraphicsFont(CtFont(), 0);
|
| }
|
| #endif
|
|
|