Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Unified Diff: third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp

Issue 2858573002: Use FreeType for OpenType Variations on CoreText < 10.12 (Closed)
Patch Set: Use FreeType for OpenType Variations on CoreText < 10.12 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698