Changeset 222663 in webkit
- Timestamp:
- Sep 29, 2017 1:50:13 PM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r222656 r222663 1 2017-09-28 Alex Christensen <achristensen@webkit.org> 2 3 Add WKWebViewConfiguration SPI equivalent to WKPageConfigurationSetBackgroundCPULimit 4 https://bugs.webkit.org/show_bug.cgi?id=177644 5 <rdar://problem/34338698> 6 7 Reviewed by Geoffrey Garen. 8 9 WKPageConfigurationSetBackgroundCPULimit is a setter of a std::optional<double> with no accessor. 10 It's never set to 0 in practice, so I guess the ObjC equivalent is a double that is zero or nonzero. 11 12 * UIProcess/API/Cocoa/WKWebView.mm: 13 (-[WKWebView _initializeWithConfiguration:]): 14 * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: 15 (-[WKWebViewConfiguration _setCPULimit:]): 16 (-[WKWebViewConfiguration _cpuLimit]): 17 * UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h: 18 1 19 2017-09-28 Ryosuke Niwa <rniwa@webkit.org> 2 20 -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
r222456 r222663 471 471 472 472 #if PLATFORM(MAC) 473 if (auto cpuLimit = [_configuration _cpuLimit]) 474 pageConfiguration->setCPULimit(cpuLimit); 473 475 pageConfiguration->preferenceValues().set(WebKit::WebPreferencesKey::showsURLsInToolTipsEnabledKey(), WebKit::WebPreferencesStore::Value(!![_configuration _showsURLsInToolTips])); 474 476 pageConfiguration->preferenceValues().set(WebKit::WebPreferencesKey::serviceControlsEnabledKey(), WebKit::WebPreferencesStore::Value(!![_configuration _serviceControlsEnabled])); -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.mm
r219526 r222663 138 138 139 139 #if PLATFORM(MAC) 140 double _cpuLimit; 140 141 BOOL _showsURLsInToolTips; 141 142 BOOL _serviceControlsEnabled; … … 819 820 } 820 821 822 - (void)_setCPULimit:(double)cpuLimit 823 { 824 _cpuLimit = cpuLimit; 825 } 826 827 - (double)_cpuLimit 828 { 829 return _cpuLimit; 830 } 831 821 832 #endif // PLATFORM(MAC) 822 833 -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h
r221930 r222663 79 79 @property (nonatomic, setter=_setImageControlsEnabled:) BOOL _imageControlsEnabled WK_API_AVAILABLE(macosx(10.12)); 80 80 @property (nonatomic, readwrite, setter=_setRequiresUserActionForEditingControlsManager:) BOOL _requiresUserActionForEditingControlsManager WK_API_AVAILABLE(macosx(10.12)); 81 @property (nonatomic, readwrite, setter=_setCPULimit:) double _cpuLimit WK_API_AVAILABLE(WK_MAC_TBA); 81 82 #endif 82 83
Note: See TracChangeset
for help on using the changeset viewer.