Bug 216588

Summary: [macOS Big Sur] CGFontRenderingGetFontSmoothingDisabled() is no longer useful
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: New BugsAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, cmarcelo, darin, ews-watchlist, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

Description Myles C. Maxfield 2020-09-15 15:59:14 PDT
[macOS Big Sur] CGFontRenderingGetFontSmoothingDisabled() is no longer useful
Comment 1 Myles C. Maxfield 2020-09-15 16:00:09 PDT
Created attachment 408870 [details]
Patch
Comment 2 Myles C. Maxfield 2020-09-15 16:00:32 PDT
Created attachment 408871 [details]
Patch
Comment 3 Myles C. Maxfield 2020-09-15 16:11:30 PDT
Created attachment 408876 [details]
Patch
Comment 4 Myles C. Maxfield 2020-09-15 16:12:03 PDT
Created attachment 408877 [details]
Patch
Comment 5 Myles C. Maxfield 2020-09-15 16:22:25 PDT
<rdar://problem/68657748>
Comment 6 EWS 2020-09-15 17:06:51 PDT
Committed r267116: <https://trac.webkit.org/changeset/267116>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 408877 [details].
Comment 7 Darin Adler 2020-09-20 11:18:38 PDT
Comment on attachment 408877 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=408877&action=review

> Source/WTF/ChangeLog:9
> +        We can eliminate WebKit's use of it to eventually phase it out entirely.

But this patch doesn't eliminate WebKit’s use of it.

Maybe you meant to say on newer versions of macOS?

> Source/WTF/wtf/PlatformHave.h:349
> -#if PLATFORM(MAC)
> +#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 110000
>  #define HAVE_CG_FONT_RENDERING_GET_FONT_SMOOTHING_DISABLED 1
>  #endif

Is it true that newer versions of macOS don’t have this function? If not, then it’s not great to have this be a counterfactual. I would suggest changing it to USE if it’s going to be a policy flag now instead of a function availability flag.

> Source/WebCore/platform/graphics/coretext/FontCascadeCoreText.cpp:-60
> -#elif PLATFORM(MAC)
> -    return true;

Nothing in the change log explains this change. I assume it’s helpful to return false for isSubpixelAntialiasingAvailable on newer macOS, but I, for one, can’t figure out why,