|
Fix where the clear button will be drawn when adding padding to the input element.
The search-cancel-button was being drawn relative to the input element.
This caused problems when adding padding.
This patch fixes that.
This also addresses the issue of the search-cancel-button never being drawn as NSRegularControlSize.
If the font size is over 16 the search field will be NSRegularControlSize,
but because setFontFromControlSize is called, the font size for the style of the cancel
button becomes 13, causing it to be drawn as NSSmallControlSize.
Also the cancelButtonSizes for regular size was off by one.
Also the margin was on the other side when rtl.
TEST=Automated. Added tests to *-appearance-basic.html.
BUG= 244118
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151551
Total comments: 4
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+96 lines, -39 lines) |
Patch |
 |
M |
LayoutTests/TestExpectations
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/css/input-search-padding-expected.txt
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/forms/date/date-appearance-basic.html
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/forms/date/date-appearance-basic-expected.txt
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/forms/datetimelocal/datetimelocal-appearance-basic.html
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/forms/datetimelocal/datetimelocal-appearance-basic-expected.txt
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/forms/month/month-appearance-basic.html
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/forms/month/month-appearance-basic-expected.txt
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/forms/searchfield-heights.html
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/forms/time/time-appearance-basic.html
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/forms/time/time-appearance-basic-expected.txt
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/forms/week/week-appearance-basic.html
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/forms/week/week-appearance-basic-expected.txt
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/chromium-mac/fast/forms/searchfield-heights-expected.txt
|
View
|
|
1 chunk |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/html.css
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderThemeChromiumMac.mm
|
View
|
1
2
3
4
5
6
7
|
7 chunks |
+21 lines, -21 lines |
0 comments
|
Download
|
Total messages: 20 (0 generated)
|