Title: [268480] branches/safari-610-branch/Source
Revision
268480
Author
alanc...@apple.com
Date
2020-10-14 13:20:26 -0700 (Wed, 14 Oct 2020)

Log Message

Cherry-pick r267116. rdar://problem/70267318

    Integrator's note: Source/WebCore/platform/graphics/cocoa/FontCascadeCocoa.mm was altered instead of
    Source/WebCore/platform/graphics/coretext/FontCascadeCoreText.cpp.

    [macOS Big Sur] CGFontRenderingGetFontSmoothingDisabled() is no longer useful
    https://bugs.webkit.org/show_bug.cgi?id=216588
    <rdar://problem/68657748>

    Reviewed by Simon Fraser.

    Source/WebCore:

    No new tests because there is no behavior change.

    * platform/graphics/coretext/FontCascadeCoreText.cpp:
    (WebCore::FontCascade::isSubpixelAntialiasingAvailable):

    Source/WTF:

    We can eliminate WebKit's use of it to eventually phase it out entirely.

    * wtf/PlatformHave.h:

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267116 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-610-branch/Source/WTF/ChangeLog (268479 => 268480)


--- branches/safari-610-branch/Source/WTF/ChangeLog	2020-10-14 20:00:44 UTC (rev 268479)
+++ branches/safari-610-branch/Source/WTF/ChangeLog	2020-10-14 20:20:26 UTC (rev 268480)
@@ -1,3 +1,40 @@
+2020-10-14  Russell Epstein  <repst...@apple.com>
+
+        Cherry-pick r267116. rdar://problem/70267318
+
+    [macOS Big Sur] CGFontRenderingGetFontSmoothingDisabled() is no longer useful
+    https://bugs.webkit.org/show_bug.cgi?id=216588
+    <rdar://problem/68657748>
+    
+    Reviewed by Simon Fraser.
+    
+    Source/WebCore:
+    
+    No new tests because there is no behavior change.
+    
+    * platform/graphics/coretext/FontCascadeCoreText.cpp:
+    (WebCore::FontCascade::isSubpixelAntialiasingAvailable):
+    
+    Source/WTF:
+    
+    We can eliminate WebKit's use of it to eventually phase it out entirely.
+    
+    * wtf/PlatformHave.h:
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267116 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2020-09-15  Myles C. Maxfield  <mmaxfi...@apple.com>
+
+            [macOS Big Sur] CGFontRenderingGetFontSmoothingDisabled() is no longer useful
+            https://bugs.webkit.org/show_bug.cgi?id=216588
+            <rdar://problem/68657748>
+
+            Reviewed by Simon Fraser.
+
+            We can eliminate WebKit's use of it to eventually phase it out entirely.
+
+            * wtf/PlatformHave.h:
+
 2020-10-14  Alan Coon  <alanc...@apple.com>
 
         Cherry-pick r268371. rdar://problem/70267767

Modified: branches/safari-610-branch/Source/WTF/wtf/PlatformHave.h (268479 => 268480)


--- branches/safari-610-branch/Source/WTF/wtf/PlatformHave.h	2020-10-14 20:00:44 UTC (rev 268479)
+++ branches/safari-610-branch/Source/WTF/wtf/PlatformHave.h	2020-10-14 20:20:26 UTC (rev 268480)
@@ -341,7 +341,7 @@
 #define HAVE_OS_DARK_MODE_SUPPORT 1
 #endif
 
-#if PLATFORM(MAC)
+#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 110000
 #define HAVE_CG_FONT_RENDERING_GET_FONT_SMOOTHING_DISABLED 1
 #endif
 

Modified: branches/safari-610-branch/Source/WebCore/ChangeLog (268479 => 268480)


--- branches/safari-610-branch/Source/WebCore/ChangeLog	2020-10-14 20:00:44 UTC (rev 268479)
+++ branches/safari-610-branch/Source/WebCore/ChangeLog	2020-10-14 20:20:26 UTC (rev 268480)
@@ -1,3 +1,41 @@
+2020-10-14  Russell Epstein  <repst...@apple.com>
+
+        Cherry-pick r267116. rdar://problem/70267318
+
+    [macOS Big Sur] CGFontRenderingGetFontSmoothingDisabled() is no longer useful
+    https://bugs.webkit.org/show_bug.cgi?id=216588
+    <rdar://problem/68657748>
+    
+    Reviewed by Simon Fraser.
+    
+    Source/WebCore:
+    
+    No new tests because there is no behavior change.
+    
+    * platform/graphics/coretext/FontCascadeCoreText.cpp:
+    (WebCore::FontCascade::isSubpixelAntialiasingAvailable):
+    
+    Source/WTF:
+    
+    We can eliminate WebKit's use of it to eventually phase it out entirely.
+    
+    * wtf/PlatformHave.h:
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267116 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2020-09-15  Myles C. Maxfield  <mmaxfi...@apple.com>
+
+            [macOS Big Sur] CGFontRenderingGetFontSmoothingDisabled() is no longer useful
+            https://bugs.webkit.org/show_bug.cgi?id=216588
+            <rdar://problem/68657748>
+
+            Reviewed by Simon Fraser.
+
+            No new tests because there is no behavior change.
+
+            * platform/graphics/coretext/FontCascadeCoreText.cpp:
+            (WebCore::FontCascade::isSubpixelAntialiasingAvailable):
+
 2020-10-14  Alan Coon  <alanc...@apple.com>
 
         Cherry-pick r268371. rdar://problem/70267767

Modified: branches/safari-610-branch/Source/WebCore/platform/graphics/cocoa/FontCascadeCocoa.mm (268479 => 268480)


--- branches/safari-610-branch/Source/WebCore/platform/graphics/cocoa/FontCascadeCocoa.mm	2020-10-14 20:00:44 UTC (rev 268479)
+++ branches/safari-610-branch/Source/WebCore/platform/graphics/cocoa/FontCascadeCocoa.mm	2020-10-14 20:20:26 UTC (rev 268480)
@@ -60,8 +60,6 @@
         subpixelAntialiasingEnabled = !CGFontRenderingGetFontSmoothingDisabled();
     });
     return subpixelAntialiasingEnabled;
-#elif PLATFORM(MAC)
-    return true;
 #else
     return false;
 #endif
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to