Changeset 213557 in webkit


Ignore:
Timestamp:
Mar 7, 2017 5:43:21 PM (7 years ago)
Author:
Simon Fraser
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:
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/mac/ChangeLog

    r213551 r213557  
     12017-03-07  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Enable SubpixelAntialiasedLayerTextEnabled by default on some versions of macOS
     4        https://bugs.webkit.org/show_bug.cgi?id=169329
     5
     6        Reviewed by Tim Horton.
     7
     8        If the macOS version is > 101300, enable subpixelAntialiasedLayerTextEnabled.
     9
     10        * WebView/WebPreferences.mm:
     11        (+[WebPreferences initialize]):
     12
    1132017-03-07  Megan Gardner  <megan_gardner@apple.com>
    214
  • trunk/Source/WebKit/mac/WebView/WebPreferences.mm

    r213410 r213557  
    492492        [NSNumber numberWithBool:YES],  WebKitXSSAuditorEnabledPreferenceKey,
    493493        [NSNumber numberWithBool:YES],  WebKitAcceleratedCompositingEnabledPreferenceKey,
    494         [NSNumber numberWithBool:NO],   WebKitSubpixelAntialiasedLayerTextEnabledPreferenceKey,
     494
     495#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
     496#define DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED YES
     497#else
     498#define DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED NO
     499#endif
     500        [NSNumber numberWithBool:DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED], WebKitSubpixelAntialiasedLayerTextEnabledPreferenceKey,
     501
    495502        [NSNumber numberWithBool:NO],   WebKitDisplayListDrawingEnabledPreferenceKey,
    496503#if PLATFORM(IOS) && !PLATFORM(IOS_SIMULATOR)
  • trunk/Source/WebKit2/ChangeLog

    r213549 r213557  
     12017-03-07  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Enable SubpixelAntialiasedLayerTextEnabled by default on some versions of macOS
     4        https://bugs.webkit.org/show_bug.cgi?id=169329
     5
     6        Reviewed by Tim Horton.
     7
     8        If the macOS version is > 101300, enable subpixelAntialiasedLayerTextEnabled.
     9
     10        * Shared/WebPreferencesDefinitions.h:
     11
    1122017-03-07  Dean Jackson  <dino@apple.com>
    213
  • trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h

    r213410 r213557  
    8888#define DEFAULT_TEMPORARY_TILE_COHORT_RETENTION_ENABLED true
    8989#define DEFAULT_REQUIRES_USER_GESTURE_FOR_AUDIO_PLAYBACK false
     90#endif
     91
     92#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
     93#define DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED true
     94#else
     95#define DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED false
    9096#endif
    9197
     
    278284#define FOR_EACH_WEBKIT_DEBUG_BOOL_PREFERENCE(macro) \
    279285    macro(AcceleratedDrawingEnabled, acceleratedDrawingEnabled, Bool, bool, DEFAULT_ACCELERATED_DRAWING_ENABLED, "", "") \
    280     macro(SubpixelAntialiasedLayerTextEnabled, subpixelAntialiasedLayerTextEnabled, Bool, bool, false, "", "") \
     286    macro(SubpixelAntialiasedLayerTextEnabled, subpixelAntialiasedLayerTextEnabled, Bool, bool, DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED, "", "") \
    281287    macro(DisplayListDrawingEnabled, displayListDrawingEnabled, Bool, bool, false, "", "") \
    282288    macro(CompositingBordersVisible, compositingBordersVisible, Bool, bool, false, "", "") \
Note: See TracChangeset for help on using the changeset viewer.