Changeset 192313 in webkit


Ignore:
Timestamp:
Nov 11, 2015 10:12:53 AM (8 years ago)
Author:
timothy_horton@apple.com
Message:

Add some font-related preferences to the modern API
https://bugs.webkit.org/show_bug.cgi?id=151138
<rdar://problem/23492636>

Reviewed by Anders Carlsson.

  • UIProcess/API/Cocoa/WKPreferences.mm:

(-[WKPreferences _defaultFontSize]):
(-[WKPreferences _setDefaultFontSize:]):
(-[WKPreferences _defaultFixedPitchFontSize]):
(-[WKPreferences _setDefaultFixedPitchFontSize:]):
(-[WKPreferences _fixedPitchFontFamily]):
(-[WKPreferences _setFixedPitchFontFamily:]):

  • UIProcess/API/Cocoa/WKPreferencesPrivate.h:
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r192311 r192313  
     12015-11-11  Tim Horton  <timothy_horton@apple.com>
     2
     3        Add some font-related preferences to the modern API
     4        https://bugs.webkit.org/show_bug.cgi?id=151138
     5        <rdar://problem/23492636>
     6
     7        Reviewed by Anders Carlsson.
     8
     9        * UIProcess/API/Cocoa/WKPreferences.mm:
     10        (-[WKPreferences _defaultFontSize]):
     11        (-[WKPreferences _setDefaultFontSize:]):
     12        (-[WKPreferences _defaultFixedPitchFontSize]):
     13        (-[WKPreferences _setDefaultFixedPitchFontSize:]):
     14        (-[WKPreferences _fixedPitchFontFamily]):
     15        (-[WKPreferences _setFixedPitchFontFamily:]):
     16        * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
     17
    1182015-11-11  Carlos Garcia Campos  <cgarcia@igalia.com>
    219
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm

    r191849 r192313  
    348348}
    349349
     350- (NSUInteger)_defaultFontSize
     351{
     352    return _preferences->defaultFontSize();
     353}
     354
     355- (void)_setDefaultFontSize:(NSUInteger)defaultFontSize
     356{
     357    _preferences->setDefaultFontSize(defaultFontSize);
     358}
     359
     360- (NSUInteger)_defaultFixedPitchFontSize
     361{
     362    return _preferences->defaultFixedFontSize();
     363}
     364
     365- (void)_setDefaultFixedPitchFontSize:(NSUInteger)defaultFixedPitchFontSize
     366{
     367    _preferences->setDefaultFixedFontSize(defaultFixedPitchFontSize);
     368}
     369
     370- (NSString *)_fixedPitchFontFamily
     371{
     372    return _preferences->fixedFontFamily();
     373}
     374
     375- (void)_setFixedPitchFontFamily:(NSString *)fixedPitchFontFamily
     376{
     377    _preferences->setFixedFontFamily(fixedPitchFontFamily);
     378}
     379
    350380@end
    351381
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesPrivate.h

    r191849 r192313  
    7777@property (nonatomic, setter=_setAntialiasedFontDilationEnabled:) BOOL _antialiasedFontDilationEnabled WK_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA);
    7878
     79@property (nonatomic, setter=_setDefaultFontSize:) NSUInteger _defaultFontSize WK_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA);
     80@property (nonatomic, setter=_setDefaultFixedPitchFontSize:) NSUInteger _defaultFixedPitchFontSize WK_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA);
     81@property (nonatomic, copy, setter=_setFixedPitchFontFamily:) NSString *_fixedPitchFontFamily WK_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA);
     82
    7983// FIXME: This should be configured on the WKWebsiteDataStore.
    8084// FIXME: This property should not have the verb "is" in it.
Note: See TracChangeset for help on using the changeset viewer.