[macOS Big Sur] CGFontRenderingGetFontSmoothingDisabled() is no longer useful
Created attachment 408870 [details] Patch
Created attachment 408871 [details] Patch
Created attachment 408876 [details] Patch
Created attachment 408877 [details] Patch
<rdar://problem/68657748>
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] 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,