Changeset 89407 in webkit
- Timestamp:
- Jun 21, 2011 9:36:29 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 45 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r89405 r89407 1 2011-06-21 Kent Tamura <tkent@chromium.org> 2 3 Reviewed by Dimitri Glazkov. 4 5 Avoid custom layout code of RenderTextControlSingleLine 6 https://bugs.webkit.org/show_bug.cgi?id=61415 7 8 Update tests including <input type=search> or <input type=number>. Their 9 internal structures are changed. 10 Slight position changes for search result buttons and search cancel 11 buttons are expected. 12 13 * fast/css/text-input-with-webkit-border-radius-expected.txt: 14 * platform/chromium/test_expectations.txt: 15 * platform/mac/fast/css/input-search-padding-expected.png: 16 * platform/mac/fast/css/input-search-padding-expected.txt: 17 * platform/mac/fast/css/pseudo-cache-stale-expected.txt: 18 * platform/mac/fast/forms/box-shadow-override-expected.txt: 19 * platform/mac/fast/forms/control-restrict-line-height-expected.txt: 20 * platform/mac/fast/forms/input-appearance-height-expected.txt: 21 * platform/mac/fast/forms/input-appearance-spinbutton-disabled-readonly-expected.txt: 22 * platform/mac/fast/forms/input-appearance-spinbutton-expected.txt: 23 * platform/mac/fast/forms/input-appearance-spinbutton-layer-expected.txt: 24 * platform/mac/fast/forms/input-appearance-spinbutton-up-expected.txt: 25 * platform/mac/fast/forms/input-appearance-spinbutton-visibility-expected.txt: 26 * platform/mac/fast/forms/placeholder-position-expected.txt: 27 * platform/mac/fast/forms/placeholder-pseudo-style-expected.txt: 28 * platform/mac/fast/forms/placeholder-set-value-expected.txt: 29 * platform/mac/fast/forms/search-cancel-button-style-sharing-expected.txt: 30 * platform/mac/fast/forms/search-display-none-cancel-button-expected.txt: 31 * platform/mac/fast/forms/search-placeholder-value-changed-expected.txt: 32 * platform/mac/fast/forms/search-rtl-expected.txt: 33 * platform/mac/fast/forms/search-styled-expected.txt: 34 * platform/mac/fast/forms/search-transformed-expected.txt: 35 * platform/mac/fast/forms/search-vertical-alignment-expected.png: 36 * platform/mac/fast/forms/search-vertical-alignment-expected.txt: 37 * platform/mac/fast/forms/search-zoomed-expected.txt: 38 * platform/mac/fast/forms/searchfield-heights-expected.txt: 39 * platform/mac/fast/repaint/search-field-cancel-expected.png: 40 * platform/mac/fast/repaint/search-field-cancel-expected.txt: 41 * platform/mac/fast/replaced/width100percent-searchfield-expected.txt: 42 * platform/mac/fast/table/colspanMinWidth-vertical-expected.png: 43 * platform/mac/fast/table/colspanMinWidth-vertical-expected.txt: 44 * fast/forms/search-cancel-button-mouseup.html: Adjust click position for the cancel button. 45 * fast/forms/search-abs-pos-cancel-button.html: ditto. 46 1 47 2011-06-21 Yuta Kitamura <yutak@chromium.org> 2 48 -
trunk/LayoutTests/fast/css/text-input-with-webkit-border-radius-expected.txt
r78913 r89407 17 17 RenderBlock {DIV} at (0,68) size 163x45 [bgcolor=#888888] 18 18 RenderTextControl {INPUT} at (11,9) size 133x19 [bgcolor=#00FF00] [border: (2px inset #000000)] 19 RenderBlock {DIV} at (3,3) size 127x13 20 RenderBlock {DIV} at (0,0) size 8x11 21 RenderBlock {DIV} at (114,0) size 13x11 19 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 127x13 20 RenderBlock {DIV} at (0,1) size 8x11 21 RenderBlock {DIV} at (8,0) size 106x13 22 RenderBlock {DIV} at (114,1) size 13x11 22 23 RenderText {#text} at (0,0) size 0x0 23 24 layer at (30,96) size 106x13 24 RenderBlock {DIV} at ( 8,0) size 106x1325 RenderBlock {DIV} at (0,0) size 106x13 25 26 RenderText {#text} at (1,0) size 62x13 26 27 text run at (1,0) width 62: "default text" -
trunk/LayoutTests/fast/forms/search-abs-pos-cancel-button.html
r43007 r89407 19 19 if (window.eventSender) { 20 20 var target = document.getElementById("target"); 21 var x = target.offsetLeft + target.offsetWidth - 4;21 var x = target.offsetLeft + target.offsetWidth - 9; 22 22 var y = target.offsetTop + target.offsetHeight / 2; 23 23 eventSender.mouseMoveTo(x, y); -
trunk/LayoutTests/fast/forms/search-cancel-button-mouseup.html
r19411 r89407 14 14 var s3 = document.getElementById("search3"); 15 15 16 var buttonX = s1.offsetLeft + s1.offsetWidth - 6;16 var buttonX = s1.offsetLeft + s1.offsetWidth - 9; 17 17 var middleX = s1.offsetLeft + s1.offsetWidth / 2; 18 18 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r89405 r89407 1267 1267 BUGCR23488 MAC : fast/canvas/canvas-incremental-repaint-2.html = IMAGE 1268 1268 BUGCR23488 LEOPARD : fast/css/shadow-multiple.html = IMAGE 1269 BUGCR23488 MAC : fast/forms/search-vertical-alignment.html = IMAGE1270 1269 BUGCR23488 LEOPARD : fast/frames/content-opacity-1.html = IMAGE 1271 1270 BUGCR23488 LEOPARD : fast/frames/content-opacity-2.html = IMAGE … … 1364 1363 BUGCR23473 MAC : fast/repaint/rel-positioned-inline-with-overflow.html = IMAGE 1365 1364 BUGCR23473 MAC : fast/repaint/repaint-resized-overflow.html = IMAGE 1366 BUGCR23473 MAC : fast/repaint/search-field-cancel.html = IMAGE1365 //BUGCR23473 MAC : fast/repaint/search-field-cancel.html = IMAGE 1367 1366 BUGCR23473 MAC : fast/repaint/selected-replaced.html = IMAGE 1368 1367 BUGCR23473 MAC : fast/repaint/selection-after-delete.html = IMAGE … … 1420 1419 BUGCR5737 LINUX : fast/forms/input-first-letter.html = FAIL 1421 1420 1422 // The (x) in type=search inputs appears to be slightly broken. This test will also need a rebaseline.1423 BUGCR20439 WIN LINUX : fast/forms/search-transformed.html = FAIL1424 1425 1421 // New test. We should fix it, but it doesn't need to block the current release 1426 1422 BUGCR10418 WIN DEBUG : animations/change-keyframes-name.html = FAIL PASS … … 1461 1457 // Mac flaky failures. 1462 1458 BUGCR10472 MAC DEBUG : svg/css/glyph-orientation-rounding-test.xhtml = FAIL PASS 1463 1464 // <input type="search">; various failures, some tests may simply need new1465 // baselines, others have more problems.1466 BUGCR10473 LINUX : fast/forms/placeholder-set-value.html = FAIL1467 BUGCR10473 LINUX : fast/forms/search-display-none-cancel-button.html = FAIL1468 BUGCR10473 LINUX : fast/replaced/width100percent-searchfield.html = FAIL1469 1459 1470 1460 // This test isn't just slow -- sometimes it times out indefinitely. … … 1938 1928 BUGCR42875 WONTFIX SKIP : sputnik = TEXT 1939 1929 1940 // WebKit roll 58626:587191941 BUGCR43963 WIN : fast/forms/searchfield-heights.html = IMAGE1942 BUGCR43963 LINUX : fast/forms/searchfield-heights.html = IMAGE+TEXT TEXT1943 1944 1930 BUGWK38705 : http/tests/security/sandbox-inherit-to-initial-document-2.html = TEXT 1945 1931 … … 2568 2554 BUGCR62433 MAC LINUX : fast/backgrounds/animated-gif-as-background.html = IMAGE 2569 2555 BUGCR62433 MAC LINUX : fast/images/gif-loop-count.html = IMAGE 2570 2571 // Similar to the above, input-search related failures2572 BUG_DRT MAC : fast/css/input-search-padding.html = IMAGE2573 2556 2574 2557 // Background color is wrong. … … 2927 2910 BUGWK54322 SNOWLEOPARD : fast/forms/input-file-re-render.html = IMAGE 2928 2911 BUGWK54322 SNOWLEOPARD : fast/forms/preserveFormDuringResidualStyle.html = IMAGE 2929 BUGWK54322 SNOWLEOPARD : fast/forms/search-transformed.html = IMAGE2930 2912 BUGWK54322 SNOWLEOPARD : fast/images/favicon-as-image.html = IMAGE+TEXT 2931 2913 //BUGWK54322 SNOWLEOPARD : fast/inline/inline-box-background-long-image.html = IMAGE … … 3204 3186 // new baselines. 3205 3187 BUGWK58193 WIN7 : fast/css/first-letter-first-line-hover.html = IMAGE+TEXT 3206 BUGWK58193 WIN7 : fast/forms/search-styled.html = IMAGE+TEXT3207 3188 BUGWK58193 WIN7 : fast/text/backslash-to-yen-sign-euc.html = IMAGE+TEXT 3208 3189 BUGWK58193 WIN7 : fast/text/backslash-to-yen-sign.html = IMAGE+TEXT … … 3286 3267 BUGWK58193 WIN7 : http/tests/local/fileapi/send-sliced-dragged-file.html = TIMEOUT PASS TEXT 3287 3268 3288 BUGWK58193 VISTA : fast/forms/search-styled.html = IMAGE+TEXT3289 3269 BUGWK58193 VISTA : fast/text/backslash-to-yen-sign-euc.html = IMAGE+TEXT 3290 3270 BUGWK58193 VISTA : fast/text/international/khmer-selection.html = IMAGE+TEXT … … 3742 3722 BUGWK60931 DEBUG : http/tests/security/javascriptURL/xss-ALLOWED-to-javascript-url-window-open.html = CRASH 3743 3723 3724 // Needs rebaseline. 3725 BUGWK61415 : fast/css/input-search-padding.html = FAIL 3726 BUGWK61415 : fast/css/pseudo-cache-stale.html = FAIL 3727 BUGWK61415 : fast/css/text-input-with-webkit-border-radius.html = FAIL 3728 BUGWK61415 : fast/forms/box-shadow-override.html = FAIL 3729 BUGWK61415 : fast/forms/control-restrict-line-height.html = FAIL 3730 BUGWK61415 : fast/forms/input-appearance-height.html = FAIL 3731 BUGWK61415 : fast/forms/input-appearance-spinbutton-disabled-readonly.html = FAIL 3732 BUGWK61415 : fast/forms/input-appearance-spinbutton-layer.html = FAIL 3733 BUGWK61415 : fast/forms/input-appearance-spinbutton-visibility.html = FAIL 3734 BUGWK61415 : fast/forms/placeholder-position.html = FAIL 3735 BUGWK61415 : fast/forms/placeholder-pseudo-style.html = FAIL 3736 BUGWK61415 : fast/forms/placeholder-set-value.html = FAIL 3737 BUGWK61415 : fast/forms/search-cancel-button-style-sharing.html = FAIL 3738 BUGWK61415 : fast/forms/search-display-none-cancel-button.html = FAIL 3739 BUGWK61415 : fast/forms/search-placeholder-value-changed.html = FAIL 3740 BUGWK61415 : fast/forms/search-rtl.html = FAIL 3741 BUGWK61415 : fast/forms/search-styled.html = FAIL 3742 BUGWK61415 : fast/forms/search-transformed.html = FAIL 3743 BUGWK61415 : fast/forms/search-vertical-alignment.html = FAIL 3744 BUGWK61415 : fast/forms/search-zoomed.html = FAIL 3745 BUGWK61415 : fast/forms/searchfield-heights.html = FAIL 3746 // Do not update an image for search-field-cancel.html. 3747 BUGWK61415 : fast/repaint/search-field-cancel.html = FAIL 3748 BUGWK61415 : fast/replaced/width100percent-searchfield.html = FAIL 3749 BUGWK61415 WIN MAC : fast/speech/input-appearance-numberandspeech.html = FAIL 3750 BUGWK61415 WIN MAC : fast/speech/input-appearance-speechbutton.html = FAIL 3751 BUGWK61415 : fast/table/colspanMinWidth-vertical.html = FAIL 3752 BUGWK61415 : platform/mac/fast/forms/input-appearance-spinbutton-up.html = FAIL 3753 BUGWK61415 : platform/mac/fast/forms/input-appearance-spinbutton.html = FAIL 3754 3744 3755 // Flaky since added by r86478 3745 3756 BUGCR82881 : http/tests/appcache/interrupted-update.html = PASS TEXT -
trunk/LayoutTests/platform/mac/fast/css/input-search-padding-expected.txt
r78894 r89407 5 5 RenderBody {BODY} at (8,8) size 784x584 6 6 RenderTextControl {INPUT} at (2,2) size 429x82 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 7 RenderBlock {DIV} at (3,17) size 423x47 8 RenderBlock {DIV} at (0,26) size 10x13 9 RenderBlock {DIV} at (407,26) size 16x13 10 RenderBR {BR} at (433,86) size 0x0 7 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 423x47 8 RenderBlock {DIV} at (0,17) size 10x13 9 RenderBlock {DIV} at (10,0) size 397x47 10 RenderBlock {DIV} at (407,17) size 16x13 11 RenderBR {BR} at (433,44) size 0x0 11 12 RenderTextControl {INPUT} at (2,88) size 429x82 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 12 RenderBR {BR} at (433,1 72) size 0x013 RenderBR {BR} at (433,130) size 0x0 13 14 RenderTextControl {INPUT} at (2,172) size 224x25 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 14 RenderBlock {DIV} at (6,1) size 212x23 15 RenderBlock {DIV} at (0,6) size 10x13 16 RenderBlock {DIV} at (196,6) size 16x13 17 layer at (23,27) size 397x47 scrollWidth 410 18 RenderBlock {DIV} at (10,0) size 397x47 15 RenderDeprecatedFlexibleBox {DIV} at (6,6) size 212x13 16 RenderBlock {DIV} at (0,0) size 10x13 17 RenderBlock {DIV} at (10,0) size 186x13 18 RenderBlock {DIV} at (196,0) size 16x13 19 layer at (23,13) size 397x47 scrollWidth 410 20 RenderBlock {DIV} at (0,0) size 397x47 19 21 RenderText {#text} at (1,0) size 408x47 20 22 text run at (1,0) width 408: "value jgq not clipped" 21 layer at (13, 113) size 423x4722 RenderBlock {DIV} at (3, 17) size 423x4723 layer at (13,99) size 423x47 24 RenderBlock {DIV} at (3,3) size 423x47 23 25 RenderText {#text} at (1,0) size 408x47 24 26 text run at (1,0) width 408: "value jgq not clipped" 25 layer at (26,18 1) size 186x2326 RenderBlock {DIV} at ( 10,0) size 186x2327 layer at (26,186) size 186x13 scrollHeight 23 28 RenderBlock {DIV} at (0,0) size 186x13 27 29 RenderText {#text} at (1,0) size 127x23 28 30 text run at (1,0) width 127: "Sample Input" -
trunk/LayoutTests/platform/mac/fast/css/pseudo-cache-stale-expected.txt
r72052 r89407 15 15 RenderBlock (anonymous) at (0,74) size 784x23 16 16 RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 17 RenderBlock {DIV} at (3,3) size 119x13 18 RenderBlock {DIV} at (0,0) size 8x11 19 RenderBlock {DIV} at (106,0) size 13x11 17 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 18 RenderBlock {DIV} at (0,1) size 8x11 19 RenderBlock {DIV} at (8,0) size 98x13 20 RenderBlock {DIV} at (106,1) size 13x11 20 21 RenderText {#text} at (0,0) size 0x0 21 22 RenderText {#text} at (0,0) size 0x0 22 23 layer at (21,87) size 98x13 23 RenderBlock {DIV} at ( 8,0) size 98x1324 RenderBlock {DIV} at (0,0) size 98x13 -
trunk/LayoutTests/platform/mac/fast/forms/box-shadow-override-expected.txt
r88952 r89407 12 12 RenderBlock {DIV} at (0,68) size 784x23 13 13 RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 14 RenderBlock {DIV} at (3,3) size 119x13 15 RenderBlock {DIV} at (0,0) size 8x11 16 RenderBlock {DIV} at (106,0) size 13x11 14 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 15 RenderBlock {DIV} at (0,1) size 8x11 16 RenderBlock {DIV} at (8,0) size 98x13 17 RenderBlock {DIV} at (106,1) size 13x11 17 18 RenderText {#text} at (0,0) size 0x0 18 19 RenderBlock {DIV} at (0,91) size 784x23 19 20 RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 20 RenderBlock {DIV} at (3,3) size 119x13 21 RenderBlock {DIV} at (0,0) size 17x11 22 RenderBlock {DIV} at (106,0) size 13x11 21 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 22 RenderBlock {DIV} at (0,1) size 17x11 23 RenderBlock {DIV} at (17,0) size 89x13 24 RenderBlock {DIV} at (106,1) size 13x11 23 25 RenderText {#text} at (0,0) size 0x0 24 26 RenderBlock {DIV} at (0,114) size 784x23 25 27 RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 26 RenderBlock {DIV} at (3,3) size 119x13 27 RenderBlock {DIV} at (0,0) size 22x11 28 RenderBlock {DIV} at (106,0) size 13x11 28 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 29 RenderBlock {DIV} at (0,1) size 22x11 30 RenderBlock {DIV} at (22,0) size 84x13 31 RenderBlock {DIV} at (106,1) size 13x11 29 32 RenderText {#text} at (0,0) size 0x0 30 33 RenderBlock (anonymous) at (0,137) size 784x32 … … 72 75 RenderText {#text} at (0,0) size 0x0 73 76 layer at (21,81) size 98x13 74 RenderBlock {DIV} at ( 8,0) size 98x1377 RenderBlock {DIV} at (0,0) size 98x13 75 78 RenderText {#text} at (1,0) size 36x13 76 79 text run at (1,0) width 36: "Search" 77 80 layer at (30,104) size 89x13 78 RenderBlock {DIV} at ( 17,0) size 89x1381 RenderBlock {DIV} at (0,0) size 89x13 79 82 layer at (35,127) size 84x13 80 RenderBlock {DIV} at ( 22,0) size 84x1383 RenderBlock {DIV} at (0,0) size 84x13 81 84 layer at (107,153) size 15x15 82 85 RenderBlock (relative positioned) {DIV} at (0,0) size 15x15 -
trunk/LayoutTests/platform/mac/fast/forms/control-restrict-line-height-expected.txt
r78884 r89407 22 22 RenderBR {BR} at (0,0) size 0x0 23 23 RenderTextControl {INPUT} at (2,64) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 24 RenderBlock {DIV} at (3,3) size 119x13 25 RenderBlock {DIV} at (0,0) size 8x11 26 RenderBlock {DIV} at (106,0) size 13x11 24 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 25 RenderBlock {DIV} at (0,1) size 8x11 26 RenderBlock {DIV} at (8,0) size 98x13 27 RenderBlock {DIV} at (106,1) size 13x11 27 28 RenderText {#text} at (0,0) size 0x0 28 29 layer at (21,75) size 98x13 scrollWidth 280 29 RenderBlock {DIV} at ( 8,0) size 98x1330 RenderBlock {DIV} at (0,0) size 98x13 30 31 RenderText {#text} at (1,0) size 278x13 31 32 text run at (1,0) width 278: "This text should be centered vertically in the button" -
trunk/LayoutTests/platform/mac/fast/forms/input-appearance-height-expected.txt
r88952 r89407 90 90 text run at (0,237) width 44: "search " 91 91 RenderTextControl {INPUT} at (46,237) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 92 RenderBlock {DIV} at (3,3) size 119x13 93 RenderBlock {DIV} at (0,0) size 8x11 94 RenderBlock {DIV} at (106,0) size 13x11 92 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 93 RenderBlock {DIV} at (0,1) size 8x11 94 RenderBlock {DIV} at (8,0) size 98x13 95 RenderBlock {DIV} at (106,1) size 13x11 95 96 RenderText {#text} at (0,0) size 0x0 96 97 layer at (49,31) size 119x13 … … 103 104 RenderBlock {DIV} at (3,3) size 119x13 104 105 layer at (65,266) size 98x13 105 RenderBlock {DIV} at ( 8,0) size 98x13106 RenderBlock {DIV} at (0,0) size 98x13 106 107 layer at (106,152) size 15x15 107 108 RenderBlock (relative positioned) {DIV} at (0,0) size 15x15 -
trunk/LayoutTests/platform/mac/fast/forms/input-appearance-spinbutton-disabled-readonly-expected.txt
r87881 r89407 10 10 RenderInline {LABEL} at (0,0) size 306x18 11 11 RenderTextControl {INPUT} at (2,2) size 218x29 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 12 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 212x23 13 RenderBlock {DIV} at (0,0) size 193x23 12 14 RenderText {#text} at (222,10) size 84x18 13 15 text run at (222,10) width 84: " Normal state" … … 15 17 RenderInline {LABEL} at (0,0) size 314x18 16 18 RenderTextControl {INPUT} at (2,2) size 218x29 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 19 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 212x23 20 RenderBlock {DIV} at (0,0) size 193x23 17 21 RenderText {#text} at (222,10) size 92x18 18 22 text run at (222,10) width 92: " Disabled state" … … 20 24 RenderInline {LABEL} at (0,0) size 324x18 21 25 RenderTextControl {INPUT} at (2,2) size 218x29 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 26 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 212x23 27 RenderBlock {DIV} at (0,0) size 193x23 22 28 RenderText {#text} at (222,10) size 102x18 23 29 text run at (222,10) width 102: " Read-only state" 24 30 layer at (13,47) size 193x23 25 RenderBlock {DIV} at ( 3,3) size 193x2331 RenderBlock {DIV} at (0,0) size 193x23 26 32 RenderText {#text} at (1,0) size 13x23 27 33 text run at (1,0) width 13: "0" 28 34 layer at (13,80) size 193x23 29 RenderBlock {DIV} at ( 3,3) size 193x23 [color=#545454]35 RenderBlock {DIV} at (0,0) size 193x23 [color=#545454] 30 36 RenderText {#text} at (1,0) size 13x23 31 37 text run at (1,0) width 13: "0" 32 38 layer at (13,113) size 193x23 33 RenderBlock {DIV} at ( 3,3) size 193x2339 RenderBlock {DIV} at (0,0) size 193x23 34 40 RenderText {#text} at (1,0) size 13x23 35 41 text run at (1,0) width 13: "0" 36 42 layer at (207,46) size 19x25 37 RenderBlock (relative positioned) {DIV} at (19 7,2) size 19x2543 RenderBlock (relative positioned) {DIV} at (194,-1) size 19x25 38 44 layer at (207,79) size 19x25 39 RenderBlock (relative positioned) {DIV} at (19 7,2) size 19x2545 RenderBlock (relative positioned) {DIV} at (194,-1) size 19x25 40 46 layer at (207,112) size 19x25 41 RenderBlock (relative positioned) {DIV} at (19 7,2) size 19x2547 RenderBlock (relative positioned) {DIV} at (194,-1) size 19x25 -
trunk/LayoutTests/platform/mac/fast/forms/input-appearance-spinbutton-expected.txt
r87881 r89407 19 19 RenderBR {BR} at (104,14) size 0x0 20 20 RenderTextControl {INPUT} at (0,19) size 100x16 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 21 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 94x10 22 RenderBlock {DIV} at (0,0) size 81x10 21 23 RenderBlock {DIV} at (1,36) size 178x36 22 24 RenderTextControl {INPUT} at (0,2) size 102x17 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 25 27 RenderBR {BR} at (106,14) size 0x0 26 28 RenderTextControl {INPUT} at (0,19) size 102x17 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 29 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 96x11 30 RenderBlock {DIV} at (0,0) size 83x11 27 31 RenderBlock {DIV} at (1,72) size 178x37 28 32 RenderTextControl {INPUT} at (0,1) size 104x18 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 31 35 RenderBR {BR} at (108,14) size 0x0 32 36 RenderTextControl {INPUT} at (0,19) size 104x18 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 37 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 98x12 38 RenderBlock {DIV} at (0,0) size 85x12 33 39 RenderBlock {DIV} at (1,109) size 178x46 34 40 RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 37 43 RenderBR {BR} at (133,16) size 0x0 38 44 RenderTextControl {INPUT} at (2,25) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 45 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 46 RenderBlock {DIV} at (0,0) size 106x13 39 47 RenderBlock {DIV} at (1,155) size 178x50 40 48 RenderTextControl {INPUT} at (2,2) size 127x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 43 51 RenderBR {BR} at (135,17) size 0x0 44 52 RenderTextControl {INPUT} at (2,27) size 127x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 53 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 121x15 54 RenderBlock {DIV} at (0,0) size 108x15 45 55 RenderBlock {DIV} at (1,205) size 178x52 46 56 RenderTextControl {INPUT} at (2,2) size 148x22 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 49 59 RenderBR {BR} at (156,18) size 0x0 50 60 RenderTextControl {INPUT} at (2,28) size 148x22 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 61 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 142x16 62 RenderBlock {DIV} at (0,0) size 127x16 51 63 RenderBlock {DIV} at (1,257) size 178x54 52 64 RenderTextControl {INPUT} at (2,2) size 150x23 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 55 67 RenderBR {BR} at (158,19) size 0x0 56 68 RenderTextControl {INPUT} at (2,29) size 150x23 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 69 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 144x17 70 RenderBlock {DIV} at (0,0) size 129x17 57 71 RenderBlock {DIV} at (1,311) size 178x56 58 72 RenderTextControl {INPUT} at (2,2) size 170x24 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 61 75 RenderBR {BR} at (178,20) size 0x0 62 76 RenderTextControl {INPUT} at (2,30) size 170x24 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 77 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 164x18 78 RenderBlock {DIV} at (0,0) size 149x18 63 79 RenderTableCell {TD} at (184,2) size 253x524 [r=0 c=1 rs=1 cs=1] 64 80 RenderBlock {DIV} at (1,1) size 251x56 … … 68 84 RenderBR {BR} at (180,20) size 0x0 69 85 RenderTextControl {INPUT} at (2,30) size 172x24 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 86 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 166x18 87 RenderBlock {DIV} at (0,0) size 151x18 70 88 RenderBlock {DIV} at (1,57) size 251x60 71 89 RenderTextControl {INPUT} at (2,2) size 174x26 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 74 92 RenderBR {BR} at (182,21) size 0x0 75 93 RenderTextControl {INPUT} at (2,32) size 174x26 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 94 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 168x20 95 RenderBlock {DIV} at (0,0) size 153x20 76 96 RenderBlock {DIV} at (1,117) size 251x62 77 97 RenderTextControl {INPUT} at (2,2) size 195x27 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 80 100 RenderBR {BR} at (203,22) size 0x0 81 101 RenderTextControl {INPUT} at (2,33) size 195x27 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 102 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 189x21 103 RenderBlock {DIV} at (0,0) size 170x21 82 104 RenderBlock {DIV} at (1,179) size 251x64 83 105 RenderTextControl {INPUT} at (2,2) size 197x28 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 86 108 RenderBR {BR} at (205,23) size 0x0 87 109 RenderTextControl {INPUT} at (2,34) size 197x28 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 110 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 191x22 111 RenderBlock {DIV} at (0,0) size 172x22 88 112 RenderBlock {DIV} at (1,243) size 251x66 89 113 RenderTextControl {INPUT} at (2,2) size 218x29 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 92 116 RenderBR {BR} at (226,24) size 0x0 93 117 RenderTextControl {INPUT} at (2,35) size 218x29 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 118 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 212x23 119 RenderBlock {DIV} at (0,0) size 193x23 94 120 RenderBlock {DIV} at (1,309) size 251x68 95 121 RenderTextControl {INPUT} at (2,2) size 220x30 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 98 124 RenderBR {BR} at (228,25) size 0x0 99 125 RenderTextControl {INPUT} at (2,36) size 220x30 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 126 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 214x24 127 RenderBlock {DIV} at (0,0) size 195x24 100 128 RenderBlock {DIV} at (1,377) size 251x72 101 129 RenderTextControl {INPUT} at (2,2) size 241x32 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 104 132 RenderBR {BR} at (249,26) size 0x0 105 133 RenderTextControl {INPUT} at (2,38) size 241x32 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 134 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 235x26 135 RenderBlock {DIV} at (0,0) size 216x26 106 136 RenderBlock {DIV} at (1,449) size 251x74 107 137 RenderTextControl {INPUT} at (2,2) size 243x33 [bgcolor=#FFFFFF] [border: (2px inset #000000)] … … 110 140 RenderBR {BR} at (251,27) size 0x0 111 141 RenderTextControl {INPUT} at (2,39) size 243x33 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 142 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 237x27 143 RenderBlock {DIV} at (0,0) size 218x27 112 144 layer at (14,129) size 94x10 113 145 RenderBlock {DIV} at (3,3) size 94x10 114 146 layer at (14,145) size 81x10 115 RenderBlock {DIV} at ( 3,3) size 81x10147 RenderBlock {DIV} at (0,0) size 81x10 116 148 layer at (14,163) size 96x11 117 149 RenderBlock {DIV} at (3,3) size 96x11 118 150 layer at (14,180) size 83x11 119 RenderBlock {DIV} at ( 3,3) size 83x11151 RenderBlock {DIV} at (0,0) size 83x11 120 152 layer at (14,198) size 98x12 121 153 RenderBlock {DIV} at (3,3) size 98x12 122 154 layer at (14,216) size 85x12 123 RenderBlock {DIV} at ( 3,3) size 85x12155 RenderBlock {DIV} at (0,0) size 85x12 124 156 layer at (16,236) size 119x13 125 157 RenderBlock {DIV} at (3,3) size 119x13 126 158 layer at (16,259) size 106x13 127 RenderBlock {DIV} at ( 3,3) size 106x13159 RenderBlock {DIV} at (0,0) size 106x13 128 160 layer at (16,282) size 121x15 129 161 RenderBlock {DIV} at (3,3) size 121x15 130 162 layer at (16,307) size 108x15 131 RenderBlock {DIV} at ( 3,3) size 108x15163 RenderBlock {DIV} at (0,0) size 108x15 132 164 layer at (16,332) size 142x16 133 165 RenderBlock {DIV} at (3,3) size 142x16 134 166 layer at (16,358) size 127x16 135 RenderBlock {DIV} at ( 3,3) size 127x16167 RenderBlock {DIV} at (0,0) size 127x16 136 168 layer at (16,384) size 144x17 137 169 RenderBlock {DIV} at (3,3) size 144x17 138 170 layer at (16,411) size 129x17 139 RenderBlock {DIV} at ( 3,3) size 129x17171 RenderBlock {DIV} at (0,0) size 129x17 140 172 layer at (16,438) size 164x18 141 173 RenderBlock {DIV} at (3,3) size 164x18 142 174 layer at (16,466) size 149x18 143 RenderBlock {DIV} at ( 3,3) size 149x18175 RenderBlock {DIV} at (0,0) size 149x18 144 176 layer at (198,50) size 166x18 145 177 RenderBlock {DIV} at (3,3) size 166x18 146 178 layer at (198,78) size 151x18 147 RenderBlock {DIV} at ( 3,3) size 151x18179 RenderBlock {DIV} at (0,0) size 151x18 148 180 layer at (198,106) size 168x20 149 181 RenderBlock {DIV} at (3,3) size 168x20 150 182 layer at (198,136) size 153x20 151 RenderBlock {DIV} at ( 3,3) size 153x20183 RenderBlock {DIV} at (0,0) size 153x20 152 184 layer at (198,166) size 189x21 153 185 RenderBlock {DIV} at (3,3) size 189x21 154 186 layer at (198,197) size 170x21 155 RenderBlock {DIV} at ( 3,3) size 170x21187 RenderBlock {DIV} at (0,0) size 170x21 156 188 layer at (198,228) size 191x22 157 189 RenderBlock {DIV} at (3,3) size 191x22 158 190 layer at (198,260) size 172x22 159 RenderBlock {DIV} at ( 3,3) size 172x22191 RenderBlock {DIV} at (0,0) size 172x22 160 192 layer at (198,292) size 212x23 161 193 RenderBlock {DIV} at (3,3) size 212x23 162 194 layer at (198,325) size 193x23 163 RenderBlock {DIV} at ( 3,3) size 193x23195 RenderBlock {DIV} at (0,0) size 193x23 164 196 layer at (198,358) size 214x24 165 197 RenderBlock {DIV} at (3,3) size 214x24 166 198 layer at (198,392) size 195x24 167 RenderBlock {DIV} at ( 3,3) size 195x24199 RenderBlock {DIV} at (0,0) size 195x24 168 200 layer at (198,426) size 235x26 169 201 RenderBlock {DIV} at (3,3) size 235x26 170 202 layer at (198,462) size 216x26 171 RenderBlock {DIV} at ( 3,3) size 216x26203 RenderBlock {DIV} at (0,0) size 216x26 172 204 layer at (198,498) size 237x27 173 205 RenderBlock {DIV} at (3,3) size 237x27 174 206 layer at (198,535) size 218x27 175 RenderBlock {DIV} at ( 3,3) size 218x27207 RenderBlock {DIV} at (0,0) size 218x27 176 208 layer at (96,144) size 13x12 177 RenderBlock (relative positioned) {DIV} at (8 5,2) size 13x12209 RenderBlock (relative positioned) {DIV} at (82,-1) size 13x12 178 210 layer at (98,179) size 13x13 179 RenderBlock (relative positioned) {DIV} at (8 7,2) size 13x13211 RenderBlock (relative positioned) {DIV} at (84,-1) size 13x13 180 212 layer at (100,215) size 13x14 181 RenderBlock (relative positioned) {DIV} at (8 9,2) size 13x14213 RenderBlock (relative positioned) {DIV} at (86,-1) size 13x14 182 214 layer at (123,258) size 13x15 183 RenderBlock (relative positioned) {DIV} at (1 10,2) size 13x15215 RenderBlock (relative positioned) {DIV} at (107,-1) size 13x15 184 216 layer at (125,306) size 13x17 185 RenderBlock (relative positioned) {DIV} at (1 12,2) size 13x17217 RenderBlock (relative positioned) {DIV} at (109,-1) size 13x17 186 218 layer at (144,357) size 15x18 187 RenderBlock (relative positioned) {DIV} at (1 31,2) size 15x18219 RenderBlock (relative positioned) {DIV} at (128,-1) size 15x18 188 220 layer at (146,410) size 15x19 189 RenderBlock (relative positioned) {DIV} at (13 3,2) size 15x19221 RenderBlock (relative positioned) {DIV} at (130,-1) size 15x19 190 222 layer at (166,465) size 15x20 191 RenderBlock (relative positioned) {DIV} at (15 3,2) size 15x20223 RenderBlock (relative positioned) {DIV} at (150,-1) size 15x20 192 224 layer at (350,77) size 15x20 193 RenderBlock (relative positioned) {DIV} at (15 5,2) size 15x20225 RenderBlock (relative positioned) {DIV} at (152,-1) size 15x20 194 226 layer at (352,135) size 15x22 195 RenderBlock (relative positioned) {DIV} at (15 7,2) size 15x22227 RenderBlock (relative positioned) {DIV} at (154,-1) size 15x22 196 228 layer at (369,196) size 19x23 197 RenderBlock (relative positioned) {DIV} at (17 4,2) size 19x23229 RenderBlock (relative positioned) {DIV} at (171,-1) size 19x23 198 230 layer at (371,259) size 19x24 199 RenderBlock (relative positioned) {DIV} at (17 6,2) size 19x24231 RenderBlock (relative positioned) {DIV} at (173,-1) size 19x24 200 232 layer at (392,324) size 19x25 201 RenderBlock (relative positioned) {DIV} at (19 7,2) size 19x25233 RenderBlock (relative positioned) {DIV} at (194,-1) size 19x25 202 234 layer at (394,391) size 19x26 203 RenderBlock (relative positioned) {DIV} at (19 9,2) size 19x26235 RenderBlock (relative positioned) {DIV} at (196,-1) size 19x26 204 236 layer at (415,461) size 19x28 205 RenderBlock (relative positioned) {DIV} at (2 20,2) size 19x28237 RenderBlock (relative positioned) {DIV} at (217,-1) size 19x28 206 238 layer at (417,534) size 19x29 207 RenderBlock (relative positioned) {DIV} at (2 22,2) size 19x29239 RenderBlock (relative positioned) {DIV} at (219,-1) size 19x29 -
trunk/LayoutTests/platform/mac/fast/forms/input-appearance-spinbutton-layer-expected.txt
r87881 r89407 6 6 RenderBR {BR} at (129,2) size 0x18 7 7 RenderTextControl {INPUT} at (2,25) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 8 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 9 RenderBlock {DIV} at (0,0) size 106x13 8 10 RenderText {#text} at (0,0) size 0x0 9 11 layer at (13,36) size 106x13 10 RenderBlock {DIV} at ( 3,3) size 106x1312 RenderBlock {DIV} at (0,0) size 106x13 11 13 RenderText {#text} at (1,0) size 14x13 12 14 text run at (1,0) width 14: "10" 13 15 layer at (10,10) size 125x19 14 16 RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 17 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 18 RenderBlock {DIV} at (0,0) size 106x13 15 19 layer at (13,13) size 106x13 16 RenderBlock {DIV} at ( 3,3) size 106x1320 RenderBlock {DIV} at (0,0) size 106x13 17 21 RenderText {#text} at (1,0) size 14x13 18 22 text run at (1,0) width 14: "10" 19 23 layer at (120,12) size 13x15 20 RenderBlock (relative positioned) {DIV} at (1 10,2) size 13x1524 RenderBlock (relative positioned) {DIV} at (107,-1) size 13x15 21 25 layer at (120,35) size 13x15 22 RenderBlock (relative positioned) {DIV} at (1 10,2) size 13x1526 RenderBlock (relative positioned) {DIV} at (107,-1) size 13x15 -
trunk/LayoutTests/platform/mac/fast/forms/input-appearance-spinbutton-up-expected.txt
r87881 r89407 10 10 RenderBlock (anonymous) at (0,34) size 784x31 11 11 RenderTextControl {INPUT} at (2,2) size 195x27 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 12 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 189x21 13 RenderBlock {DIV} at (0,0) size 170x21 12 14 RenderText {#text} at (0,0) size 0x0 13 15 RenderText {#text} at (0,0) size 0x0 14 16 layer at (13,47) size 170x21 15 RenderBlock {DIV} at ( 3,3) size 170x2117 RenderBlock {DIV} at (0,0) size 170x21 16 18 RenderText {#text} at (1,0) size 12x21 17 19 text run at (1,0) width 12: "1" 18 20 layer at (184,46) size 19x23 19 RenderBlock (relative positioned) {DIV} at (17 4,2) size 19x2320 caret: position 1 of child 0 {#text} of child 0 {DIV} of {#shadow-root} of child 5 {INPUT} of body21 RenderBlock (relative positioned) {DIV} at (171,-1) size 19x23 22 caret: position 1 of child 0 {#text} of child 0 {DIV} of child 0 {DIV} of child 0 {DIV} of {#shadow-root} of child 5 {INPUT} of body -
trunk/LayoutTests/platform/mac/fast/forms/input-appearance-spinbutton-visibility-expected.txt
r87881 r89407 5 5 RenderBody {BODY} at (8,8) size 784x23 6 6 RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 7 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 8 RenderBlock {DIV} at (0,0) size 106x13 7 9 RenderText {#text} at (129,2) size 4x18 8 10 text run at (129,2) width 4: " " 9 11 RenderTextControl {INPUT} at (135,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 12 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 13 RenderBlock {DIV} at (0,0) size 106x13 10 14 RenderText {#text} at (0,0) size 0x0 11 15 layer at (13,13) size 106x13 12 RenderBlock {DIV} at ( 3,3) size 106x1316 RenderBlock {DIV} at (0,0) size 106x13 13 17 layer at (146,13) size 106x13 14 RenderBlock {DIV} at ( 3,3) size 106x1318 RenderBlock {DIV} at (0,0) size 106x13 15 19 layer at (120,12) size 13x15 16 RenderBlock (relative positioned) {DIV} at (1 10,2) size 13x1520 RenderBlock (relative positioned) {DIV} at (107,-1) size 13x15 -
trunk/LayoutTests/platform/mac/fast/forms/placeholder-position-expected.txt
r79284 r89407 5 5 RenderBody {BODY} at (8,8) size 784x584 6 6 RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 7 RenderBlock {DIV} at (3,3) size 119x13 8 RenderBlock {DIV} at (0,0) size 8x11 9 RenderBlock {DIV} at (106,0) size 13x11 7 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 8 RenderBlock {DIV} at (0,1) size 8x11 9 RenderBlock {DIV} at (8,0) size 98x13 10 RenderBlock {DIV} at (106,1) size 13x11 10 11 RenderBR {BR} at (129,16) size 0x0 11 12 RenderTextControl {INPUT} at (2,25) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 12 13 RenderBR {BR} at (129,39) size 0x0 13 14 RenderTextControl {INPUT} at (2,48) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 14 RenderBlock {DIV} at (3,3) size 119x13 15 RenderBlock {DIV} at (0,0) size 8x11 16 RenderBlock {DIV} at (106,0) size 13x11 15 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 16 RenderBlock {DIV} at (0,1) size 8x11 17 RenderBlock {DIV} at (8,0) size 98x13 18 RenderBlock {DIV} at (106,1) size 13x11 17 19 RenderBR {BR} at (129,62) size 0x0 18 20 RenderTextControl {INPUT} at (2,71) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 19 RenderBlock {DIV} at (3,3) size 119x13 20 RenderBlock {DIV} at (0,0) size 22x11 21 RenderBlock {DIV} at (106,0) size 13x11 21 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 22 RenderBlock {DIV} at (0,1) size 22x11 23 RenderBlock {DIV} at (22,0) size 84x13 24 RenderBlock {DIV} at (106,1) size 13x11 22 25 RenderBR {BR} at (129,85) size 0x0 23 26 RenderBR {BR} at (165,128) size 0x0 24 27 RenderTextControl {INPUT} at (2,130) size 125x33 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 25 RenderBR {BR} at (129,1 65) size 0x028 RenderBR {BR} at (129,144) size 0x0 26 29 RenderBR {BR} at (165,214) size 0x0 27 30 RenderTextControl {INPUT} at (5,219) size 176x30 [bgcolor=#FFFFFF] [border: (5px solid #000000)] 28 31 RenderBR {BR} at (186,240) size 0x0 29 RenderBR {BR} at (129,2 77) size 0x032 RenderBR {BR} at (129,284) size 0x0 30 33 layer at (21,13) size 98x13 31 RenderBlock {DIV} at ( 8,0) size 98x1334 RenderBlock {DIV} at (0,0) size 98x13 32 35 layer at (13,36) size 119x13 33 36 RenderBlock {DIV} at (3,3) size 119x13 34 37 layer at (21,59) size 98x13 35 RenderBlock {DIV} at ( 8,0) size 98x1338 RenderBlock {DIV} at (0,0) size 98x13 36 39 layer at (35,82) size 84x13 37 RenderBlock {DIV} at ( 22,0) size 84x1340 RenderBlock {DIV} at (0,0) size 84x13 38 41 layer at (10,102) size 161x32 clip at (11,103) size 159x30 39 42 RenderTextControl {TEXTAREA} at (2,94) size 161x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)] 40 43 RenderBlock {DIV} at (3,3) size 155x13 41 layer at (13,14 8) size 119x1342 RenderBlock {DIV} at (3, 10) size 119x1344 layer at (13,141) size 119x13 45 RenderBlock {DIV} at (3,3) size 119x13 43 46 layer at (10,175) size 161x45 clip at (11,176) size 159x43 44 47 RenderTextControl {TEXTAREA} at (2,167) size 161x45 [bgcolor=#FFFFFF] [border: (1px solid #000000)] … … 48 51 layer at (10,264) size 125x33 49 52 RenderTextControl {INPUT} at (2,256) size 125x33 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 50 layer at (13,2 74) size 119x1351 RenderBlock {DIV} at (3,1 0) size 119x1353 layer at (13,281) size 119x13 54 RenderBlock {DIV} at (3,17) size 119x13 -
trunk/LayoutTests/platform/mac/fast/forms/placeholder-pseudo-style-expected.txt
r72052 r89407 11 11 text run at (129,20) width 4: " " 12 12 RenderTextControl {INPUT} at (135,20) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 13 RenderBlock {DIV} at (3,3) size 119x13 14 RenderBlock {DIV} at (0,0) size 8x11 15 RenderBlock {DIV} at (106,0) size 13x11 13 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 14 RenderBlock {DIV} at (0,1) size 8x11 15 RenderBlock {DIV} at (8,0) size 98x13 16 RenderBlock {DIV} at (106,1) size 13x11 16 17 RenderText {#text} at (262,20) size 4x18 17 18 text run at (262,20) width 4: " " … … 30 31 RenderBlock {DIV} at (3,3) size 119x13 31 32 layer at (154,31) size 98x13 32 RenderBlock {DIV} at ( 8,0) size 98x1333 RenderBlock {DIV} at (0,0) size 98x13 33 34 layer at (279,31) size 119x13 34 35 RenderBlock {DIV} at (3,3) size 119x13 -
trunk/LayoutTests/platform/mac/fast/forms/placeholder-set-value-expected.txt
r63403 r89407 15 15 RenderBlock (anonymous) at (0,52) size 784x23 16 16 RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 17 RenderBlock {DIV} at (3,3) size 119x13 18 RenderBlock {DIV} at (0,0) size 8x11 19 RenderBlock {DIV} at (106,0) size 13x11 17 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 18 RenderBlock {DIV} at (0,1) size 8x11 19 RenderBlock {DIV} at (8,0) size 98x13 20 RenderBlock {DIV} at (106,1) size 13x11 20 21 RenderText {#text} at (0,0) size 0x0 21 22 layer at (21,65) size 98x13 22 RenderBlock {DIV} at ( 8,0) size 98x1323 RenderBlock {DIV} at (0,0) size 98x13 23 24 RenderText {#text} at (1,0) size 48x13 24 25 text run at (1,0) width 48: "New text" -
trunk/LayoutTests/platform/mac/fast/forms/search-cancel-button-style-sharing-expected.txt
r54748 r89407 9 9 RenderBlock (anonymous) at (0,34) size 784x23 10 10 RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 11 RenderBlock {DIV} at (3,3) size 119x13 12 RenderBlock {DIV} at (0,0) size 8x11 13 RenderBlock {DIV} at (106,0) size 13x11 11 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 12 RenderBlock {DIV} at (0,1) size 8x11 13 RenderBlock {DIV} at (8,0) size 98x13 14 RenderBlock {DIV} at (106,1) size 13x11 14 15 RenderText {#text} at (129,2) size 4x18 15 16 text run at (129,2) width 4: " " 16 17 RenderTextControl {INPUT} at (135,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 17 RenderBlock {DIV} at (3,3) size 119x13 18 RenderBlock {DIV} at (0,0) size 8x11 19 RenderBlock {DIV} at (106,0) size 13x11 18 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 19 RenderBlock {DIV} at (0,1) size 8x11 20 RenderBlock {DIV} at (8,0) size 98x13 21 RenderBlock {DIV} at (106,1) size 13x11 20 22 RenderText {#text} at (0,0) size 0x0 21 23 layer at (21,47) size 98x13 22 RenderBlock {DIV} at ( 8,0) size 98x1324 RenderBlock {DIV} at (0,0) size 98x13 23 25 layer at (154,47) size 98x13 24 RenderBlock {DIV} at ( 8,0) size 98x1326 RenderBlock {DIV} at (0,0) size 98x13 25 27 RenderText {#text} at (1,0) size 43x13 26 28 text run at (1,0) width 43: "this one" -
trunk/LayoutTests/platform/mac/fast/forms/search-display-none-cancel-button-expected.txt
r63403 r89407 8 8 RenderBR {BR} at (499,14) size 0x0 9 9 RenderTextControl {INPUT} at (2,20) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 10 RenderBlock {DIV} at (3,3) size 119x13 11 RenderBlock {DIV} at (0,0) size 8x11 10 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 11 RenderBlock {DIV} at (0,1) size 8x11 12 RenderBlock {DIV} at (8,0) size 111x13 12 13 RenderText {#text} at (0,0) size 0x0 13 14 layer at (21,31) size 111x13 14 RenderBlock {DIV} at ( 8,0) size 111x1315 RenderBlock {DIV} at (0,0) size 111x13 15 16 RenderText {#text} at (1,0) size 20x13 16 17 text run at (1,0) width 20: "test" -
trunk/LayoutTests/platform/mac/fast/forms/search-placeholder-value-changed-expected.txt
r72052 r89407 5 5 RenderBody {BODY} at (8,8) size 784x584 6 6 RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 7 RenderBlock {DIV} at (3,3) size 119x13 8 RenderBlock {DIV} at (0,0) size 8x11 9 RenderBlock {DIV} at (106,0) size 13x11 7 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 8 RenderBlock {DIV} at (0,1) size 8x11 9 RenderBlock {DIV} at (8,0) size 98x13 10 RenderBlock {DIV} at (106,1) size 13x11 10 11 RenderText {#text} at (0,0) size 0x0 11 12 RenderText {#text} at (0,0) size 0x0 12 13 layer at (21,13) size 98x13 13 RenderBlock {DIV} at ( 8,0) size 98x1314 RenderBlock {DIV} at (0,0) size 98x13 -
trunk/LayoutTests/platform/mac/fast/forms/search-rtl-expected.txt
r87067 r89407 18 18 RenderBlock {P} at (0,34) size 784x69 19 19 RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 20 RenderBlock {DIV} at (3,3) size 119x13 21 RenderBlock {DIV} at (0,0) size 22x11 22 RenderBlock {DIV} at (106,0) size 13x11 20 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 21 RenderBlock {DIV} at (0,1) size 22x11 22 RenderBlock {DIV} at (22,0) size 84x13 23 RenderBlock {DIV} at (106,1) size 13x11 23 24 RenderText {#text} at (129,2) size 4x18 24 25 text run at (129,2) width 4: " " 25 26 RenderBR {BR} at (0,0) size 0x0 26 27 RenderTextControl {INPUT} at (2,25) size 175x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 27 RenderBlock {DIV} at (3,3) size 169x13 28 RenderBlock {DIV} at (0,0) size 22x11 29 RenderBlock {DIV} at (156,0) size 13x11 28 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 169x13 29 RenderBlock {DIV} at (0,1) size 22x11 30 RenderBlock {DIV} at (22,0) size 134x13 31 RenderBlock {DIV} at (156,1) size 13x11 30 32 RenderText {#text} at (179,25) size 4x18 31 33 text run at (179,25) width 4: " " 32 34 RenderBR {BR} at (0,0) size 0x0 33 35 RenderTextControl {INPUT} at (2,48) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 34 RenderBlock {DIV} at (3,3) size 119x13 35 RenderBlock {DIV} at (0,0) size 22x11 36 RenderBlock {DIV} at (106,0) size 13x11 36 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 37 RenderBlock {DIV} at (0,1) size 22x11 38 RenderBlock {DIV} at (22,0) size 84x13 39 RenderBlock {DIV} at (106,1) size 13x11 37 40 RenderText {#text} at (0,0) size 0x0 38 41 RenderBlock {P} at (0,119) size 784x18 … … 40 43 text run at (0,0) width 39: "PASS" 41 44 layer at (35,47) size 84x13 scrollX 52 scrollWidth 136 42 RenderBlock {DIV} at ( 22,0) size 84x1345 RenderBlock {DIV} at (0,0) size 84x13 43 46 RenderText {#text} at (-51,0) size 135x13 44 47 text run at (-51,0) width 22 RTL: " \x{5D5}\x{5D6}\x{5D4}\x{5D5}" … … 48 51 text run at (46,0) width 37 RTL: "\x{5D4}\x{5D5}\x{5D0} \x{5D6}\x{5D4} " 49 52 layer at (35,70) size 134x13 scrollX 2 scrollWidth 136 50 RenderBlock {DIV} at ( 22,0) size 134x1353 RenderBlock {DIV} at (0,0) size 134x13 51 54 RenderText {#text} at (-1,0) size 135x13 52 55 text run at (-1,0) width 22 RTL: " \x{5D5}\x{5D6}\x{5D4}\x{5D5}" … … 56 59 text run at (96,0) width 37 RTL: "\x{5D4}\x{5D5}\x{5D0} \x{5D6}\x{5D4} " 57 60 layer at (35,93) size 84x13 58 RenderBlock {DIV} at ( 22,0) size 84x1359 caret: position 0 of child 1 {DIV} of child 0 {DIV} of {#shadow-root} of child 9 {INPUT} of child 3 {P} of body61 RenderBlock {DIV} at (0,0) size 84x13 62 caret: position 0 of child 0 {DIV} of child 1 {DIV} of child 0 {DIV} of {#shadow-root} of child 9 {INPUT} of child 3 {P} of body -
trunk/LayoutTests/platform/mac/fast/forms/search-styled-expected.txt
r72052 r89407 5 5 RenderBody {BODY} at (8,8) size 784x23 6 6 RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 7 RenderBlock {DIV} at (3,3) size 119x13 8 RenderBlock {DIV} at (0,0) size 22x11 9 RenderBlock {DIV} at (106,0) size 13x11 7 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 8 RenderBlock {DIV} at (0,1) size 22x11 9 RenderBlock {DIV} at (22,0) size 84x13 10 RenderBlock {DIV} at (106,1) size 13x11 10 11 RenderText {#text} at (0,0) size 0x0 11 12 layer at (35,13) size 84x13 12 RenderBlock {DIV} at ( 22,0) size 84x1313 RenderBlock {DIV} at (0,0) size 84x13 -
trunk/LayoutTests/platform/mac/fast/forms/search-transformed-expected.txt
r87067 r89407 21 21 RenderBlock {P} at (0,52) size 784x23 22 22 RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 23 RenderBlock {DIV} at (3,3) size 119x13 24 RenderBlock {DIV} at (0,0) size 22x11 25 RenderBlock {DIV} at (106,0) size 13x11 23 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 24 RenderBlock {DIV} at (0,1) size 22x11 25 RenderBlock {DIV} at (22,0) size 84x13 26 RenderBlock {DIV} at (106,1) size 13x11 26 27 RenderText {#text} at (0,0) size 0x0 27 28 layer at (35,65) size 84x13 scrollWidth 88 28 RenderBlock {DIV} at ( 22,0) size 84x1329 RenderBlock {DIV} at (0,0) size 84x13 29 30 RenderText {#text} at (1,0) size 86x13 30 31 text run at (1,0) width 86: "Some other text" 31 caret: position 15 of child 0 {#text} of child 1 {DIV} of child 0 {DIV} of {#shadow-root} of child 1 {INPUT} of child 3 {P} of body32 caret: position 15 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 0 {DIV} of {#shadow-root} of child 1 {INPUT} of child 3 {P} of body -
trunk/LayoutTests/platform/mac/fast/forms/search-vertical-alignment-expected.txt
r54748 r89407 13 13 RenderBlock {P} at (0,52) size 784x45 14 14 RenderTextControl {INPUT} at (2,0) size 125x45 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 15 RenderBlock {DIV} at (3,16) size 119x13 16 RenderBlock {DIV} at (0,0) size 17x11 17 RenderBlock {DIV} at (106,0) size 13x11 15 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x39 16 RenderBlock {DIV} at (0,14) size 17x11 17 RenderBlock {DIV} at (17,13) size 89x13 18 RenderBlock {DIV} at (106,14) size 13x11 18 19 RenderText {#text} at (129,13) size 4x18 19 20 text run at (129,13) width 4: " " 20 21 RenderTextControl {INPUT} at (135,0) size 125x45 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 21 22 RenderText {#text} at (0,0) size 0x0 22 RenderBlock {P} at (0,113) size 784x 1823 RenderTextControl {INPUT} at (2, 2) size 125x16 [bgcolor=#FFFFFF] [border: (2px inset #000000)]24 Render Block {DIV} at (3,1) size 119x1323 RenderBlock {P} at (0,113) size 784x20 24 RenderTextControl {INPUT} at (2,0) size 125x16 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 25 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x10 25 26 RenderBlock {DIV} at (0,0) size 17x11 27 RenderBlock {DIV} at (17,0) size 89x10 26 28 RenderBlock {DIV} at (106,0) size 13x11 27 RenderText {#text} at (129, 0) size 4x1828 text run at (129, 0) width 4: " "29 RenderTextControl {INPUT} at (135, 2) size 125x16 [bgcolor=#FFFFFF] [border: (2px inset #000000)]29 RenderText {#text} at (129,2) size 4x18 30 text run at (129,2) width 4: " " 31 RenderTextControl {INPUT} at (135,0) size 125x16 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 30 32 RenderText {#text} at (0,0) size 0x0 31 RenderBlock {P} at (0,14 7) size 784x1833 RenderBlock {P} at (0,149) size 784x18 32 34 RenderTextControl {INPUT} at (2,2) size 125x12 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 33 Render Block{DIV} at (3,3) size 119x635 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x6 34 36 RenderBlock {DIV} at (0,0) size 17x11 37 RenderBlock {DIV} at (17,0) size 89x6 35 38 RenderBlock {DIV} at (106,0) size 13x11 36 39 RenderText {#text} at (129,0) size 4x18 … … 39 42 RenderText {#text} at (0,0) size 0x0 40 43 layer at (30,76) size 89x13 41 RenderBlock {DIV} at ( 17,0) size 89x1344 RenderBlock {DIV} at (0,0) size 89x13 42 45 RenderText {#text} at (1,0) size 24x13 43 46 text run at (1,0) width 24: "Text" … … 46 49 RenderText {#text} at (1,0) size 24x13 47 50 text run at (1,0) width 24: "Text" 48 layer at (30,124) size 89x1 349 RenderBlock {DIV} at ( 17,0) size 89x1351 layer at (30,124) size 89x10 scrollHeight 13 52 RenderBlock {DIV} at (0,0) size 89x10 50 53 RenderText {#text} at (1,0) size 24x13 51 54 text run at (1,0) width 24: "Text" 52 layer at (146,124) size 119x1 353 RenderBlock {DIV} at (3, 1) size 119x1355 layer at (146,124) size 119x10 scrollHeight 13 56 RenderBlock {DIV} at (3,3) size 119x10 54 57 RenderText {#text} at (1,0) size 24x13 55 58 text run at (1,0) width 24: "Text" 56 layer at (30,16 0) size 89x1357 RenderBlock {DIV} at ( 17,0) size 89x1359 layer at (30,162) size 89x6 scrollHeight 13 60 RenderBlock {DIV} at (0,0) size 89x6 58 61 RenderText {#text} at (1,0) size 24x13 59 62 text run at (1,0) width 24: "Text" 60 layer at (146,16 0) size 119x6 scrollHeight 1363 layer at (146,162) size 119x6 scrollHeight 13 61 64 RenderBlock {DIV} at (3,3) size 119x6 62 65 RenderText {#text} at (1,0) size 24x13 -
trunk/LayoutTests/platform/mac/fast/forms/search-zoomed-expected.txt
r87067 r89407 17 17 RenderBlock {P} at (0,63) size 782x26 18 18 RenderTextControl {INPUT} at (2,2) size 148x22 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 19 Render Block {DIV} at (3,2) size 142x1819 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 142x16 20 20 RenderBlock {DIV} at (0,0) size 27x15 21 RenderBlock {DIV} at (27,0) size 96x16 21 22 RenderBlock {DIV} at (123,0) size 19x15 22 23 RenderText {#text} at (0,0) size 0x0 … … 24 25 RenderText {#text} at (0,0) size 47x22 25 26 text run at (0,0) width 47: "PASS" 26 layer at (41,7 8) size 96x16 scrollWidth 10427 RenderBlock {DIV} at ( 27,2) size 96x1627 layer at (41,77) size 96x16 scrollWidth 104 28 RenderBlock {DIV} at (0,0) size 96x16 28 29 RenderText {#text} at (1,0) size 102x16 29 30 text run at (1,0) width 102: "Some other text" 30 caret: position 15 of child 0 {#text} of child 1 {DIV} of child 0 {DIV} of {#shadow-root} of child 1 {INPUT} of child 3 {P} of body31 caret: position 15 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 0 {DIV} of {#shadow-root} of child 1 {INPUT} of child 3 {P} of body -
trunk/LayoutTests/platform/mac/fast/forms/searchfield-heights-expected.txt
r63403 r89407 8 8 RenderBR {BR} at (368,14) size 0x0 9 9 RenderTextControl {INPUT} at (0,22) size 102x17 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 10 RenderBlock {DIV} at (3,3) size 96x11 11 RenderBlock {DIV} at (0,0) size 8x9 12 RenderBlock {DIV} at (83,0) size 13x9 10 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 96x11 11 RenderBlock {DIV} at (0,1) size 8x9 12 RenderBlock {DIV} at (8,0) size 75x11 13 RenderBlock {DIV} at (83,1) size 13x9 13 14 RenderText {#text} at (102,20) size 4x18 14 15 text run at (102,20) width 4: " " 15 16 RenderTextControl {INPUT} at (108,20) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 16 RenderBlock {DIV} at (3,3) size 119x13 17 RenderBlock {DIV} at (0,0) size 8x11 18 RenderBlock {DIV} at (106,0) size 13x11 17 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 18 RenderBlock {DIV} at (0,1) size 8x11 19 RenderBlock {DIV} at (8,0) size 98x13 20 RenderBlock {DIV} at (106,1) size 13x11 19 21 RenderText {#text} at (235,20) size 4x18 20 22 text run at (235,20) width 4: " " 21 23 RenderTextControl {INPUT} at (241,18) size 148x22 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 22 RenderBlock {DIV} at (3,3) size 142x16 23 RenderBlock {DIV} at (0,0) size 10x13 24 RenderBlock {DIV} at (126,0) size 16x13 24 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 142x16 25 RenderBlock {DIV} at (0,1) size 10x13 26 RenderBlock {DIV} at (10,0) size 116x16 27 RenderBlock {DIV} at (126,1) size 16x13 25 28 RenderText {#text} at (0,0) size 0x0 26 29 layer at (19,33) size 75x11 27 RenderBlock {DIV} at ( 8,0) size 75x1130 RenderBlock {DIV} at (0,0) size 75x11 28 31 RenderText {#text} at (1,0) size 20x11 29 32 text run at (1,0) width 20: "mini" 30 33 layer at (127,31) size 98x13 31 RenderBlock {DIV} at ( 8,0) size 98x1334 RenderBlock {DIV} at (0,0) size 98x13 32 35 RenderText {#text} at (1,0) size 29x13 33 36 text run at (1,0) width 29: "small" 34 37 layer at (262,29) size 116x16 35 RenderBlock {DIV} at ( 10,0) size 116x1638 RenderBlock {DIV} at (0,0) size 116x16 36 39 RenderText {#text} at (1,0) size 45x16 37 40 text run at (1,0) width 45: "regular" -
trunk/LayoutTests/platform/mac/fast/repaint/search-field-cancel-expected.txt
r63403 r89407 14 14 RenderBlock (anonymous) at (0,34) size 784x23 15 15 RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 16 RenderBlock {DIV} at (3,3) size 119x13 17 RenderBlock {DIV} at (0,0) size 8x11 18 RenderBlock {DIV} at (106,0) size 13x11 16 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 17 RenderBlock {DIV} at (0,1) size 8x11 18 RenderBlock {DIV} at (8,0) size 98x13 19 RenderBlock {DIV} at (106,1) size 13x11 19 20 RenderText {#text} at (0,0) size 0x0 20 21 layer at (21,47) size 98x13 21 RenderBlock {DIV} at ( 8,0) size 98x1322 RenderBlock {DIV} at (0,0) size 98x13 22 23 RenderText {#text} at (1,0) size 54x13 23 24 text run at (1,0) width 54: "some text" -
trunk/LayoutTests/platform/mac/fast/replaced/width100percent-searchfield-expected.txt
r78904 r89407 12 12 RenderTableCell {TD} at (1,1) size 127x25 [r=0 c=0 rs=1 cs=1] 13 13 RenderTextControl {INPUT} at (1,3) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 14 RenderBlock {DIV} at (3,3) size 119x13 15 RenderBlock {DIV} at (0,0) size 8x11 16 RenderBlock {DIV} at (106,0) size 13x11 14 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 119x13 15 RenderBlock {DIV} at (0,1) size 8x11 16 RenderBlock {DIV} at (8,0) size 98x13 17 RenderBlock {DIV} at (106,1) size 13x11 17 18 RenderTableCell {TD} at (129,1) size 8x25 [r=0 c=1 rs=1 cs=1] 18 19 RenderTextControl {INPUT} at (1,3) size 6x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 19 RenderBlock {DIV} at (3,3) size 0x35 20 RenderBlock {DIV} at (0,0) size 8x11 21 RenderBlock {DIV} at (0,24) size 13x11 20 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 0x13 21 RenderBlock {DIV} at (0,1) size 8x11 22 RenderBlock {DIV} at (8,0) size 0x13 23 RenderBlock {DIV} at (8,1) size 13x11 22 24 RenderTableCell {TD} at (138,1) size 8x25 [r=0 c=2 rs=1 cs=1] 23 25 RenderTextControl {INPUT} at (1,3) size 6x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 24 RenderBlock {DIV} at (3,3) size 0x35 25 RenderBlock {DIV} at (0,0) size 8x11 26 RenderBlock {DIV} at (0,24) size 13x11 26 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 0x13 27 RenderBlock {DIV} at (0,1) size 8x11 28 RenderBlock {DIV} at (8,0) size 0x13 29 RenderBlock {DIV} at (8,1) size 13x11 27 30 RenderTableCell {TD} at (147,3) size 636x20 [r=0 c=3 rs=1 cs=1] 28 31 RenderText {#text} at (1,1) size 4x18 … … 36 39 RenderTableCell {TD} at (1,1) size 527x25 [r=0 c=0 rs=1 cs=1] 37 40 RenderTextControl {INPUT} at (1,3) size 525x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 38 RenderBlock {DIV} at (3,3) size 519x13 39 RenderBlock {DIV} at (0,0) size 22x11 40 RenderBlock {DIV} at (506,0) size 13x11 41 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 519x13 42 RenderBlock {DIV} at (0,1) size 22x11 43 RenderBlock {DIV} at (22,0) size 484x13 44 RenderBlock {DIV} at (506,1) size 13x11 41 45 RenderTableCell {TD} at (529,1) size 8x25 [r=0 c=1 rs=1 cs=1] 42 46 RenderTextControl {INPUT} at (1,3) size 6x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 43 RenderBlock {DIV} at (3,3) size 0x35 44 RenderBlock {DIV} at (0,0) size 22x11 45 RenderBlock {DIV} at (0,24) size 13x11 47 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 0x13 48 RenderBlock {DIV} at (0,1) size 22x11 49 RenderBlock {DIV} at (22,0) size 0x13 50 RenderBlock {DIV} at (22,1) size 13x11 46 51 RenderTableCell {TD} at (538,1) size 8x25 [r=0 c=2 rs=1 cs=1] 47 52 RenderTextControl {INPUT} at (1,3) size 6x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 48 RenderBlock {DIV} at (3,3) size 0x35 49 RenderBlock {DIV} at (0,0) size 22x11 50 RenderBlock {DIV} at (0,24) size 13x11 53 RenderDeprecatedFlexibleBox {DIV} at (3,3) size 0x13 54 RenderBlock {DIV} at (0,1) size 22x11 55 RenderBlock {DIV} at (22,0) size 0x13 56 RenderBlock {DIV} at (22,1) size 13x11 51 57 RenderTableCell {TD} at (547,3) size 236x20 [r=0 c=3 rs=1 cs=1] 52 58 RenderText {#text} at (1,1) size 4x18 53 59 text run at (1,1) width 4: " " 54 60 layer at (21,33) size 98x13 55 RenderBlock {DIV} at ( 8,0) size 98x1361 RenderBlock {DIV} at (0,0) size 98x13 56 62 RenderText {#text} at (1,0) size 49x13 57 63 text run at (1,0) width 49: "New Mail" 58 layer at (14 1,44) size 2x13 scrollWidth 3159 RenderBlock {DIV} at (0, 11) size 2x1364 layer at (149,33) size 31x13 65 RenderBlock {DIV} at (0,0) size 31x13 60 66 RenderText {#text} at (1,0) size 29x13 61 67 text run at (1,0) width 29: "Reply" 62 layer at (15 0,44) size 2x13 scrollWidth 4963 RenderBlock {DIV} at (0, 11) size 2x1368 layer at (158,33) size 49x13 69 RenderBlock {DIV} at (0,0) size 49x13 64 70 RenderText {#text} at (1,0) size 47x13 65 71 text run at (1,0) width 47: "Reply All" 66 72 layer at (35,96) size 484x13 67 RenderBlock {DIV} at ( 22,0) size 484x1373 RenderBlock {DIV} at (0,0) size 484x13 68 74 RenderText {#text} at (1,0) size 49x13 69 75 text run at (1,0) width 49: "New Mail" 70 layer at (5 41,107) size 2x13 scrollWidth 3171 RenderBlock {DIV} at (0, 11) size 2x1376 layer at (563,96) size 31x13 77 RenderBlock {DIV} at (0,0) size 31x13 72 78 RenderText {#text} at (1,0) size 29x13 73 79 text run at (1,0) width 29: "Reply" 74 layer at (5 50,107) size 2x13 scrollWidth 4975 RenderBlock {DIV} at (0, 11) size 2x1380 layer at (572,96) size 49x13 81 RenderBlock {DIV} at (0,0) size 49x13 76 82 RenderText {#text} at (1,0) size 47x13 77 83 text run at (1,0) width 47: "Reply All" -
trunk/LayoutTests/platform/mac/fast/table/colspanMinWidth-vertical-expected.txt
r82786 r89407 4 4 RenderBlock {HTML} at (0,0) size 800x600 5 5 RenderBody {BODY} at (8,8) size 784x584 6 RenderTable {TABLE} at (0,0) size 32x1497 RenderTableSection {TBODY} at (0,0) size 32x1496 RenderTable {TABLE} at (0,0) size 45x149 7 RenderTableSection {TBODY} at (0,0) size 45x149 8 8 RenderTableRow {TR} at (0,2) size 2x149 9 9 RenderTableCell {TD} at (2,2) size 2x3 [bgcolor=#0000FF] [r=0 c=0 rs=1 cs=1] … … 11 11 RenderTableCell {TD} at (6,2) size 2x141 [bgcolor=#008000] [r=1 c=0 rs=2 cs=2] 12 12 RenderTableRow {TR} at (0,8) size 0x149 13 RenderTableCell {TD} at (8,1 55) size 22x-18[bgcolor=#FF0000] [r=2 c=2 rs=2 cs=1]14 RenderTableRow {TR} at (0,10) size 20x14915 RenderTableCell {TD} at (10,2) size 20x141 [bgcolor=#00FFFF] [r=3 c=0 rs=1 cs=2]16 RenderTable {TABLE} at (1,1) size 18x13917 RenderTableSection {TBODY} at (0,0) size 18x13918 RenderTableRow {TR} at (0,2) size 14x13919 RenderTableCell {TD} at (2, 8) size 14x-10[bgcolor=#FF00FF] [r=0 c=0 rs=1 cs=1]20 RenderTableCell {TD} at (2,6) size 14x131 [bgcolor=#FFFF00] [r=0 c=1 rs=1 cs=1]21 RenderTextControl {INPUT} at (3,3) size 8x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]13 RenderTableCell {TD} at (8,161) size 35x-31 [bgcolor=#FF0000] [r=2 c=2 rs=2 cs=1] 14 RenderTableRow {TR} at (0,10) size 33x149 15 RenderTableCell {TD} at (10,2) size 33x141 [bgcolor=#00FFFF] [r=3 c=0 rs=1 cs=2] 16 RenderTable {TABLE} at (1,1) size 31x139 17 RenderTableSection {TBODY} at (0,0) size 31x139 18 RenderTableRow {TR} at (0,2) size 27x139 19 RenderTableCell {TD} at (2,14) size 27x-23 [bgcolor=#FF00FF] [r=0 c=0 rs=1 cs=1] 20 RenderTableCell {TD} at (2,6) size 27x131 [bgcolor=#FFFF00] [r=0 c=1 rs=1 cs=1] 21 RenderTextControl {INPUT} at (3,3) size 21x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 22 22 RenderText {#text} at (0,0) size 0x0 23 layer at (19,23) size 2x119 scrollX 13 scrollWidth 1524 RenderBlock {DIV} at (3,3) size 2x11923 layer at (19,23) size 15x119 24 RenderBlock {DIV} at (3,3) size 15x119 -
trunk/Source/WebCore/ChangeLog
r89406 r89407 1 2011-06-21 Kent Tamura <tkent@chromium.org> 2 3 Reviewed by Dimitri Glazkov. 4 5 Avoid custom layout code of RenderTextControlSingleLine 6 https://bugs.webkit.org/show_bug.cgi?id=61415 7 8 If a text field has a search results button, a search cancel 9 button, a speech button, or a spin button, the editable inner text 10 element and they are wrapped by a flexible box container, and the 11 editable inner text element has flexibility. 12 As the result of applying the flexible box, we don't need any 13 horizontal layout code in RenderTextControlSingleLine except the 14 inner spin button. 15 16 Also, we remove custom hit-testing code in nodeAtPoint(). If a 17 user clicks on a position left of the inner editable text but not 18 on the search results button, the search results button doesn't 19 work though it worked. 20 21 * css/html.css: 22 (input::-webkit-textfield-decoration-container): 23 New style definition for the "container" element. 24 (input[type="search"]::-webkit-search-cancel-button): 25 It should be a block element because it's a child of the flexible box. 26 Also, this doesn't have flexibility. 27 (input[type="search"]::-webkit-search-decoration): ditto. 28 (input[type="search"]::-webkit-search-results-decoration): ditto. 29 (input[type="search"]::-webkit-search-results-button): ditto. 30 (input::-webkit-inner-spin-button): ditto. 31 (input::-webkit-input-speech-button): ditto. 32 * html/HTMLInputElement.cpp: 33 (WebCore::HTMLInputElement::containerElement): 34 Add an accessor of the flexible box container. 35 It just calls InputType::containerElement(). 36 * html/HTMLInputElement.h: Declare it. 37 * html/InputType.h: 38 (WebCore::InputType::containerElement): New accessor for a shadow element. 39 * html/SearchInputType.cpp: 40 (WebCore::SearchInputType::SearchInputType): 41 m_innerBlock is moved to TextFieldInputType. 42 (WebCore::SearchInputType::needsContainer): 43 A search field always needs the flexible box container because 44 of the results button and the cancel button. 45 (WebCore::SearchInputType::createShadowSubtree): 46 Use TextFieldInputType::createShadowSubtree(), then modify the tree. 47 (WebCore::SearchInputType::destroyShadowSubtree): 48 m_innerBlock is moved to TextFieldInputType. 49 * html/SearchInputType.h: 50 * html/TextFieldInputType.cpp: 51 (WebCore::TextFieldInputType::TextFieldInputType): 52 Initialize the new members. 53 (WebCore::TextFieldInputType::needsContainer): 54 Returns true if x-webkit-speech. We check a spin button separately. 55 (WebCore::TextFieldInputType::createShadowSubtree): 56 Wrap everything with the flexible box container if needsContainer() or we need a spin button. 57 (WebCore::TextFieldInputType::containerElement): Added an accessor. 58 (WebCore::TextFieldInputType::innerBlockElement): ditto. 59 (WebCore::TextFieldInputType::innerTextElement): ditto. 60 (WebCore::TextFieldInputType::innerSpinButtonElement): ditto. 61 (WebCore::TextFieldInputType::speechButtonElement): ditto. 62 (WebCore::TextFieldInputType::destroyShadowSubtree): 63 Clear references to new shadow nodes. 64 * html/TextFieldInputType.h: 65 * rendering/RenderTextControlSingleLine.cpp: 66 (WebCore::RenderTextControlSingleLine::containerElement): Added an accessor. 67 (WebCore::RenderTextControlSingleLine::innerTextElement): 68 (WebCore::RenderTextControlSingleLine::layout): 69 - Correct heights check 70 Comparing with height(), not contentHeigth(), was incorrect. 71 - Adjust the container height like the editable inner text. 72 - Remove width adjustment 73 - Remove the speech button layout code 74 The flexible box layout is enough. 75 (WebCore::RenderTextControlSingleLine::nodeAtPoint): 76 Remove custom code for results/cancel/speech buttons, and 77 Simplify comments. 78 (WebCore::RenderTextControlSingleLine::forwardEvent): 79 Remove custom forwarding code for results/cancel buttons. 80 (WebCore::RenderTextControlSingleLine::styleDidChange): 81 Clear the style of the container because we update it in layout(). 82 (WebCore::RenderTextControlSingleLine::hasControlClip): 83 Decoration buttons should be clipped by the container. 84 (WebCore::RenderTextControlSingleLine::controlClipRect): ditto. 85 (WebCore::RenderTextControlSingleLine::createInnerTextStyle): 86 We don't need to use display:inline-block any more. 87 (WebCore::RenderTextControlSingleLine::createInnerBlockStyle): 88 The text wrapper element should have flexibility. 89 (WebCore::RenderTextControlSingleLine::textBlockInsetTop): 90 Updated for the tree structure change. 91 * rendering/RenderTextControlSingleLine.h: 92 1 93 2011-06-21 MORITA Hajime <morrita@google.com> 2 94 -
trunk/Source/WebCore/css/html.css
r89199 r89407 420 420 } 421 421 422 input::-webkit-textfield-decoration-container { 423 direction: ltr; 424 display: -webkit-box; 425 -webkit-box-align: center; 426 } 427 422 428 input[type="search"]::-webkit-search-cancel-button { 423 429 -webkit-appearance: searchfield-cancel-button; 424 display: inline-block; 430 display: block; 431 -webkit-box-flex: 0; 425 432 } 426 433 427 434 input[type="search"]::-webkit-search-decoration { 428 435 -webkit-appearance: searchfield-decoration; 429 display: inline-block; 436 display: block; 437 -webkit-box-flex: 0; 430 438 } 431 439 432 440 input[type="search"]::-webkit-search-results-decoration { 433 441 -webkit-appearance: searchfield-results-decoration; 434 display: inline-block; 442 display: block; 443 -webkit-box-flex: 0; 435 444 } 436 445 437 446 input[type="search"]::-webkit-search-results-button { 438 447 -webkit-appearance: searchfield-results-button; 439 display: inline-block; 448 display: block; 449 -webkit-box-flex: 0; 440 450 } 441 451 … … 449 459 input::-webkit-inner-spin-button { 450 460 -webkit-appearance: inner-spin-button; 451 display: inline-block;461 display: block; 452 462 position: relative; 453 463 cursor: default; 454 464 vertical-align: top; 465 -webkit-box-flex: 0; 455 466 -webkit-user-select: none; 456 467 } … … 459 470 input::-webkit-input-speech-button { 460 471 -webkit-appearance: -webkit-input-speech-button; 461 display: inline-block;472 display: block; 462 473 vertical-align: top; 474 -webkit-box-flex: 0; 463 475 } 464 476 #endif -
trunk/Source/WebCore/html/HTMLInputElement.cpp
r89194 r89407 131 131 { 132 132 return m_name.isNull() ? emptyAtom : m_name; 133 } 134 135 HTMLElement* HTMLInputElement::containerElement() const 136 { 137 return m_inputType->containerElement(); 133 138 } 134 139 -
trunk/Source/WebCore/html/HTMLInputElement.h
r88332 r89407 115 115 #endif 116 116 117 HTMLElement* containerElement() const; 117 118 virtual HTMLElement* innerTextElement() const; 118 119 HTMLElement* innerBlockElement() const; -
trunk/Source/WebCore/html/InputType.h
r89194 r89407 189 189 virtual void destroyShadowSubtree(); 190 190 191 virtual HTMLElement* containerElement() const { return 0; } 191 192 virtual HTMLElement* innerBlockElement() const { return 0; } 192 193 virtual HTMLElement* innerTextElement() const { return 0; } -
trunk/Source/WebCore/html/SearchInputType.cpp
r88216 r89407 32 32 #include "SearchInputType.h" 33 33 34 #include "ElementWithPseudoId.h" 34 35 #include "HTMLInputElement.h" 35 36 #include "ShadowRoot.h" … … 41 42 inline SearchInputType::SearchInputType(HTMLInputElement* element) 42 43 : BaseTextInputType(element) 43 , m_innerBlock(0)44 44 , m_resultsButton(0) 45 45 , m_cancelButton(0) … … 67 67 } 68 68 69 bool SearchInputType::needsContainer() const 70 { 71 return true; 72 } 73 69 74 void SearchInputType::createShadowSubtree() 70 75 { 71 ASSERT(!m_innerBlock);72 ASSERT(!innerTextElement());73 76 ASSERT(!m_resultsButton); 74 77 ASSERT(!m_cancelButton); 75 78 79 TextFieldInputType::createShadowSubtree(); 80 HTMLElement* container = containerElement(); 81 HTMLElement* textWrapper = innerBlockElement(); 82 ASSERT(container); 83 ASSERT(textWrapper); 84 76 85 ExceptionCode ec = 0; 77 Document* document = element()->document(); 78 RefPtr<HTMLElement> inner = TextControlInnerElement::create(document); 79 m_innerBlock = inner.get(); 80 element()->ensureShadowRoot()->appendChild(inner.release(), ec); 81 82 #if ENABLE(INPUT_SPEECH) 83 if (element()->isSpeechEnabled()) { 84 RefPtr<HTMLElement> speech = InputFieldSpeechButtonElement::create(document); 85 setSpeechButtonElement(speech.get()); 86 element()->ensureShadowRoot()->appendChild(speech.release(), ec); 87 } 88 #endif 89 90 RefPtr<HTMLElement> results = SearchFieldResultsButtonElement::create(document); 86 RefPtr<HTMLElement> results = SearchFieldResultsButtonElement::create(element()->document()); 91 87 m_resultsButton = results.get(); 92 m_innerBlock->appendChild(results.release(), ec); 93 94 RefPtr<HTMLElement> innerText = TextControlInnerTextElement::create(document); 95 setInnerTextElement(innerText.get()); 96 m_innerBlock->appendChild(innerText.release(), ec); 88 container->insertBefore(results.release(), textWrapper, ec); 97 89 98 90 RefPtr<HTMLElement> cancel = SearchFieldCancelButtonElement::create(element()->document()); 99 91 m_cancelButton = cancel.get(); 100 m_innerBlock->appendChild(cancel.release(), ec); 92 container->insertBefore(cancel.release(), textWrapper->nextSibling(), ec); 93 101 94 } 102 95 … … 104 97 { 105 98 TextFieldInputType::destroyShadowSubtree(); 106 m_innerBlock = 0;107 99 m_resultsButton = 0; 108 100 m_cancelButton = 0; -
trunk/Source/WebCore/html/SearchInputType.h
r88216 r89407 43 43 static PassOwnPtr<InputType> create(HTMLInputElement*); 44 44 45 protected:46 virtual void createShadowSubtree();47 virtual void destroyShadowSubtree();48 49 45 private: 50 46 SearchInputType(HTMLInputElement*); … … 52 48 virtual bool shouldRespectSpeechAttribute(); 53 49 virtual bool isSearchField() const; 54 virtual HTMLElement* innerBlockElement() const { return m_innerBlock; } 50 virtual bool needsContainer() const; 51 virtual void createShadowSubtree(); 52 virtual void destroyShadowSubtree(); 55 53 virtual HTMLElement* resultsButtonElement() const { return m_resultsButton; } 56 54 virtual HTMLElement* cancelButtonElement() const { return m_cancelButton; } 57 55 58 HTMLElement* m_innerBlock;59 56 HTMLElement* m_resultsButton; 60 57 HTMLElement* m_cancelButton; -
trunk/Source/WebCore/html/TextFieldInputType.cpp
r88216 r89407 34 34 35 35 #include "BeforeTextInsertedEvent.h" 36 #include "ElementWithPseudoId.h" 36 37 #include "Frame.h" 37 38 #include "HTMLInputElement.h" 38 39 #include "KeyboardEvent.h" 40 #include "Page.h" 39 41 #include "RenderTextControlSingleLine.h" 40 42 #include "RenderTheme.h" … … 50 52 TextFieldInputType::TextFieldInputType(HTMLInputElement* element) 51 53 : InputType(element) 54 , m_container(0) 55 , m_innerBlock(0) 52 56 , m_innerText(0) 53 57 , m_innerSpinButton(0) … … 130 134 } 131 135 136 bool TextFieldInputType::needsContainer() const 137 { 138 #if ENABLE(INPUT_SPEECH) 139 return element()->isSpeechEnabled(); 140 #else 141 return false; 142 #endif 143 } 144 132 145 void TextFieldInputType::createShadowSubtree() 133 146 { 134 147 ASSERT(!m_innerText); 148 ASSERT(!m_innerBlock); 135 149 ASSERT(!m_innerSpinButton); 136 150 137 bool shouldHaveSpinButton = RenderTheme::themeForPage(element()->document()->page())->shouldHaveSpinButton(element()); 138 bool hasDecorations = shouldHaveSpinButton; 139 #if ENABLE(INPUT_SPEECH) 140 if (element()->isSpeechEnabled()) 141 hasDecorations = true; 142 #endif 151 Document* document = element()->document(); 152 RefPtr<RenderTheme> theme = document->page() ? document->page()->theme() : RenderTheme::defaultTheme(); 153 bool shouldHaveSpinButton = theme->shouldHaveSpinButton(element()); 154 bool createsContainer = shouldHaveSpinButton || needsContainer(); 143 155 144 156 ExceptionCode ec = 0; 145 Document* document = element()->document();146 157 RefPtr<HTMLElement> innerText = TextControlInnerTextElement::create(document); 147 158 m_innerText = innerText.get(); 148 element()->ensureShadowRoot()->appendChild(innerText.release(), ec); 149 if (!hasDecorations) 150 return; 159 if (!createsContainer) { 160 element()->ensureShadowRoot()->appendChild(innerText.release(), ec); 161 return; 162 } 163 164 ShadowRoot* shadowRoot = element()->ensureShadowRoot(); 165 RefPtr<HTMLElement> container = ElementWithPseudoId::create(document, "-webkit-textfield-decoration-container"); 166 m_container = container.get(); 167 shadowRoot->appendChild(container.release(), ec); 168 169 RefPtr<HTMLElement> innerBlock = TextControlInnerElement::create(document); 170 m_innerBlock = innerBlock.get(); 171 m_innerBlock->appendChild(innerText.release(), ec); 172 m_container->appendChild(innerBlock.release(), ec); 151 173 152 174 #if ENABLE(INPUT_SPEECH) … … 155 177 RefPtr<HTMLElement> speech = InputFieldSpeechButtonElement::create(document); 156 178 m_speechButton = speech.get(); 157 element()->ensureShadowRoot()->appendChild(speech.release(), ec);179 m_container->appendChild(speech.release(), ec); 158 180 } 159 181 #endif … … 162 184 RefPtr<HTMLElement> inner = SpinButtonElement::create(document); 163 185 m_innerSpinButton = inner.get(); 164 element()->ensureShadowRoot()->appendChild(inner.release(), ec); 165 } 166 } 186 m_container->appendChild(inner.release(), ec); 187 } 188 } 189 190 HTMLElement* TextFieldInputType::containerElement() const 191 { 192 return m_container; 193 } 194 195 HTMLElement* TextFieldInputType::innerBlockElement() const 196 { 197 return m_innerBlock; 198 } 199 200 HTMLElement* TextFieldInputType::innerTextElement() const 201 { 202 ASSERT(m_innerText); 203 return m_innerText; 204 } 205 206 HTMLElement* TextFieldInputType::innerSpinButtonElement() const 207 { 208 return m_innerSpinButton; 209 } 210 211 #if ENABLE(INPUT_SPEECH) 212 HTMLElement* TextFieldInputType::speechButtonElement() const 213 { 214 return m_speechButton; 215 } 216 #endif 167 217 168 218 void TextFieldInputType::destroyShadowSubtree() 169 219 { 170 220 InputType::destroyShadowSubtree(); 221 m_innerSpinButton = 0; 222 #if ENABLE(INPUT_SPEECH) 223 m_speechButton = 0; 224 #endif 171 225 m_innerText = 0; 172 #if ENABLE(INPUT_SPEECH) 173 m_speechButton = 0; 174 #endif 175 m_innerSpinButton = 0; 226 m_innerBlock = 0; 227 m_container = 0; 176 228 } 177 229 -
trunk/Source/WebCore/html/TextFieldInputType.h
r88216 r89407 46 46 void handleWheelEventForSpinButton(WheelEvent*); 47 47 48 virtual HTMLElement* innerTextElement() const { return m_innerText; } 49 virtual HTMLElement* innerSpinButtonElement() const { return m_innerSpinButton; } 48 virtual HTMLElement* containerElement() const; 49 virtual HTMLElement* innerBlockElement() const; 50 virtual HTMLElement* innerTextElement() const; 51 virtual HTMLElement* innerSpinButtonElement() const; 50 52 #if ENABLE(INPUT_SPEECH) 51 virtual HTMLElement* speechButtonElement() const { return m_speechButton; }53 virtual HTMLElement* speechButtonElement() const; 52 54 #endif 53 55 54 56 protected: 57 virtual bool needsContainer() const; 55 58 virtual void createShadowSubtree(); 56 59 virtual void destroyShadowSubtree(); 57 void setInnerTextElement(HTMLElement* element) { m_innerText = element; }58 #if ENABLE(INPUT_SPEECH)59 void setSpeechButtonElement(HTMLElement* element) { m_speechButton = element; }60 #endif61 60 62 61 private: … … 71 70 virtual bool shouldRespectListAttribute(); 72 71 72 HTMLElement* m_container; 73 HTMLElement* m_innerBlock; 73 74 HTMLElement* m_innerText; 74 75 HTMLElement* m_innerSpinButton; -
trunk/Source/WebCore/rendering/RenderTextControlSingleLine.cpp
r88319 r89407 89 89 } 90 90 91 HTMLElement* RenderTextControlSingleLine::innerTextElement() const 91 inline HTMLElement* RenderTextControlSingleLine::containerElement() const 92 { 93 return inputElement()->containerElement(); 94 } 95 96 inline HTMLElement* RenderTextControlSingleLine::innerTextElement() const 92 97 { 93 98 return inputElement()->innerTextElement(); … … 254 259 void RenderTextControlSingleLine::layout() 255 260 { 261 // FIXME: We should remove the height-related hacks in layout() and 262 // styleDidChange(). We need them because 263 // - Center the inner elements vertically if the input height is taller than 264 // the intrinsic height of the inner elements. 265 // - Shrink the inner elment heights if the input height is samller than the 266 // intrinsic heights of the inner elements. 267 256 268 int oldHeight = height(); 257 269 computeLogicalHeight(); … … 265 277 HTMLElement* innerBlock = innerBlockElement(); 266 278 RenderBox* innerBlockRenderer = innerBlock ? innerBlock->renderBox() : 0; 279 HTMLElement* container = containerElement(); 280 RenderBox* containerRenderer = container ? container->renderBox() : 0; 267 281 268 282 // Set the text block height 269 283 int desiredHeight = textBlockHeight(); 284 // innerTextRenderer might have stale metrics made from an old style. 285 innerTextRenderer->layoutIfNeeded(); 270 286 int currentHeight = innerTextRenderer->height(); 271 287 272 if (currentHeight > height()) {288 if (currentHeight > contentHeight()) { 273 289 if (desiredHeight != currentHeight) 274 290 relayoutChildren = true; 275 291 innerTextRenderer->style()->setHeight(Length(desiredHeight, Fixed)); 276 if (innerBlock )292 if (innerBlockRenderer) 277 293 innerBlockRenderer->style()->setHeight(Length(desiredHeight, Fixed)); 278 294 } 279 280 // Set the text block width 281 int desiredWidth = textBlockWidth(); 282 if (desiredWidth != innerTextRenderer->width()) 295 // The container might be taller because of decoration elements. 296 if (containerRenderer) 297 containerRenderer->layoutIfNeeded(); 298 if (containerRenderer && desiredHeight != containerRenderer->height()) { 299 containerRenderer->style()->setHeight(Length(desiredHeight, Fixed)); 283 300 relayoutChildren = true; 284 innerTextRenderer->style()->setWidth(Length(desiredWidth, Fixed));285 286 if (innerBlock) {287 int innerBlockWidth = width() - borderAndPaddingWidth();288 if (innerBlockWidth != innerBlockRenderer->width())289 relayoutChildren = true;290 innerBlockRenderer->style()->setWidth(Length(innerBlockWidth, Fixed));291 301 } 292 302 … … 294 304 295 305 // Center the child block vertically 296 RenderBox* childBlock = innerBlockRenderer ? innerBlockRenderer : innerTextRenderer; 297 currentHeight = childBlock->height(); 298 if (currentHeight < height()) 299 childBlock->setY((height() - currentHeight) / 2); 306 currentHeight = innerTextRenderer->height(); 307 if (!container && currentHeight < contentHeight()) 308 innerTextRenderer->setY(borderTop() + paddingTop() + (contentHeight() - currentHeight) / 2); 300 309 301 310 // Ignores the paddings for the inner spin button. 302 HTMLElement* innerSpinButton = innerSpinButtonElement(); 303 if (RenderBox* spinBox = innerSpinButton ? innerSpinButton->renderBox() : 0) { 304 spinBox->setLocation(IntPoint(spinBox->x() + paddingRight(), borderTop())); 305 spinBox->setHeight(height() - borderTop() - borderBottom()); 306 } 307 308 #if ENABLE(INPUT_SPEECH) 309 if (RenderBox* button = speechButtonElement() ? speechButtonElement()->renderBox() : 0) { 310 if (innerBlock) { 311 // This is mostly the case where this is a search field. The speech button is a sibling 312 // of the inner block and laid out at the far right. 313 int x = width() - borderAndPaddingWidth() - button->width() - button->borderAndPaddingWidth(); 314 int y = (height() - button->height()) / 2; 315 button->setLocation(IntPoint(x, y)); 316 } else { 317 int x = width() - borderRight() - paddingRight() - button->width(); 318 RenderBox* spinBox = innerSpinButtonElement() ? innerSpinButtonElement()->renderBox() : 0; 319 if (style()->isLeftToRightDirection()) 320 x -= spinBox ? spinBox->width() : 0; 321 else 322 innerTextRenderer->setX(paddingLeft() + borderLeft() + (spinBox ? spinBox->width() : 0)); 323 int y = (height() - button->height()) / 2; 324 button->setLocation(IntPoint(x, y)); 325 } 326 } 327 #endif 311 RenderBox* innerSpinBox = innerSpinButtonElement() ? innerSpinButtonElement()->renderBox() : 0; 312 if (innerSpinBox) { 313 RenderBox* parentBox = innerSpinBox->parentBox(); 314 innerSpinBox->setLocation(IntPoint(parentBox->width() - innerSpinBox->width() + paddingRight(), -paddingTop())); 315 innerSpinBox->setHeight(height() - borderTop() - borderBottom()); 316 } 328 317 } 329 318 330 319 bool RenderTextControlSingleLine::nodeAtPoint(const HitTestRequest& request, HitTestResult& result, const IntPoint& pointInContainer, const IntPoint& accumulatedOffset, HitTestAction hitTestAction) 331 320 { 332 // If we're within the text control, we want to act as if we've hit the inner text block element, in case the point333 // was on the control but not on the inner element (see Radar 4617841).334 335 // In a search field, we want to act as if we've hit the results block if we're to the left of the inner text block,336 // and act as if we've hit the close block if we're to the right of the inner text block.337 338 321 if (!RenderTextControl::nodeAtPoint(request, result, pointInContainer, accumulatedOffset, hitTestAction)) 339 322 return false; 340 323 341 // If we hit a node inside the inner text element, say that we hit that element, 342 // and if we hit our node (e.g. we're over the border or padding), also say that we hit the 343 // inner text element so that it gains focus. 344 if (result.innerNode()->isDescendantOf(innerTextElement()) || result.innerNode() == node()) 324 // Say that we hit the inner text element if 325 // - we hit a node inside the inner text element, 326 // - we hit the <input> element (e.g. we're over the border or padding), or 327 // - we hit regions not in any decoration buttons. 328 if (result.innerNode()->isDescendantOf(innerTextElement()) || result.innerNode() == node() || (containerElement() && containerElement() == result.innerNode())) 345 329 hitInnerTextElement(result, pointInContainer, accumulatedOffset); 346 347 // If we found a spin button, we're done.348 HTMLElement* innerSpinButton = innerSpinButtonElement();349 if (innerSpinButton && result.innerNode() == innerSpinButton)350 return true;351 #if ENABLE(INPUT_SPEECH)352 HTMLElement* speechButton = speechButtonElement();353 if (speechButton && result.innerNode() == speechButton)354 return true;355 #endif356 // If we're not a search field, or we already found the speech, results or cancel buttons, we're done.357 HTMLElement* innerBlock = innerBlockElement();358 HTMLElement* resultsButton = resultsButtonElement();359 HTMLElement* cancelButton = cancelButtonElement();360 if (!innerBlock || result.innerNode() == resultsButton || result.innerNode() == cancelButton)361 return true;362 363 Node* innerNode = 0;364 RenderBox* innerBlockRenderer = innerBlock->renderBox();365 RenderBox* innerTextRenderer = innerTextElement()->renderBox();366 367 IntPoint localPoint = result.localPoint();368 localPoint.move(-innerBlockRenderer->location());369 370 int textLeft = accumulatedOffset.x() + x() + innerBlockRenderer->x() + innerTextRenderer->x();371 if (resultsButton && resultsButton->renderer() && pointInContainer.x() < textLeft)372 innerNode = resultsButton;373 374 #if ENABLE(INPUT_SPEECH)375 if (!innerNode && speechButtonElement() && speechButtonElement()->renderer()) {376 int buttonLeft = accumulatedOffset.x() + x() + innerBlockRenderer->x() + innerBlockRenderer->width() - speechButtonElement()->renderBox()->width();377 if (pointInContainer.x() >= buttonLeft)378 innerNode = speechButtonElement();379 }380 #endif381 382 if (!innerNode) {383 int textRight = textLeft + innerTextRenderer->width();384 if (cancelButton && cancelButton->renderer() && pointInContainer.x() > textRight)385 innerNode = cancelButton;386 }387 388 if (innerNode) {389 result.setInnerNode(innerNode);390 localPoint.move(-innerNode->renderBox()->location());391 }392 393 result.setLocalPoint(localPoint);394 330 return true; 395 331 } … … 409 345 capsLockStateMayHaveChanged(); 410 346 411 if (!event->isMouseEvent()) { 412 RenderTextControl::forwardEvent(event); 413 return; 414 } 415 416 #if ENABLE(INPUT_SPEECH) 417 if (RenderBox* speechBox = speechButtonElement() ? speechButtonElement()->renderBox() : 0) { 418 RenderBox* parent = innerTextRenderer ? innerTextRenderer : this; 419 FloatPoint pointInTextControlCoords = parent->absoluteToLocal(static_cast<MouseEvent*>(event)->absoluteLocation(), false, true); 420 if (speechBox->frameRect().contains(roundedIntPoint(pointInTextControlCoords))) { 421 speechButtonElement()->defaultEventHandler(event); 422 return; 423 } 424 } 425 #endif 426 427 FloatPoint localPoint = innerTextRenderer->absoluteToLocal(static_cast<MouseEvent*>(event)->absoluteLocation(), false, true); 428 int textRight = innerTextRenderer->borderBoxRect().maxX(); 429 430 HTMLElement* resultsButton = resultsButtonElement(); 431 HTMLElement* cancelButton = cancelButtonElement(); 432 if (resultsButton && localPoint.x() < innerTextRenderer->borderBoxRect().x()) 433 resultsButton->defaultEventHandler(event); 434 else if (cancelButton && localPoint.x() > textRight) 435 cancelButton->defaultEventHandler(event); 436 else 437 RenderTextControl::forwardEvent(event); 347 RenderTextControl::forwardEvent(event); 438 348 } 439 349 … … 442 352 RenderTextControl::styleDidChange(diff, oldStyle); 443 353 354 // We may have set the width and the height in the old style in layout(). 355 // Reset them now to avoid getting a spurious layout hint. 444 356 HTMLElement* innerBlock = innerBlockElement(); 445 357 if (RenderObject* innerBlockRenderer = innerBlock ? innerBlock->renderer() : 0) { 446 // We may have set the width and the height in the old style in layout().447 // Reset them now to avoid getting a spurious layout hint.448 358 innerBlockRenderer->style()->setHeight(Length()); 449 359 innerBlockRenderer->style()->setWidth(Length()); 450 innerBlockRenderer->setStyle(createInnerBlockStyle(style())); 360 } 361 HTMLElement* container = containerElement(); 362 if (RenderObject* containerRenderer = container ? container->renderer() : 0) { 363 containerRenderer->style()->setHeight(Length()); 364 containerRenderer->style()->setWidth(Length()); 451 365 } 452 366 setHasOverflowClip(false); … … 479 393 bool RenderTextControlSingleLine::hasControlClip() const 480 394 { 481 bool clip = cancelButtonElement();482 return clip;395 // Apply control clip for text fields with decorations. 396 return !!containerElement(); 483 397 } 484 398 485 399 IntRect RenderTextControlSingleLine::controlClipRect(const IntPoint& additionalOffset) const 486 400 { 487 // This should only get called for search & speech inputs.488 401 ASSERT(hasControlClip()); 489 490 IntRect clipRect = IntRect(innerBlockElement()->renderBox()->frameRect()); 402 IntRect clipRect = IntRect(containerElement()->renderBox()->frameRect()); 491 403 clipRect.moveBy(additionalOffset); 492 404 return clipRect; 493 }494 495 int RenderTextControlSingleLine::textBlockWidth() const496 {497 int width = RenderTextControl::textBlockWidth();498 499 HTMLElement* resultsButton = resultsButtonElement();500 if (RenderBox* resultsRenderer = resultsButton ? resultsButton->renderBox() : 0) {501 resultsRenderer->computeLogicalWidth();502 width -= resultsRenderer->width() + resultsRenderer->marginLeft() + resultsRenderer->marginRight();503 }504 505 HTMLElement* cancelButton = cancelButtonElement();506 if (RenderBox* cancelRenderer = cancelButton ? cancelButton->renderBox() : 0) {507 cancelRenderer->computeLogicalWidth();508 width -= cancelRenderer->width() + cancelRenderer->marginLeft() + cancelRenderer->marginRight();509 }510 511 HTMLElement* innerSpinButton = innerSpinButtonElement();512 if (RenderBox* spinRenderer = innerSpinButton ? innerSpinButton->renderBox() : 0) {513 spinRenderer->computeLogicalWidth();514 width -= spinRenderer->width() + spinRenderer->marginLeft() + spinRenderer->marginRight();515 }516 517 #if ENABLE(INPUT_SPEECH)518 HTMLElement* speechButton = speechButtonElement();519 if (RenderBox* speechRenderer = speechButton ? speechButton->renderBox() : 0) {520 speechRenderer->computeLogicalWidth();521 width -= speechRenderer->width() + speechRenderer->marginLeft() + speechRenderer->marginRight();522 }523 #endif524 525 return width;526 405 } 527 406 … … 648 527 textBlockStyle->setLineHeight(Length(-100.0f, Percent)); 649 528 650 WebCore::EDisplay display = (innerBlockElement() || theme()->shouldHaveSpinButton(inputElement()) ? INLINE_BLOCK : BLOCK); 651 #if ENABLE(INPUT_SPEECH) 652 if (inputElement()->isSpeechEnabled()) 653 display = INLINE_BLOCK; 654 #endif 655 textBlockStyle->setDisplay(display); 529 textBlockStyle->setDisplay(BLOCK); 656 530 657 531 // We're adding one extra pixel of padding to match WinIE. … … 667 541 innerBlockStyle->inheritFrom(startStyle); 668 542 543 innerBlockStyle->setBoxFlex(1); 669 544 innerBlockStyle->setDisplay(BLOCK); 670 545 innerBlockStyle->setDirection(LTR); … … 977 852 int RenderTextControlSingleLine::textBlockInsetTop() const 978 853 { 979 RenderBox* innerRenderer = 0; 980 981 if (HTMLElement* innerBlock = innerBlockElement()) 982 innerRenderer = innerBlock->renderBox(); 983 else if (HTMLElement* innerText = innerTextElement()) 984 innerRenderer = innerText->renderBox(); 985 986 return innerRenderer ? innerRenderer->y() : borderTop() + paddingTop(); 854 HTMLElement* innerText = innerTextElement(); 855 if (!innerText || !innerText->renderBox()) 856 return borderTop() + paddingTop(); 857 HTMLElement* container = containerElement(); 858 if (!container) 859 return innerText->renderBox()->y(); 860 ASSERT(innerBlockElement()); 861 if (!container->renderBox() || !innerBlockElement()->renderBox()) 862 return innerText->renderBox()->y(); 863 return container->renderBox()->y() + innerBlockElement()->renderBox()->y(); 987 864 } 988 865 -
trunk/Source/WebCore/rendering/RenderTextControlSingleLine.h
r88319 r89407 132 132 virtual int textBlockInsetTop() const; 133 133 134 HTMLElement* containerElement() const; 134 135 virtual HTMLElement* innerTextElement() const; 135 136 HTMLElement* innerBlockElement() const;
Note: See TracChangeset
for help on using the changeset viewer.