Title: [233089] trunk/Source/WebKit
- Revision
- 233089
- Author
- [email protected]
- Date
- 2018-06-22 12:56:41 -0700 (Fri, 22 Jun 2018)
Log Message
Expose colorFilterEnabled SPI in WKPreferencesPrivate.h
https://bugs.webkit.org/show_bug.cgi?id=186935
<rdar://problem/41109387>
Patch by Luming Yin <[email protected]> on 2018-06-22
Reviewed by Tim Horton.
* UIProcess/API/Cocoa/WKPreferences.mm:
(-[WKPreferences _setColorFilterEnabled:]):
(-[WKPreferences _colorFilterEnabled]):
* UIProcess/API/Cocoa/WKPreferencesPrivate.h:
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (233088 => 233089)
--- trunk/Source/WebKit/ChangeLog 2018-06-22 19:08:28 UTC (rev 233088)
+++ trunk/Source/WebKit/ChangeLog 2018-06-22 19:56:41 UTC (rev 233089)
@@ -1,3 +1,16 @@
+2018-06-22 Luming Yin <[email protected]>
+
+ Expose colorFilterEnabled SPI in WKPreferencesPrivate.h
+ https://bugs.webkit.org/show_bug.cgi?id=186935
+ <rdar://problem/41109387>
+
+ Reviewed by Tim Horton.
+
+ * UIProcess/API/Cocoa/WKPreferences.mm:
+ (-[WKPreferences _setColorFilterEnabled:]):
+ (-[WKPreferences _colorFilterEnabled]):
+ * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
+
2018-06-22 Timothy Hatcher <[email protected]>
Recalc styles every time defaultAppearance changes.
Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm (233088 => 233089)
--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm 2018-06-22 19:08:28 UTC (rev 233088)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm 2018-06-22 19:56:41 UTC (rev 233089)
@@ -862,6 +862,16 @@
return _preferences->pageCacheSupportsPlugins();
}
+- (void)_setColorFilterEnabled:(BOOL)enabled
+{
+ _preferences->setColorFilterEnabled(enabled);
+}
+
+- (BOOL)_colorFilterEnabled
+{
+ return _preferences->colorFilterEnabled();
+}
+
- (void)_setShouldPrintBackgrounds:(BOOL)enabled
{
_preferences->setShouldPrintBackgrounds(enabled);
Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h (233088 => 233089)
--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h 2018-06-22 19:08:28 UTC (rev 233088)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h 2018-06-22 19:56:41 UTC (rev 233089)
@@ -137,6 +137,7 @@
@property (nonatomic, setter=_setShouldEnableTextAutosizingBoost:) BOOL _shouldEnableTextAutosizingBoost WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
@property (nonatomic, setter=_setStorageAccessPromptsEnabled:) BOOL _storageAccessPromptsEnabled WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
+@property (nonatomic, setter=_setColorFilterEnabled:) BOOL _colorFilterEnabled WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
#if !TARGET_OS_IPHONE
@property (nonatomic, setter=_setWebGLEnabled:) BOOL _webGLEnabled WK_API_AVAILABLE(macosx(10.13.4));
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes