[macOS Big Sur] CGFontRenderingGetFontSmoothingDisabled() is no longer useful
Created attachment 408870 [details]
Created attachment 408871 [details]
Created attachment 408876 [details]
Created attachment 408877 [details]
Committed r267116: <https://trac.webkit.org/changeset/267116>
All reviewed patches have been landed. Closing bug and clearing flags on attachment 408877 [details].
Comment on attachment 408877 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=408877&action=review
> + 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?
> -#if PLATFORM(MAC)
> +#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 110000
> #define HAVE_CG_FONT_RENDERING_GET_FONT_SMOOTHING_DISABLED 1
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.
> -#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,