Changeset 289201 in webkit
- Timestamp:
- Feb 7, 2022, 1:22:33 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r289196 r289201 1 2022-02-07 Ziran Sun <zsun@igalia.com> 2 3 [Forms] Alias appearance <compat-auto> keywords to 'auto' 4 https://bugs.webkit.org/show_bug.cgi?id=235944 5 6 Reviewed by Aditya Keerthi. 7 8 Unskip tests in test expactation files that are now passing. 9 * TestExpectations: 10 * platform/gtk/TestExpectations: 11 1 12 2022-02-06 Jean-Yves Avenard <jya@apple.com> 2 13 -
trunk/LayoutTests/TestExpectations
r289165 r289201 4306 4306 # New failures after updating WPT import of css/css-text on 2020-07 4307 4307 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/appearance-button-001.html [ ImageOnlyFailure ] 4308 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/appearance-checkbox-001.html [ ImageOnlyFailure ]4309 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/appearance-listbox-001.html [ ImageOnlyFailure ]4310 4308 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/appearance-menulist-001.html [ ImageOnlyFailure ] 4311 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/appearance-menulist-button-001.html [ ImageOnlyFailure ]4312 4309 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/appearance-menulist-button-002.tentative.html [ ImageOnlyFailure ] 4313 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/appearance-meter-001.html [ ImageOnlyFailure ]4314 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/appearance-progress-bar-001.html [ ImageOnlyFailure ]4315 4310 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/appearance-push-button-001.html [ ImageOnlyFailure ] 4316 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/appearance-radio-001.html [ ImageOnlyFailure ]4317 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/appearance-searchfield-001.html [ ImageOnlyFailure ]4318 4311 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/appearance-slider-horizontal-001.html [ ImageOnlyFailure ] 4319 4312 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/appearance-square-button-001.html [ ImageOnlyFailure ] 4320 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/appearance-textarea-001.html [ ImageOnlyFailure ]4321 4313 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/appearance-textfield-001.html [ ImageOnlyFailure ] 4322 4314 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/outline-021.html [ ImageOnlyFailure ] … … 4328 4320 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/text-overflow-ruby.html [ ImageOnlyFailure ] 4329 4321 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/webkit-appearance-button-001.html [ ImageOnlyFailure ] 4330 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/webkit-appearance-checkbox-001.html [ ImageOnlyFailure ]4331 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/webkit-appearance-listbox-001.html [ ImageOnlyFailure ]4332 4322 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/webkit-appearance-menulist-001.html [ ImageOnlyFailure ] 4333 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/webkit-appearance-menulist-button-001.html [ ImageOnlyFailure ]4334 4323 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/webkit-appearance-menulist-button-002.tentative.html [ ImageOnlyFailure ] 4335 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/webkit-appearance-meter-001.html [ ImageOnlyFailure ]4336 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/webkit-appearance-progress-bar-001.html [ ImageOnlyFailure ]4337 4324 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/webkit-appearance-push-button-001.html [ ImageOnlyFailure ] 4338 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/webkit-appearance-radio-001.html [ ImageOnlyFailure ]4339 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/webkit-appearance-searchfield-001.html [ ImageOnlyFailure ]4340 4325 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/webkit-appearance-slider-horizontal-001.html [ ImageOnlyFailure ] 4341 4326 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/webkit-appearance-square-button-001.html [ ImageOnlyFailure ] 4342 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/webkit-appearance-textarea-001.html [ ImageOnlyFailure ]4343 4327 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/webkit-appearance-textfield-001.html [ ImageOnlyFailure ] 4344 4328 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/resize-child-will-change-transform.html [ ImageOnlyFailure ] -
trunk/LayoutTests/platform/gtk/TestExpectations
r289140 r289201 186 186 webkit.org/b/216777 compositing/video/video-update-rendering.html [ Pass Crash ] 187 187 webkit.org/b/216777 imported/w3c/web-platform-tests/css/css-text/writing-system/writing-system-segment-break-001.html [ ImageOnlyFailure Crash ] 188 webkit.org/b/216777 imported/w3c/web-platform-tests/css/css-ui/appearance-checkbox-001.html [ ImageOnlyFailure Crash ]189 webkit.org/b/216777 webkit.org/b/214299 imported/w3c/web-platform-tests/css/css-ui/appearance-listbox-001.html [ ImageOnlyFailure Crash ]190 188 191 189 # Navigation -
trunk/Source/WebCore/ChangeLog
r289199 r289201 1 2022-02-07 Ziran Sun <zsun@igalia.com> 2 3 [Forms] Alias appearance <compat-auto> keywords to 'auto' 4 https://bugs.webkit.org/show_bug.cgi?id=235944 5 6 Reviewed by Aditya Keerthi. 7 8 This CL alias the <compat-auto> keywords 'auto'. We need to address the cases of MenuList, button, 9 square-button, push-button and slider-horizontal etc. separately. 10 11 Spec ref: https://drafts.csswg.org/css-ui-4/#typedef-appearance-compat-auto 12 13 * rendering/RenderTheme.cpp: 14 (WebCore::RenderTheme::adjustAppearanceWithElementType const): 15 (WebCore::RenderTheme::adjustStyle): 16 (WebCore::RenderTheme::paint): 17 * rendering/RenderTheme.h: 18 1 19 2022-02-06 Lauro Moura <lmoura@igalia.com> 2 20 -
trunk/Source/WebCore/rendering/RenderTheme.cpp
r287663 r289201 85 85 } 86 86 87 ControlPart RenderTheme::adjustAppearanceForElement(RenderStyle& style, const Element* element) const 88 { 89 if (!element) 90 return NoControlPart; 91 92 ControlPart part = style.effectiveAppearance(); 93 ControlPart autoAppearance = autoAppearanceForElement(element); 94 if (part == autoAppearance) 95 return part; 96 97 // Aliases of 'auto'. 98 // https://drafts.csswg.org/css-ui-4/#typedef-appearance-compat-auto 99 if (part == AutoPart || part == SearchFieldPart || part == TextAreaPart || part == CheckboxPart || part == RadioPart || part == ListboxPart || part == MeterPart || part == ProgressBarPart) { 100 style.setEffectiveAppearance(autoAppearance); 101 return autoAppearance; 102 } 103 104 // The following keywords should work well for some element types 105 // even if their default appearances are different from the keywords. 106 if (part == MenulistButtonPart && autoAppearance != MenulistPart) { 107 style.setEffectiveAppearance(autoAppearance); 108 part = autoAppearance; 109 } 110 111 return part; 112 } 113 87 114 void RenderTheme::adjustStyle(RenderStyle& style, const Element* element, const RenderStyle* userAgentAppearanceStyle) 88 115 { 89 auto part = style.effectiveAppearance(); 90 if (part == AutoPart) { 91 part = autoAppearanceForElement(element); 92 93 ASSERT(part != AutoPart); 94 style.setEffectiveAppearance(part); 95 96 if (part == NoControlPart) 97 return; 98 } 116 auto part = adjustAppearanceForElement(style, element); 117 118 if (part == NoControlPart) 119 return; 99 120 100 121 // Force inline and table display styles to be inline-block (except for table- which is block) -
trunk/Source/WebCore/rendering/RenderTheme.h
r287663 r289201 467 467 private: 468 468 ControlPart autoAppearanceForElement(const Element*) const; 469 ControlPart adjustAppearanceForElement(RenderStyle&, const Element*) const; 469 470 470 471 void adjustSearchFieldDecorationStyle(RenderStyle&, const Element*) const;
Note:
See TracChangeset
for help on using the changeset viewer.