Changeset 86161 in webkit


Ignore:
Timestamp:
May 10, 2011 9:46:16 AM (13 years ago)
Author:
Adam Roben
Message:

Use FontSmoothingLevelWindows by default on Windows

Fixes <http://webkit.org/b/60557> REGRESSION (r86077): Web Inspector uses CG font rendering
in WebKit2 on Windows

Reviewed by Darin Adler.

  • Shared/WebPreferencesStore.h: Added and deployed a new DEFAULT_WEBKIT_FONT_SMOOTHING_LEVEL

macro to let Windows have a different default font smoothing level from other platforms.

  • UIProcess/API/C/WKPreferencesPrivate.h: Updated the comment about the default font

smoothing level.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r86135 r86161  
     12011-05-10  Adam Roben  <aroben@apple.com>
     2
     3        Use FontSmoothingLevelWindows by default on Windows
     4
     5        Fixes <http://webkit.org/b/60557> REGRESSION (r86077): Web Inspector uses CG font rendering
     6        in WebKit2 on Windows
     7
     8        Reviewed by Darin Adler.
     9
     10        * Shared/WebPreferencesStore.h: Added and deployed a new DEFAULT_WEBKIT_FONT_SMOOTHING_LEVEL
     11        macro to let Windows have a different default font smoothing level from other platforms.
     12
     13        * UIProcess/API/C/WKPreferencesPrivate.h: Updated the comment about the default font
     14        smoothing level.
     15
    1162011-05-06  Tony Gentilcore  <tonyg@chromium.org>
    217
  • trunk/Source/WebKit2/Shared/WebPreferencesStore.h

    r84980 r86161  
    8282    \
    8383
     84#if PLATFORM(WIN)
     85#define DEFAULT_WEBKIT_FONT_SMOOTHING_LEVEL FontSmoothingLevelWindows
     86#else
     87#define DEFAULT_WEBKIT_FONT_SMOOTHING_LEVEL FontSmoothingLevelMedium
     88#endif
     89
    8490#define FOR_EACH_WEBKIT_UINT32_PREFERENCE(macro) \
    85     macro(FontSmoothingLevel, fontSmoothingLevel, UInt32, uint32_t, FontSmoothingLevelMedium) \
     91    macro(FontSmoothingLevel, fontSmoothingLevel, UInt32, uint32_t, DEFAULT_WEBKIT_FONT_SMOOTHING_LEVEL) \
    8692    macro(MinimumFontSize, minimumFontSize, UInt32, uint32_t, 0) \
    8793    macro(MinimumLogicalFontSize, minimumLogicalFontSize, UInt32, uint32_t, 9) \
  • trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesPrivate.h

    r83766 r86161  
    5353typedef enum WKEditableLinkBehavior WKEditableLinkBehavior;
    5454
    55 // Defaults to kWKFontSmoothingLevelMedium.
     55// Defaults to kWKFontSmoothingLevelWindows on Windows, kWKFontSmoothingLevelMedium on other platforms.
    5656WK_EXPORT void WKPreferencesSetFontSmoothingLevel(WKPreferencesRef, WKFontSmoothingLevel);
    5757WK_EXPORT WKFontSmoothingLevel WKPreferencesGetFontSmoothingLevel(WKPreferencesRef);
Note: See TracChangeset for help on using the changeset viewer.