Title: [213557] trunk/Source
Revision
213557
Author
[email protected]
Date
2017-03-07 17:43:21 -0800 (Tue, 07 Mar 2017)

Log Message

Enable SubpixelAntialiasedLayerTextEnabled by default on some versions of macOS
https://bugs.webkit.org/show_bug.cgi?id=169329

Reviewed by Tim Horton.

If the macOS version is > 101300, enable subpixelAntialiasedLayerTextEnabled.

Source/WebKit/mac:

* WebView/WebPreferences.mm:
(+[WebPreferences initialize]):

Source/WebKit2:

* Shared/WebPreferencesDefinitions.h:

Modified Paths

Diff

Modified: trunk/Source/WebKit/mac/ChangeLog (213556 => 213557)


--- trunk/Source/WebKit/mac/ChangeLog	2017-03-08 01:36:45 UTC (rev 213556)
+++ trunk/Source/WebKit/mac/ChangeLog	2017-03-08 01:43:21 UTC (rev 213557)
@@ -1,3 +1,15 @@
+2017-03-07  Simon Fraser  <[email protected]>
+
+        Enable SubpixelAntialiasedLayerTextEnabled by default on some versions of macOS
+        https://bugs.webkit.org/show_bug.cgi?id=169329
+
+        Reviewed by Tim Horton.
+
+        If the macOS version is > 101300, enable subpixelAntialiasedLayerTextEnabled.
+
+        * WebView/WebPreferences.mm:
+        (+[WebPreferences initialize]):
+
 2017-03-07  Megan Gardner  <[email protected]>
 
         Additional DataInteraction Support

Modified: trunk/Source/WebKit/mac/WebView/WebPreferences.mm (213556 => 213557)


--- trunk/Source/WebKit/mac/WebView/WebPreferences.mm	2017-03-08 01:36:45 UTC (rev 213556)
+++ trunk/Source/WebKit/mac/WebView/WebPreferences.mm	2017-03-08 01:43:21 UTC (rev 213557)
@@ -491,7 +491,14 @@
         [NSNumber numberWithBool:NO],   WebKitJavaScriptCanAccessClipboardPreferenceKey,
         [NSNumber numberWithBool:YES],  WebKitXSSAuditorEnabledPreferenceKey,
         [NSNumber numberWithBool:YES],  WebKitAcceleratedCompositingEnabledPreferenceKey,
-        [NSNumber numberWithBool:NO],   WebKitSubpixelAntialiasedLayerTextEnabledPreferenceKey,
+
+#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
+#define DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED YES
+#else
+#define DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED NO
+#endif
+        [NSNumber numberWithBool:DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED], WebKitSubpixelAntialiasedLayerTextEnabledPreferenceKey,
+
         [NSNumber numberWithBool:NO],   WebKitDisplayListDrawingEnabledPreferenceKey,
 #if PLATFORM(IOS) && !PLATFORM(IOS_SIMULATOR)
         [NSNumber numberWithBool:YES],  WebKitAcceleratedDrawingEnabledPreferenceKey,

Modified: trunk/Source/WebKit2/ChangeLog (213556 => 213557)


--- trunk/Source/WebKit2/ChangeLog	2017-03-08 01:36:45 UTC (rev 213556)
+++ trunk/Source/WebKit2/ChangeLog	2017-03-08 01:43:21 UTC (rev 213557)
@@ -1,3 +1,14 @@
+2017-03-07  Simon Fraser  <[email protected]>
+
+        Enable SubpixelAntialiasedLayerTextEnabled by default on some versions of macOS
+        https://bugs.webkit.org/show_bug.cgi?id=169329
+
+        Reviewed by Tim Horton.
+
+        If the macOS version is > 101300, enable subpixelAntialiasedLayerTextEnabled.
+
+        * Shared/WebPreferencesDefinitions.h:
+
 2017-03-07  Dean Jackson  <[email protected]>
 
         Some platforms won't be able to create a GPUDevice

Modified: trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h (213556 => 213557)


--- trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h	2017-03-08 01:36:45 UTC (rev 213556)
+++ trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h	2017-03-08 01:43:21 UTC (rev 213557)
@@ -89,6 +89,12 @@
 #define DEFAULT_REQUIRES_USER_GESTURE_FOR_AUDIO_PLAYBACK false
 #endif
 
+#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
+#define DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED true
+#else
+#define DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED false
+#endif
+
 #if PLATFORM(IOS_SIMULATOR)
 #define DEFAULT_ACCELERATED_DRAWING_ENABLED false
 #define DEFAULT_CANVAS_USES_ACCELERATED_DRAWING false
@@ -277,7 +283,7 @@
 
 #define FOR_EACH_WEBKIT_DEBUG_BOOL_PREFERENCE(macro) \
     macro(AcceleratedDrawingEnabled, acceleratedDrawingEnabled, Bool, bool, DEFAULT_ACCELERATED_DRAWING_ENABLED, "", "") \
-    macro(SubpixelAntialiasedLayerTextEnabled, subpixelAntialiasedLayerTextEnabled, Bool, bool, false, "", "") \
+    macro(SubpixelAntialiasedLayerTextEnabled, subpixelAntialiasedLayerTextEnabled, Bool, bool, DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED, "", "") \
     macro(DisplayListDrawingEnabled, displayListDrawingEnabled, Bool, bool, false, "", "") \
     macro(CompositingBordersVisible, compositingBordersVisible, Bool, bool, false, "", "") \
     macro(CompositingRepaintCountersVisible, compositingRepaintCountersVisible, Bool, bool, false, "", "") \
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to