Changeset 283284 in webkit
- Timestamp:
- Sep 29, 2021, 5:00:16 PM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/wtf/PlatformHave.h (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/Shared/WebPreferencesDefaultValues.cpp (modified) (1 diff)
-
WebKit/Shared/win/WebPreferencesDefaultValuesWin.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r283279 r283284 1 2021-09-29 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 [WinCairo] REGRESSION(r280726): registry keys enabling GPU process mode don't work 4 https://bugs.webkit.org/show_bug.cgi?id=230871 5 6 Reviewed by Don Olmstead. 7 8 * wtf/PlatformHave.h: r270175 defined HAVE_SYSTEM_FEATURE_FLAGS 9 for Windows to use WebKit::isFeatureFlagEnabled. But, it is no 10 longer needed. 11 1 12 2021-09-29 Kiet Ho <tho22@apple.com> 2 13 -
trunk/Source/WTF/wtf/PlatformHave.h
r282862 r283284 670 670 || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 150000) \ 671 671 || (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MIN_REQUIRED >= 70000) \ 672 || (PLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED >= 140000) \ 673 || PLATFORM(WIN) 672 || (PLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED >= 140000) 674 673 #define HAVE_SYSTEM_FEATURE_FLAGS 1 675 674 #endif -
trunk/Source/WebKit/ChangeLog
r283283 r283284 1 2021-09-29 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 [WinCairo] REGRESSION(r280726): registry keys enabling GPU process mode don't work 4 https://bugs.webkit.org/show_bug.cgi?id=230871 5 6 Reviewed by Don Olmstead. 7 8 r270175 (Bug 219294) added registry keys to enable GPU process 9 mode for WinCairo port. But after r280726 (Bug 228803) changed the 10 function signature, they didn't work. 11 12 * Shared/WebPreferencesDefaultValues.cpp: 13 * Shared/win/WebPreferencesDefaultValuesWin.cpp: 14 (WebKit::isFeatureFlagEnabled): 15 1 16 2021-09-29 Chris Dumez <cdumez@apple.com> 2 17 -
trunk/Source/WebKit/Shared/WebPreferencesDefaultValues.cpp
r282137 r283284 42 42 namespace WebKit { 43 43 44 #if !PLATFORM(COCOA) 44 #if !PLATFORM(COCOA) && !PLATFORM(WIN) 45 45 bool isFeatureFlagEnabled(const char*, bool defaultValue) 46 46 { -
trunk/Source/WebKit/Shared/win/WebPreferencesDefaultValuesWin.cpp
r270175 r283284 27 27 #include "WebPreferencesDefaultValues.h" 28 28 29 #if HAVE(SYSTEM_FEATURE_FLAGS)30 31 29 #include <wtf/WindowsExtras.h> 32 30 #include <wtf/text/WTFString.h> … … 34 32 namespace WebKit { 35 33 36 bool isFeatureFlagEnabled(const String& featureName)34 bool isFeatureFlagEnabled(const char* featureName, bool defaultValue) 37 35 { 36 auto featureNameWide = String(featureName).wideCharacters(); 38 37 DWORD data; 39 38 DWORD dataSize = sizeof data; 40 39 DWORD keyType; 41 HRESULT hr = getRegistryValue(HKEY_CURRENT_USER, L"Software\\WebKit", featureName .wideCharacters().data(), &keyType, &data, &dataSize);40 HRESULT hr = getRegistryValue(HKEY_CURRENT_USER, L"Software\\WebKit", featureNameWide.data(), &keyType, &data, &dataSize); 42 41 if (hr != ERROR_SUCCESS) 43 42 return false; … … 50 49 51 50 } // namespace WebKit 52 53 #endif
Note:
See TracChangeset
for help on using the changeset viewer.