| Differences between
and this patch
- a/Source/WebKit2/ChangeLog +17 lines
Lines 1-3 a/Source/WebKit2/ChangeLog_sec1
1
2015-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 NOBODY (OOPS!).
8
9
        * UIProcess/API/Cocoa/WKPreferences.mm:
10
        (-[WKPreferences _defaultFontSize]):
11
        (-[WKPreferences _setDefaultFontSize:]):
12
        (-[WKPreferences _defaultFixedFontSize]):
13
        (-[WKPreferences _setDefaultFixedFontSize:]):
14
        (-[WKPreferences _fixedFontFamily]):
15
        (-[WKPreferences _setFixedFontFamily:]):
16
        * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
17
1
2015-11-11  Carlos Garcia Campos  <cgarcia@igalia.com>
18
2015-11-11  Carlos Garcia Campos  <cgarcia@igalia.com>
2
19
3
        REGRESSION(r191856): [GTK] SOCK_SEQPACKET no longer used after r191856
20
        REGRESSION(r191856): [GTK] SOCK_SEQPACKET no longer used after r191856
- a/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm +30 lines
Lines 347-352 static _WKStorageBlockingPolicy toAPI(WebCore::SecurityOrigin::StorageBlockingPo a/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm_sec1
347
    _preferences->setAntialiasedFontDilationEnabled(antialiasedFontDilationEnabled);
347
    _preferences->setAntialiasedFontDilationEnabled(antialiasedFontDilationEnabled);
348
}
348
}
349
349
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->defaultFixedPitchFontSize();
363
}
364
365
- (void)_setDefaultFixedPitchFontSize:(NSUInteger)defaultFixedPitchFontSize
366
{
367
    _preferences->setDefaultFixedPitchFontSize(defaultFixedPitchFontSize);
368
}
369
370
- (NSString *)_fixedPitchFontFamily
371
{
372
    return _preferences->fixedPitchFontFamily();
373
}
374
375
- (void)_setFixedPitchFontFamily:(NSString *)fixedPitchFontFamily
376
{
377
    _preferences->setFixedPitchFontFamily(fixedPitchFontFamily);
378
}
379
350
@end
380
@end
351
381
352
#endif // WK_API_ENABLED
382
#endif // WK_API_ENABLED
- a/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesPrivate.h +4 lines
Lines 76-81 typedef NS_OPTIONS(NSUInteger, _WKJavaScriptRuntimeFlags) { a/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesPrivate.h_sec1
76
76
77
@property (nonatomic, setter=_setAntialiasedFontDilationEnabled:) BOOL _antialiasedFontDilationEnabled WK_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA);
77
@property (nonatomic, setter=_setAntialiasedFontDilationEnabled:) BOOL _antialiasedFontDilationEnabled WK_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA);
78
78
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
79
// FIXME: This should be configured on the WKWebsiteDataStore.
83
// FIXME: This should be configured on the WKWebsiteDataStore.
80
// FIXME: This property should not have the verb "is" in it.
84
// FIXME: This property should not have the verb "is" in it.
81
@property (nonatomic, setter=_setOfflineApplicationCacheIsEnabled:) BOOL _offlineApplicationCacheIsEnabled;
85
@property (nonatomic, setter=_setOfflineApplicationCacheIsEnabled:) BOOL _offlineApplicationCacheIsEnabled;

Return to Bug 151138