12020-08-19 Myles C. Maxfield <mmaxfield@apple.com>
2
3 [Cocoa] CTFontIsSystemUIFont() is faster than CTFontDescriptorIsSystemUIFont()/CTFontCopyFontDescriptor()
4 https://bugs.webkit.org/show_bug.cgi?id=215687
5
6 Reviewed by NOBODY (OOPS!).
7
8 Instead of making the two calls, we can make a single call that has the same effect.
9
10 No new tests because there is no behavior change.
11
12 * platform/graphics/FontPlatformData.h:
13 * platform/graphics/cocoa/FontCacheCoreText.cpp:
14 (WebCore::fontIsSystemFont):
15 * platform/graphics/cocoa/FontCascadeCocoa.mm:
16 (WebCore::FontCascade::primaryFontIsSystemFont const):
17 * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
18 (WebCore::FontPlatformData::FontPlatformData):
19 (WebCore::FontPlatformData::isSystemFont):
20