Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
input[type=search] preferred content width should not include decorat…
…ions https://bugs.webkit.org/show_bug.cgi?id=240785 <rdar://94113204> Reviewed by Antti Koivisto. - Only add decorationWidth when size attribute is set (the main reason this code was added in bug 119174) - Use renderStyle() instead of computedStyle() so it takes in account display: none; and has latest up-to-date style * Source/WebCore/html/SearchInputType.cpp: (WebCore::SearchInputType::sizeShouldIncludeDecoration const): (WebCore::SearchInputType::decorationWidth const): * LayoutTests/platform/gtk/fast/css/focus-ring-exists-for-search-field-expected.txt: * LayoutTests/platform/gtk/fast/css/input-search-padding-expected.txt: * LayoutTests/platform/gtk/fast/forms/control-restrict-line-height-expected.txt: * LayoutTests/platform/gtk/fast/forms/datalist/datalist-searchinput-appearance-expected.txt: * LayoutTests/platform/gtk/fast/forms/input-appearance-height-expected.txt: * LayoutTests/platform/gtk/fast/forms/search-cancel-button-style-sharing-expected.txt: * LayoutTests/platform/gtk/fast/forms/search-display-none-cancel-button-expected.txt: * LayoutTests/platform/gtk/fast/forms/search-input-rtl-expected.txt: * LayoutTests/platform/gtk/fast/forms/search-rtl-expected.txt: * LayoutTests/platform/gtk/fast/forms/search-styled-expected.txt: * LayoutTests/platform/gtk/fast/forms/searchfield-heights-expected.txt: * LayoutTests/platform/gtk/fast/repaint/search-field-cancel-expected.txt: * LayoutTests/platform/ios-simulator/fast/forms/datalist/datalist-searchinput-appearance-expected.txt: * LayoutTests/platform/ios/fast/css/focus-ring-exists-for-search-field-expected.txt: * LayoutTests/platform/ios/fast/css/text-overflow-input-expected.txt: * LayoutTests/platform/ios/fast/forms/box-shadow-override-expected.txt: * LayoutTests/platform/ios/fast/forms/control-restrict-line-height-expected.txt: * LayoutTests/platform/ios/fast/forms/input-appearance-height-expected.txt: * LayoutTests/platform/ios/fast/forms/placeholder-pseudo-style-expected.txt: * LayoutTests/platform/ios/fast/forms/search-cancel-button-style-sharing-expected.txt: * LayoutTests/platform/ios/fast/forms/search-display-none-cancel-button-expected.txt: * LayoutTests/platform/ios/fast/forms/search-input-rtl-expected.txt: * LayoutTests/platform/ios/fast/forms/search-styled-expected.txt: * LayoutTests/platform/mac/fast/css/focus-ring-exists-for-search-field-expected.txt: * LayoutTests/platform/mac/fast/css/text-overflow-input-expected.txt: * LayoutTests/platform/mac/fast/forms/box-shadow-override-expected.txt: * LayoutTests/platform/mac/fast/forms/control-restrict-line-height-expected.txt: * LayoutTests/platform/mac/fast/forms/datalist/datalist-searchinput-appearance-expected.txt: * LayoutTests/platform/mac/fast/forms/input-appearance-height-expected.txt: * LayoutTests/platform/mac/fast/forms/placeholder-position-expected.txt: * LayoutTests/platform/mac/fast/forms/placeholder-pseudo-style-expected.txt: * LayoutTests/platform/mac/fast/forms/search-cancel-button-style-sharing-expected.txt: * LayoutTests/platform/mac/fast/forms/search-display-none-cancel-button-expected.txt: * LayoutTests/platform/mac/fast/forms/search-input-rtl-expected.txt: * LayoutTests/platform/mac/fast/forms/search-rtl-expected.txt: * LayoutTests/platform/mac/fast/forms/search-styled-expected.txt: * LayoutTests/platform/mac-bigsur/fast/forms/control-restrict-line-height-expected.txt: Canonical link: https://commits.webkit.org/253595@main
- Loading branch information
Showing
41 changed files
with
752 additions
and
738 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.