Changeset 217418 in webkit
- Timestamp:
- May 25, 2017 7:56:27 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r217417 r217418 1 2017-05-25 Dave Hyatt <hyatt@apple.com> 2 3 Baseline of number inputs not right. 4 https://bugs.webkit.org/show_bug.cgi?id=172237 5 6 Reviewed by Dean Jackson. 7 8 * fast/forms/baseline-of-number-inputs-expected.html: Added. 9 * fast/forms/baseline-of-number-inputs.html: Added. 10 1 11 2017-05-25 Per Arne Vollan <pvollan@apple.com> 2 12 -
trunk/LayoutTests/fast/forms/number/number-large-padding.html
r155268 r217418 17 17 18 18 // Move the cursor on the upper button. 19 eventSender.mouseMoveTo(numberInput.offsetLeft + numberInput.offsetWidth - 10, numberInput.offsetTop + numberInput.offsetHeight / 4);19 eventSender.mouseMoveTo(numberInput.offsetLeft + numberInput.offsetWidth - 40, numberInput.offsetTop + numberInput.offsetHeight / 4); 20 20 eventSender.mouseDown(); 21 21 eventSender.mouseUp(); -
trunk/LayoutTests/fast/forms/number/number-spinbutton-in-multi-column.html
r123302 r217418 60 60 61 61 const clickX = pageX(column) + colWidth * colIndex + ofsX; 62 const clickY = pageY(column) + Math.floor(spin.offsetHeight / 3) ;62 const clickY = pageY(column) + Math.floor(spin.offsetHeight / 3) + 2; 63 63 64 64 eventSender.mouseMoveTo(clickX, clickY); -
trunk/LayoutTests/platform/ios-simulator/TestExpectations
r217247 r217418 8 8 9 9 http/tests/preload/viewport [ Pass ] 10 11 fast/forms/input-text-word-wrap.html [ Skip ] 12 fast/forms/search-rtl.html [ Skip ] 13 fast/forms/search-vertical-alignment.html [ Skip ] 14 fast/forms/searchfield-heights.html [ Skip ] 15 fast/forms/visual-hebrew-text-field.html [ Skip ] 16 -
trunk/LayoutTests/platform/mac/fast/block/float/032-expected.txt
r162791 r217418 47 47 RenderText {#text} at (0,0) size 0x0 48 48 layer at (216,572) size 100x13 49 RenderBlock {DIV} at (3,4 7) size 100x1349 RenderBlock {DIV} at (3,46) size 100x14 50 50 layer at (316,700) size 100x13 51 RenderBlock {DIV} at (3,4 7) size 100x1351 RenderBlock {DIV} at (3,46) size 100x14 52 52 layer at (66,828) size 100x13 53 RenderBlock {DIV} at (3,4 7) size 100x1353 RenderBlock {DIV} at (3,46) size 100x14 54 54 layer at (66,956) size 100x13 55 RenderBlock {DIV} at (3,4 7) size 100x1355 RenderBlock {DIV} at (3,46) size 100x14 -
trunk/LayoutTests/platform/mac/fast/forms/input-appearance-spinbutton-expected.txt
r202826 r217418 19 19 RenderBR {BR} at (114,14) size 1x0 20 20 RenderTextControl {INPUT} at (0,19) size 111x16 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 21 RenderFlexibleBox {DIV} at (3, 3) size 105x1022 RenderBlock {DIV} at (0, 0) size 92x1021 RenderFlexibleBox {DIV} at (3,0) size 105x16 22 RenderBlock {DIV} at (0,2) size 92x11 23 23 RenderBlock {DIV} at (1,36) size 199x36 24 24 RenderTextControl {INPUT} at (0,2) size 123x17 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 27 27 RenderBR {BR} at (126,14) size 1x0 28 28 RenderTextControl {INPUT} at (0,19) size 123x17 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 29 RenderFlexibleBox {DIV} at (3, 3) size 117x1130 RenderBlock {DIV} at (0, 0) size 104x1129 RenderFlexibleBox {DIV} at (3,1) size 117x15 30 RenderBlock {DIV} at (0,2) size 104x11 31 31 RenderBlock {DIV} at (1,72) size 199x37 32 32 RenderTextControl {INPUT} at (0,1) size 135x18 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 35 35 RenderBR {BR} at (138,14) size 1x0 36 36 RenderTextControl {INPUT} at (0,19) size 135x18 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 37 RenderFlexibleBox {DIV} at (3, 3) size 129x1238 RenderBlock {DIV} at (0, 0) size 116x1237 RenderFlexibleBox {DIV} at (3,1) size 129x16 38 RenderBlock {DIV} at (0,1) size 116x13 39 39 RenderBlock {DIV} at (1,109) size 199x46 40 40 RenderTextControl {INPUT} at (2,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 43 43 RenderBR {BR} at (153,16) size 1x0 44 44 RenderTextControl {INPUT} at (2,25) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 45 RenderFlexibleBox {DIV} at (3, 3) size 140x1346 RenderBlock {DIV} at (0, 0) size 127x1345 RenderFlexibleBox {DIV} at (3,1) size 140x17 46 RenderBlock {DIV} at (0,1) size 127x14 47 47 RenderBlock {DIV} at (1,155) size 199x50 48 48 RenderTextControl {INPUT} at (2,2) size 158x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 51 51 RenderBR {BR} at (165,17) size 1x0 52 52 RenderTextControl {INPUT} at (2,27) size 158x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 53 RenderFlexibleBox {DIV} at (3, 3) size 152x1554 RenderBlock {DIV} at (0, 0) size 139x1553 RenderFlexibleBox {DIV} at (3,1) size 152x19 54 RenderBlock {DIV} at (0,1) size 139x16 55 55 RenderBlock {DIV} at (1,205) size 199x52 56 56 RenderTextControl {INPUT} at (2,2) size 169x22 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 59 59 RenderBR {BR} at (176,18) size 1x0 60 60 RenderTextControl {INPUT} at (2,28) size 169x22 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 61 RenderFlexibleBox {DIV} at (3, 3) size 163x1662 RenderBlock {DIV} at (0, 0) size 148x1661 RenderFlexibleBox {DIV} at (3,1) size 163x20 62 RenderBlock {DIV} at (0,1) size 148x17 63 63 RenderBlock {DIV} at (1,257) size 199x54 64 64 RenderTextControl {INPUT} at (2,2) size 180x23 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 67 67 RenderBR {BR} at (187,19) size 1x0 68 68 RenderTextControl {INPUT} at (2,29) size 180x23 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 69 RenderFlexibleBox {DIV} at (3, 3) size 174x1770 RenderBlock {DIV} at (0, 0) size 159x1769 RenderFlexibleBox {DIV} at (3,1) size 174x21 70 RenderBlock {DIV} at (0,2) size 159x17 71 71 RenderBlock {DIV} at (1,311) size 199x56 72 72 RenderTextControl {INPUT} at (2,2) size 191x24 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 75 75 RenderBR {BR} at (198,20) size 1x0 76 76 RenderTextControl {INPUT} at (2,30) size 191x24 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 77 RenderFlexibleBox {DIV} at (3, 3) size 185x1878 RenderBlock {DIV} at (0, 0) size 170x1877 RenderFlexibleBox {DIV} at (3,0) size 185x24 78 RenderBlock {DIV} at (0,2) size 170x19 79 79 RenderTableCell {TD} at (204,2) size 303x524 [r=0 c=1 rs=1 cs=1] 80 80 RenderBlock {DIV} at (1,1) size 300x56 … … 84 84 RenderBR {BR} at (209,20) size 1x0 85 85 RenderTextControl {INPUT} at (2,30) size 202x24 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 86 RenderFlexibleBox {DIV} at (3, 3) size 196x1887 RenderBlock {DIV} at (0, 0) size 181x1886 RenderFlexibleBox {DIV} at (3,0) size 196x24 87 RenderBlock {DIV} at (0,3) size 181x18 88 88 RenderBlock {DIV} at (1,57) size 300x60 89 89 RenderTextControl {INPUT} at (2,2) size 213x26 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 92 92 RenderBR {BR} at (220,21) size 1x0 93 93 RenderTextControl {INPUT} at (2,32) size 213x26 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 94 RenderFlexibleBox {DIV} at (3, 3) size 207x2095 RenderBlock {DIV} at (0, 0) size 192x2094 RenderFlexibleBox {DIV} at (3,0) size 207x26 95 RenderBlock {DIV} at (0,2) size 192x21 96 96 RenderBlock {DIV} at (1,117) size 300x62 97 97 RenderTextControl {INPUT} at (2,2) size 225x27 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 100 100 RenderBR {BR} at (232,22) size 1x0 101 101 RenderTextControl {INPUT} at (2,33) size 225x27 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 102 RenderFlexibleBox {DIV} at (3, 3) size 219x21103 RenderBlock {DIV} at (0, 0) size 200x21102 RenderFlexibleBox {DIV} at (3,0) size 219x27 103 RenderBlock {DIV} at (0,3) size 200x21 104 104 RenderBlock {DIV} at (1,179) size 300x64 105 105 RenderTextControl {INPUT} at (2,2) size 236x28 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 108 108 RenderBR {BR} at (243,23) size 1x0 109 109 RenderTextControl {INPUT} at (2,34) size 236x28 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 110 RenderFlexibleBox {DIV} at (3, 3) size 230x22111 RenderBlock {DIV} at (0, 0) size 211x22110 RenderFlexibleBox {DIV} at (3,0) size 230x28 111 RenderBlock {DIV} at (0,3) size 211x22 112 112 RenderBlock {DIV} at (1,243) size 300x66 113 113 RenderTextControl {INPUT} at (2,2) size 256x29 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 116 116 RenderBR {BR} at (263,24) size 1x0 117 117 RenderTextControl {INPUT} at (2,35) size 256x29 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 118 RenderFlexibleBox {DIV} at (3, 3) size 250x23119 RenderBlock {DIV} at (0, 0) size 231x23118 RenderFlexibleBox {DIV} at (3,0) size 250x29 119 RenderBlock {DIV} at (0,3) size 231x23 120 120 RenderBlock {DIV} at (1,309) size 300x68 121 121 RenderTextControl {INPUT} at (2,2) size 268x30 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 124 124 RenderBR {BR} at (275,25) size 1x0 125 125 RenderTextControl {INPUT} at (2,36) size 268x30 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 126 RenderFlexibleBox {DIV} at (3, 3) size 262x24127 RenderBlock {DIV} at (0, 0) size 243x24126 RenderFlexibleBox {DIV} at (3,0) size 262x30 127 RenderBlock {DIV} at (0,3) size 243x24 128 128 RenderBlock {DIV} at (1,377) size 300x72 129 129 RenderTextControl {INPUT} at (2,2) size 280x32 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 132 132 RenderBR {BR} at (287,26) size 1x0 133 133 RenderTextControl {INPUT} at (2,38) size 280x32 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 134 RenderFlexibleBox {DIV} at (3, 3) size 274x26135 RenderBlock {DIV} at (0, 0) size 255x26134 RenderFlexibleBox {DIV} at (3,0) size 274x32 135 RenderBlock {DIV} at (0,3) size 255x26 136 136 RenderBlock {DIV} at (1,449) size 300x74 137 137 RenderTextControl {INPUT} at (2,2) size 292x33 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 140 140 RenderBR {BR} at (299,27) size 1x0 141 141 RenderTextControl {INPUT} at (2,39) size 292x33 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 142 RenderFlexibleBox {DIV} at (3, 3) size 286x27143 RenderBlock {DIV} at (0, 0) size 267x27142 RenderFlexibleBox {DIV} at (3,0) size 286x33 143 RenderBlock {DIV} at (0,3) size 267x27 144 144 layer at (14,129) size 105x10 145 145 RenderBlock {DIV} at (3,3) size 105x10 … … 206 206 layer at (218,535) size 267x27 207 207 RenderBlock {DIV} at (0,0) size 267x27 208 layer at (10 7,144) size 13x12209 RenderBlock (relative positioned) {DIV} at (9 2,-1) size 14x12210 layer at (11 9,179) size 13x13211 RenderBlock (relative positioned) {DIV} at (10 4,-1) size 14x13212 layer at (1 30,215) size 13x14213 RenderBlock (relative positioned) {DIV} at (11 6,-1) size 14x14214 layer at (14 4,258) size 13x15215 RenderBlock (relative positioned) {DIV} at (12 7,-1) size 14x15216 layer at (15 5,306) size 13x17217 RenderBlock (relative positioned) {DIV} at (13 9,-1) size 14x17218 layer at (16 4,357) size 15x18219 RenderBlock (relative positioned) {DIV} at (14 8,-1) size 16x18220 layer at (17 5,410) size 15x19221 RenderBlock (relative positioned) {DIV} at (15 9,-1) size 16x19222 layer at (18 6,465) size 15x20223 RenderBlock (relative positioned) {DIV} at (1 70,-1) size 16x20224 layer at ( 400,77) size 15x20225 RenderBlock (relative positioned) {DIV} at (18 1,-1) size 16x20226 layer at (41 1,135) size 15x22227 RenderBlock (relative positioned) {DIV} at (19 2,-1) size 16x22228 layer at (41 8,196) size 19x23229 RenderBlock (relative positioned) {DIV} at ( 200,-1) size 20x23230 layer at (4 30,259) size 19x24231 RenderBlock (relative positioned) {DIV} at (21 1,-1) size 20x24232 layer at (4 50,324) size 19x25233 RenderBlock (relative positioned) {DIV} at (23 1,-1) size 20x25234 layer at (46 2,391) size 19x26235 RenderBlock (relative positioned) {DIV} at (24 3,-1) size 20x26236 layer at (47 4,461) size 19x28237 RenderBlock (relative positioned) {DIV} at (25 5,-1) size 20x28238 layer at (48 6,534) size 19x29239 RenderBlock (relative positioned) {DIV} at (26 7,-1) size 20x29208 layer at (106,143) size 13x15 209 RenderBlock (relative positioned) {DIV} at (91,0) size 14x15 210 layer at (118,178) size 13x15 211 RenderBlock (relative positioned) {DIV} at (103,0) size 14x15 212 layer at (129,215) size 13x15 213 RenderBlock (relative positioned) {DIV} at (115,0) size 14x15 214 layer at (143,257) size 13x17 215 RenderBlock (relative positioned) {DIV} at (126,0) size 14x17 216 layer at (154,306) size 13x18 217 RenderBlock (relative positioned) {DIV} at (138,0) size 14x18 218 layer at (163,356) size 15x20 219 RenderBlock (relative positioned) {DIV} at (147,0) size 16x20 220 layer at (174,409) size 15x21 221 RenderBlock (relative positioned) {DIV} at (158,0) size 16x21 222 layer at (185,464) size 15x23 223 RenderBlock (relative positioned) {DIV} at (169,0) size 16x23 224 layer at (399,75) size 15x24 225 RenderBlock (relative positioned) {DIV} at (180,0) size 16x24 226 layer at (410,133) size 15x26 227 RenderBlock (relative positioned) {DIV} at (191,0) size 16x26 228 layer at (417,194) size 19x27 229 RenderBlock (relative positioned) {DIV} at (199,0) size 20x27 230 layer at (429,257) size 19x28 231 RenderBlock (relative positioned) {DIV} at (210,-1) size 20x30 232 layer at (449,322) size 19x30 233 RenderBlock (relative positioned) {DIV} at (230,-1) size 20x31 234 layer at (461,388) size 19x32 235 RenderBlock (relative positioned) {DIV} at (242,-1) size 20x32 236 layer at (473,459) size 19x33 237 RenderBlock (relative positioned) {DIV} at (254,-1) size 20x34 238 layer at (485,531) size 19x35 239 RenderBlock (relative positioned) {DIV} at (266,-1) size 20x35 -
trunk/LayoutTests/platform/mac/fast/forms/input-appearance-spinbutton-up-expected.txt
r202826 r217418 10 10 RenderBlock (anonymous) at (0,34) size 784x31 11 11 RenderTextControl {INPUT} at (2,2) size 225x27 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 12 RenderFlexibleBox {DIV} at (3, 3) size 219x2113 RenderBlock {DIV} at (0, 0) size 200x2112 RenderFlexibleBox {DIV} at (3,0) size 219x27 13 RenderBlock {DIV} at (0,3) size 200x21 14 14 RenderText {#text} at (0,0) size 0x0 15 15 RenderText {#text} at (0,0) size 0x0 … … 18 18 RenderText {#text} at (0,0) size 8x21 19 19 text run at (0,0) width 8: "1" 20 layer at (21 3,46) size 19x2321 RenderBlock (relative positioned) {DIV} at ( 200,-1) size 20x2320 layer at (212,44) size 19x27 21 RenderBlock (relative positioned) {DIV} at (199,0) size 20x27 22 22 caret: position 1 of child 0 {#text} of child 0 {DIV} of child 0 {DIV} of child 0 {DIV} of {#document-fragment} of child 5 {INPUT} of body -
trunk/LayoutTests/platform/mac/fast/forms/number/number-appearance-rtl-expected.txt
r202826 r217418 6 6 RenderBlock {P} at (0,0) size 784x23 7 7 RenderTextControl {INPUT} at (636,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 8 RenderFlexibleBox {DIV} at (3, 3) size 140x139 RenderBlock {DIV} at (13, 0) size 127x138 RenderFlexibleBox {DIV} at (3,1) size 140x17 9 RenderBlock {DIV} at (13,1) size 127x14 10 10 RenderText {#text} at (0,0) size 0x0 11 11 RenderBlock {P} at (0,39) size 784x23 12 12 RenderTextControl {INPUT} at (636,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 13 RenderFlexibleBox {DIV} at (3, 3) size 140x1314 RenderBlock {DIV} at (13, 0) size 127x1313 RenderFlexibleBox {DIV} at (3,1) size 140x17 14 RenderBlock {DIV} at (13,1) size 127x14 15 15 RenderText {#text} at (0,0) size 0x0 16 16 RenderBlock {P} at (0,78) size 784x23 17 17 RenderTextControl {INPUT} at (2,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 18 RenderFlexibleBox {DIV} at (3, 3) size 140x1319 RenderBlock {DIV} at (13, 0) size 127x1318 RenderFlexibleBox {DIV} at (3,1) size 140x17 19 RenderBlock {DIV} at (13,1) size 127x14 20 20 RenderText {#text} at (0,0) size 0x0 21 21 RenderBlock {P} at (0,117) size 784x23 22 22 RenderTextControl {INPUT} at (2,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 23 RenderFlexibleBox {DIV} at (3, 3) size 140x1324 RenderBlock {DIV} at (13, 0) size 127x1323 RenderFlexibleBox {DIV} at (3,1) size 140x17 24 RenderBlock {DIV} at (13,1) size 127x14 25 25 RenderText {#text} at (0,0) size 0x0 26 26 RenderText {#text} at (0,0) size 0x0 27 27 RenderBlock {P} at (0,156) size 784x23 28 28 RenderTextControl {INPUT} at (2,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 29 RenderFlexibleBox {DIV} at (3, 3) size 140x1330 RenderBlock {DIV} at (0, 0) size 127x1329 RenderFlexibleBox {DIV} at (3,1) size 140x17 30 RenderBlock {DIV} at (0,1) size 127x14 31 31 RenderText {#text} at (0,0) size 0x0 32 32 RenderBlock {P} at (0,195) size 784x23 33 33 RenderTextControl {INPUT} at (2,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 34 RenderFlexibleBox {DIV} at (3, 3) size 140x1335 RenderBlock {DIV} at (0, 0) size 127x1334 RenderFlexibleBox {DIV} at (3,1) size 140x17 35 RenderBlock {DIV} at (0,1) size 127x14 36 36 RenderText {#text} at (0,0) size 0x0 37 37 RenderText {#text} at (0,0) size 0x0 38 38 RenderBlock {P} at (0,234) size 784x23 39 39 RenderTextControl {INPUT} at (2,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 40 RenderFlexibleBox {DIV} at (3, 3) size 140x1341 RenderBlock {DIV} at (13, 0) size 127x1340 RenderFlexibleBox {DIV} at (3,1) size 140x17 41 RenderBlock {DIV} at (13,1) size 127x14 42 42 RenderText {#text} at (0,0) size 0x0 43 43 RenderBlock {P} at (0,273) size 784x23 44 44 RenderTextControl {INPUT} at (2,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 45 RenderFlexibleBox {DIV} at (3, 3) size 140x1346 RenderBlock {DIV} at (13, 0) size 127x1345 RenderFlexibleBox {DIV} at (3,1) size 140x17 46 RenderBlock {DIV} at (13,1) size 127x14 47 47 RenderText {#text} at (0,0) size 0x0 48 48 RenderText {#text} at (0,0) size 0x0 … … 79 79 RenderText {#text} at (119,0) size 8x13 80 80 text run at (119,0) width 8: "8" 81 layer at (64 6,20) size 13x1582 RenderBlock (relative positioned) {DIV} at ( -1,-1) size 13x1583 layer at (64 6,59) size 13x1584 RenderBlock (relative positioned) {DIV} at ( -1,-1) size 13x1585 layer at (1 2,98) size 13x1586 RenderBlock (relative positioned) {DIV} at ( -1,-1) size 13x1587 layer at (1 2,137) size 13x1588 RenderBlock (relative positioned) {DIV} at ( -1,-1) size 13x1589 layer at (14 1,176) size 13x1590 RenderBlock (relative positioned) {DIV} at (12 7,-1) size 14x1591 layer at (14 1,215) size 13x1592 RenderBlock (relative positioned) {DIV} at (12 7,-1) size 14x1593 layer at (1 2,254) size 13x1594 RenderBlock (relative positioned) {DIV} at ( -1,-1) size 13x1595 layer at (1 2,293) size 13x1596 RenderBlock (relative positioned) {DIV} at ( -1,-1) size 13x1581 layer at (647,19) size 13x17 82 RenderBlock (relative positioned) {DIV} at (0,0) size 13x17 83 layer at (647,58) size 13x17 84 RenderBlock (relative positioned) {DIV} at (0,0) size 13x17 85 layer at (13,97) size 13x17 86 RenderBlock (relative positioned) {DIV} at (0,0) size 13x17 87 layer at (13,136) size 13x17 88 RenderBlock (relative positioned) {DIV} at (0,0) size 13x17 89 layer at (140,175) size 13x17 90 RenderBlock (relative positioned) {DIV} at (126,0) size 14x17 91 layer at (140,214) size 13x17 92 RenderBlock (relative positioned) {DIV} at (126,0) size 14x17 93 layer at (13,253) size 13x17 94 RenderBlock (relative positioned) {DIV} at (0,0) size 13x17 95 layer at (13,292) size 13x17 96 RenderBlock (relative positioned) {DIV} at (0,0) size 13x17 97 97 caret: position 4 of child 0 {#text} of child 0 {DIV} of child 0 {DIV} of child 0 {DIV} of {#document-fragment} of child 0 {INPUT} of child 6 {P} of body -
trunk/LayoutTests/platform/mac/fast/forms/number/number-appearance-spinbutton-disabled-readonly-expected.txt
r202826 r217418 11 11 RenderInline {LABEL} at (0,0) size 347x18 12 12 RenderTextControl {INPUT} at (2,2) size 256x29 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 13 RenderFlexibleBox {DIV} at (3, 3) size 250x2314 RenderBlock {DIV} at (0, 0) size 231x2313 RenderFlexibleBox {DIV} at (3,0) size 250x29 14 RenderBlock {DIV} at (0,3) size 231x23 15 15 RenderText {#text} at (259,10) size 88x18 16 16 text run at (259,10) width 88: " Normal state" … … 18 18 RenderInline {LABEL} at (0,0) size 355x18 19 19 RenderTextControl {INPUT} at (2,2) size 256x29 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 20 RenderFlexibleBox {DIV} at (3, 3) size 250x2321 RenderBlock {DIV} at (0, 0) size 231x2320 RenderFlexibleBox {DIV} at (3,0) size 250x29 21 RenderBlock {DIV} at (0,3) size 231x23 22 22 RenderText {#text} at (259,10) size 96x18 23 23 text run at (259,10) width 96: " Disabled state" … … 25 25 RenderInline {LABEL} at (0,0) size 364x18 26 26 RenderTextControl {INPUT} at (2,2) size 256x29 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 27 RenderFlexibleBox {DIV} at (3, 3) size 250x2328 RenderBlock {DIV} at (0, 0) size 231x2327 RenderFlexibleBox {DIV} at (3,0) size 250x29 28 RenderBlock {DIV} at (0,3) size 231x23 29 29 RenderText {#text} at (259,10) size 105x18 30 30 text run at (259,10) width 105: " Read-only state" … … 41 41 RenderText {#text} at (0,0) size 13x23 42 42 text run at (0,0) width 13: "0" 43 layer at (24 5,64) size 19x2544 RenderBlock (relative positioned) {DIV} at (23 1,-1) size 20x2545 layer at (24 5,97) size 19x2546 RenderBlock (relative positioned) {DIV} at (23 1,-1) size 20x2547 layer at (24 5,130) size 19x2548 RenderBlock (relative positioned) {DIV} at (23 1,-1) size 20x2543 layer at (244,62) size 19x30 44 RenderBlock (relative positioned) {DIV} at (230,-1) size 20x31 45 layer at (244,95) size 19x30 46 RenderBlock (relative positioned) {DIV} at (230,-1) size 20x31 47 layer at (244,128) size 19x30 48 RenderBlock (relative positioned) {DIV} at (230,-1) size 20x31 -
trunk/LayoutTests/platform/mac/fast/forms/number/number-appearance-spinbutton-layer-expected.txt
r202826 r217418 4 4 RenderBlock {HTML} at (0,0) size 800x62 5 5 RenderBody {BODY} at (8,8) size 784x46 6 RenderBR {BR} at (149, 2) size 1x186 RenderBR {BR} at (149,1) size 1x18 7 7 RenderTextControl {INPUT} at (2,25) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 8 RenderFlexibleBox {DIV} at (3, 3) size 140x139 RenderBlock {DIV} at (0, 0) size 127x138 RenderFlexibleBox {DIV} at (3,1) size 140x17 9 RenderBlock {DIV} at (0,1) size 127x14 10 10 RenderText {#text} at (0,0) size 0x0 11 11 layer at (13,36) size 127x13 … … 15 15 layer at (10,10) size 146x19 16 16 RenderTextControl {INPUT} at (2,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 17 RenderFlexibleBox {DIV} at (3, 3) size 140x1318 RenderBlock {DIV} at (0, 0) size 127x1317 RenderFlexibleBox {DIV} at (3,1) size 140x17 18 RenderBlock {DIV} at (0,1) size 127x14 19 19 layer at (13,13) size 127x13 20 20 RenderBlock {DIV} at (0,0) size 127x13 21 21 RenderText {#text} at (0,0) size 13x13 22 22 text run at (0,0) width 13: "10" 23 layer at (14 1,12) size 13x1524 RenderBlock (relative positioned) {DIV} at (12 7,-1) size 14x1525 layer at (14 1,35) size 13x1526 RenderBlock (relative positioned) {DIV} at (12 7,-1) size 14x1523 layer at (140,11) size 13x17 24 RenderBlock (relative positioned) {DIV} at (126,0) size 14x17 25 layer at (140,34) size 13x17 26 RenderBlock (relative positioned) {DIV} at (126,0) size 14x17 -
trunk/LayoutTests/platform/mac/fast/forms/search-vertical-alignment-expected.txt
r202826 r217418 53 53 RenderText {#text} at (0,0) size 23x13 54 54 text run at (0,0) width 23: "Text" 55 layer at (203,12 4) size 140x1356 RenderBlock {DIV} at (3,1) size 140x1 355 layer at (203,125) size 140x13 56 RenderBlock {DIV} at (3,1) size 140x14 57 57 RenderText {#text} at (0,0) size 23x13 58 58 text run at (0,0) width 23: "Text" -
trunk/Source/WebCore/ChangeLog
r217411 r217418 1 2017-05-25 Dave Hyatt <hyatt@apple.com> 2 3 Baseline of number inputs not right. 4 https://bugs.webkit.org/show_bug.cgi?id=172237 5 6 Reviewed by Dean Jackson. 7 8 Added fast/forms/baseline-of-number-inputs.html 9 10 * css/html.css: 11 (input::-webkit-inner-spin-button): 12 * rendering/RenderSearchField.cpp: 13 (WebCore::RenderSearchField::computeLogicalHeightLimit): Deleted. 14 (WebCore::RenderSearchField::centerContainerIfNeeded): Deleted. 15 * rendering/RenderSearchField.h: 16 * rendering/RenderTextControlSingleLine.cpp: 17 (WebCore::RenderTextControlSingleLine::centerRenderer): 18 (WebCore::RenderTextControlSingleLine::layout): 19 (WebCore::RenderTextControlSingleLine::computeLogicalHeightLimit): Deleted. 20 * rendering/RenderTextControlSingleLine.h: 21 (WebCore::RenderTextControlSingleLine::centerContainerIfNeeded): Deleted. 22 1 23 2017-05-25 Manuel Rego Casasnovas <rego@igalia.com> 2 24 -
trunk/Source/WebCore/css/html.css
r216418 r217418 539 539 * button in layout(). */ 540 540 height: 1.5em; 541 vertical-align: top;542 541 flex: none; 543 542 -webkit-user-select: none; -
trunk/Source/WebCore/rendering/RenderSearchField.cpp
r215830 r217418 363 363 } 364 364 365 LayoutUnit RenderSearchField::computeLogicalHeightLimit() const 366 { 367 return logicalHeight(); 368 } 369 370 void RenderSearchField::centerContainerIfNeeded(RenderBox* containerRenderer) const 371 { 372 if (!containerRenderer) 373 return; 374 375 if (containerRenderer->logicalHeight() <= contentLogicalHeight()) 376 return; 377 378 // A quirk for find-in-page box on Safari Windows. 379 // http://webkit.org/b/63157 380 centerRenderer(*containerRenderer); 381 } 382 383 } 365 } -
trunk/Source/WebCore/rendering/RenderSearchField.h
r216131 r217418 49 49 50 50 void willBeDestroyed() override; 51 void centerContainerIfNeeded(RenderBox*) const override;52 51 LayoutUnit computeControlLogicalHeight(LayoutUnit lineHeight, LayoutUnit nonContentHeight) const override; 53 LayoutUnit computeLogicalHeightLimit() const override;54 52 void updateFromElement() override; 55 53 EVisibility visibilityForCancelButton() const; -
trunk/Source/WebCore/rendering/RenderTextControlSingleLine.cpp
r210828 r217418 64 64 } 65 65 66 LayoutUnit RenderTextControlSingleLine::computeLogicalHeightLimit() const67 {68 return containerElement() ? contentLogicalHeight() : logicalHeight();69 }70 71 66 void RenderTextControlSingleLine::centerRenderer(RenderBox& renderer) const 72 67 { 73 68 LayoutUnit logicalHeightDiff = renderer.logicalHeight() - contentLogicalHeight(); 74 float center = logicalHeightDiff / 2; 75 renderer.setLogicalTop(renderer.logicalTop() - LayoutUnit(round(center))); 69 renderer.setLogicalTop(renderer.logicalTop() - logicalHeightDiff / 2); 76 70 } 77 71 … … 120 114 // Set the text block height 121 115 LayoutUnit desiredLogicalHeight = textBlockLogicalHeight(); 122 LayoutUnit logicalHeightLimit = computeLogicalHeightLimit();116 LayoutUnit logicalHeightLimit = logicalHeight(); 123 117 if (innerTextRenderer && innerTextRenderer->logicalHeight() > logicalHeightLimit) { 124 118 if (desiredLogicalHeight != innerTextRenderer->logicalHeight()) … … 153 147 if (!container && innerTextRenderer && innerTextRenderer->height() != contentLogicalHeight()) 154 148 centerRenderer(*innerTextRenderer); 155 else 156 centerContainerIfNeeded(containerRenderer); 157 158 // Ignores the paddings for the inner spin button. 159 if (RenderBox* innerSpinBox = innerSpinButtonElement() ? innerSpinButtonElement()->renderBox() : 0) { 160 RenderBox* parentBox = innerSpinBox->parentBox(); 161 if (containerRenderer && !containerRenderer->style().isLeftToRightDirection()) 162 innerSpinBox->setLogicalLocation(LayoutPoint(-paddingLogicalLeft(), -paddingBefore())); 163 else 164 innerSpinBox->setLogicalLocation(LayoutPoint(parentBox->logicalWidth() - innerSpinBox->logicalWidth() + paddingLogicalRight(), -paddingBefore())); 165 innerSpinBox->setLogicalHeight(logicalHeight() - borderBefore() - borderAfter()); 166 } 149 else if (container && containerRenderer && containerRenderer->height() != contentLogicalHeight()) 150 centerRenderer(*containerRenderer); 167 151 168 152 HTMLElement* placeholderElement = inputElement().placeholderElement(); -
trunk/Source/WebCore/rendering/RenderTextControlSingleLine.h
r208668 r217418 34 34 35 35 protected: 36 virtual void centerContainerIfNeeded(RenderBox*) const { }37 virtual LayoutUnit computeLogicalHeightLimit() const;38 36 void centerRenderer(RenderBox& renderer) const; 39 37 HTMLElement* containerElement() const;
Note: See TracChangeset
for help on using the changeset viewer.