| Summary: | [Cocoa] CTFontIsSystemUIFont() is faster than CTFontDescriptorIsSystemUIFont()/CTFontCopyFontDescriptor() | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Myles C. Maxfield <mmaxfield> | ||||||||||
| Component: | New Bugs | Assignee: | Myles C. Maxfield <mmaxfield> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | benjamin, cdumez, cmarcelo, darin, ews-watchlist, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Myles C. Maxfield
2020-08-19 21:40:03 PDT
Created attachment 406915 [details]
Patch
Created attachment 406916 [details]
Patch
Comment on attachment 406916 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=406916&action=review > Source/WTF/wtf/PlatformUse.h:310 > +#if PLATFORM(COCOA) && !(PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 110000) > +#define USE_CTFONTISSYSTEMUIFONT 1 > +#endif Is this a USE or a HAVE? > Source/WebCore/platform/graphics/FontPlatformData.h:132 > + static bool isSystemFont(CTFontRef); Does this benefit from being a member function? Why not just a "free function" in this file? Created attachment 408075 [details]
Patch for committing
Created attachment 408076 [details]
Patch for committing
Committed r266667: <https://trac.webkit.org/changeset/266667> All reviewed patches have been landed. Closing bug and clearing flags on attachment 408076 [details]. |