Changeset 269775 in webkit
- Timestamp:
- Nov 13, 2020 7:30:59 AM (3 years ago)
- Location:
- trunk/Source
- Files:
-
- 1 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r269764 r269775 1 2020-11-13 Aditya Keerthi <akeerthi@apple.com> 2 3 [iOS][FCR] Add an internal feature flag to enable the new appearance 4 https://bugs.webkit.org/show_bug.cgi?id=218873 5 <rdar://problem/71345270> 6 7 Reviewed by Tim Horton. 8 9 Enable the feature at build time on PLATFORM(IOS_FAMILY) and disable 10 the feature at runtime. 11 12 * Scripts/Preferences/WebPreferencesInternal.yaml: 13 * wtf/PlatformEnable.h: 14 * wtf/PlatformEnableCocoa.h: 15 1 16 2020-11-12 Youenn Fablet <youenn@apple.com> 2 17 -
trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml
r269416 r269775 307 307 default: true 308 308 309 IOSFormControlRefreshEnabled: 310 type: bool 311 humanReadableName: "iOS Form Control Refresh" 312 humanReadableDescription: "Enable the new appearance for form controls on iOS" 313 condition: ENABLE(IOS_FORM_CONTROL_REFRESH) 314 defaultValue: 315 WebKitLegacy: 316 default: false 317 WebKit: 318 default: false 319 WebCore: 320 default: false 321 309 322 IPCTestingAPIEnabled: 310 323 type: bool -
trunk/Source/WTF/wtf/PlatformEnable.h
r269574 r269775 312 312 #endif 313 313 314 #if !defined(ENABLE_IOS_FORM_CONTROL_REFRESH) 315 #define ENABLE_IOS_FORM_CONTROL_REFRESH 0 316 #endif 317 314 318 #if !defined(ENABLE_IPC_TESTING_API) 315 319 /* Enable IPC testing on all ASAN builds and debug builds. */ -
trunk/Source/WTF/wtf/PlatformEnableCocoa.h
r269584 r269775 285 285 #endif 286 286 287 #if !defined(ENABLE_IOS_FORM_CONTROL_REFRESH) && PLATFORM(IOS_FAMILY) 288 #define ENABLE_IOS_FORM_CONTROL_REFRESH 1 289 #endif 290 287 291 #if !defined(ENABLE_IOS_GESTURE_EVENTS) && PLATFORM(IOS_FAMILY) && USE(APPLE_INTERNAL_SDK) 288 292 #define ENABLE_IOS_GESTURE_EVENTS 1 -
trunk/Source/WebCore/ChangeLog
r269774 r269775 1 2020-11-13 Aditya Keerthi <akeerthi@apple.com> 2 3 [iOS][FCR] Add an internal feature flag to enable the new appearance 4 https://bugs.webkit.org/show_bug.cgi?id=218873 5 <rdar://problem/71345270> 6 7 Reviewed by Tim Horton. 8 9 Add a feature flag for the iOS form control refresh, so that the 10 feature can be tested. 11 12 A new user-agent stylesheet is introduced for the refresh so that 13 the new styles can be opted in to at runtime. Only styles which 14 differ from the existing stylesheet will be added to the new one. 15 16 * DerivedSources-input.xcfilelist: 17 * DerivedSources.make: 18 * WebCore.xcodeproj/project.pbxproj: 19 * css/iOSFormControlRefresh.css: Added. 20 * style/InspectorCSSOMWrappers.cpp: 21 (WebCore::Style::InspectorCSSOMWrappers::collectDocumentWrappers): 22 * style/UserAgentStyle.cpp: 23 (WebCore::Style::UserAgentStyle::ensureDefaultStyleSheetsForElement): 24 * style/UserAgentStyle.h: 25 1 26 2020-11-13 Antoine Quint <graouts@webkit.org> 2 27 -
trunk/Source/WebCore/DerivedSources-input.xcfilelist
r269764 r269775 676 676 $(PROJECT_DIR)/css/fullscreen.css 677 677 $(PROJECT_DIR)/css/html.css 678 $(PROJECT_DIR)/css/iOSFormControlRefresh.css 678 679 $(PROJECT_DIR)/css/make-css-file-arrays.pl 679 680 $(PROJECT_DIR)/css/makeSelectorPseudoClassAndCompatibilityElementMap.py -
trunk/Source/WebCore/DerivedSources.make
r269764 r269775 1499 1499 $(WebCore)/css/fullscreen.css \ 1500 1500 $(WebCore)/css/html.css \ 1501 $(WebCore)/css/iOSFormControlRefresh.css \ 1501 1502 $(WebCore)/css/mathml.css \ 1502 1503 $(WebCore)/css/mediaControls.css \ -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r269764 r269775 16277 16277 E52EFDF22112875A00AD282A /* InputMode.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InputMode.h; sourceTree = "<group>"; }; 16278 16278 E52EFDF32112875A00AD282A /* InputMode.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = InputMode.cpp; sourceTree = "<group>"; }; 16279 E54CA6DD255DE2D500F901A3 /* iOSFormControlRefresh.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; path = iOSFormControlRefresh.css; sourceTree = "<group>"; }; 16279 16280 E55F4979151B888000BB67DB /* LengthFunctions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LengthFunctions.cpp; sourceTree = "<group>"; }; 16280 16281 E58B45B820AD07DD00991025 /* DataListButtonElement.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DataListButtonElement.h; sourceTree = "<group>"; }; … … 29221 29222 CD4E0AFA11F7BC27009D3811 /* fullscreen.css */, 29222 29223 93CA4C9909DF93FA00DF8677 /* html.css */, 29224 E54CA6DD255DE2D500F901A3 /* iOSFormControlRefresh.css */, 29223 29225 E55F4979151B888000BB67DB /* LengthFunctions.cpp */, 29224 29226 E5BA7D62151437CA00FE1E3F /* LengthFunctions.h */, -
trunk/Source/WebCore/style/InspectorCSSOMWrappers.cpp
r254186 r269775 119 119 collectFromStyleSheetContents(UserAgentStyle::colorInputStyleSheet); 120 120 #endif 121 #if ENABLE(IOS_FORM_CONTROL_REFRESH) 122 collectFromStyleSheetContents(UserAgentStyle::iOSFormControlRefreshStyleSheet); 123 #endif 121 124 collectFromStyleSheetContents(UserAgentStyle::plugInsStyleSheet); 122 125 collectFromStyleSheetContents(UserAgentStyle::mediaQueryStyleSheet); -
trunk/Source/WebCore/style/UserAgentStyle.cpp
r267773 r269775 85 85 StyleSheetContents* UserAgentStyle::colorInputStyleSheet; 86 86 #endif 87 #if ENABLE(IOS_FORM_CONTROL_REFRESH) 88 StyleSheetContents* UserAgentStyle::iOSFormControlRefreshStyleSheet; 89 #endif 87 90 88 91 #if PLATFORM(IOS_FAMILY) … … 297 300 #endif // ENABLE(FULLSCREEN_API) 298 301 302 #if ENABLE(IOS_FORM_CONTROL_REFRESH) 303 if (!iOSFormControlRefreshStyleSheet && element.document().settings().iOSFormControlRefreshEnabled()) { 304 iOSFormControlRefreshStyleSheet = parseUASheet(iOSFormControlRefreshUserAgentStyleSheet, sizeof(iOSFormControlRefreshUserAgentStyleSheet)); 305 addToDefaultStyle(*iOSFormControlRefreshStyleSheet); 306 } 307 #endif 308 299 309 ASSERT(defaultStyle->features().idsInRules.isEmpty()); 300 310 ASSERT(mathMLStyleSheet || defaultStyle->features().siblingRules.isEmpty()); -
trunk/Source/WebCore/style/UserAgentStyle.h
r267701 r269775 55 55 static StyleSheetContents* colorInputStyleSheet; 56 56 #endif 57 #if ENABLE(IOS_FORM_CONTROL_REFRESH) 58 static StyleSheetContents* iOSFormControlRefreshStyleSheet; 59 #endif 57 60 58 61 static StyleSheetContents* mediaQueryStyleSheet;
Note: See TracChangeset
for help on using the changeset viewer.