Changeset 16044 in webkit
- Timestamp:
- Aug 25, 2006, 4:44:05 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 8 added
- 94 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r16026 r16044 1 2006-08-25 Adele Peterson <adele@apple.com> 2 3 Reviewed by Hyatt. 4 5 New tests and updated tests for styled selects. 6 7 * fast/borders/borderRadiusInvalidColor-expected.checksum: Added. 8 * fast/borders/borderRadiusInvalidColor-expected.png: Added. 9 * fast/borders/borderRadiusInvalidColor-expected.txt: Added. 10 * fast/borders/borderRadiusInvalidColor.html: Added. 11 12 * fast/forms/select-baseline-expected.checksum: Added. 13 * fast/forms/select-baseline-expected.png: Added. 14 * fast/forms/select-baseline-expected.txt: Added. 15 * fast/forms/select-baseline.html: Added. 16 17 * editing/pasteboard/4641033-expected.txt: 18 * editing/selection/replaced-boundaries-3-expected.txt: 19 * editing/selection/select-box-expected.txt: 20 * fast/block/margin-collapse/103-expected.txt: 21 * fast/forms/001-expected.checksum: 22 * fast/forms/001-expected.png: 23 * fast/forms/001-expected.txt: 24 * fast/forms/003-expected.txt: 25 * fast/forms/004-expected.txt: 26 * fast/forms/HTMLOptionElement_label01-expected.txt: 27 * fast/forms/HTMLOptionElement_label02-expected.txt: 28 * fast/forms/HTMLOptionElement_label03-expected.txt: 29 * fast/forms/HTMLOptionElement_label04-expected.txt: 30 * fast/forms/HTMLOptionElement_label06-expected.txt: 31 * fast/forms/HTMLOptionElement_label07-expected.txt: 32 * fast/forms/form-element-geometry-expected.checksum: 33 * fast/forms/form-element-geometry-expected.png: 34 * fast/forms/form-element-geometry-expected.txt: 35 * fast/forms/option-script-expected.txt: 36 * fast/forms/option-text-clip-expected.txt: 37 * fast/forms/select-change-listbox-to-popup-expected.txt: 38 * fast/forms/select-selected-expected.txt: 39 * fast/forms/select-style-expected.txt: 40 * fast/forms/select-visual-hebrew-expected.txt: 41 * fast/invalid/014-expected.txt: 42 * fast/parser/document-write-option-expected.txt: 43 * fast/replaced/width100percent-expected.txt: 44 * http/tests/navigation/anchor-basic-expected.txt: 45 * http/tests/navigation/anchor-frames-expected.txt: 46 * http/tests/navigation/anchor-goback-expected.txt: 47 * http/tests/navigation/anchor-subframeload-expected.txt: 48 * http/tests/navigation/javascriptlink-basic-expected.txt: 49 * http/tests/navigation/javascriptlink-frames-expected.txt: 50 * http/tests/navigation/javascriptlink-goback-expected.txt: 51 * http/tests/navigation/javascriptlink-subframeload-expected.txt: 52 * http/tests/navigation/metaredirect-basic-expected.txt: 53 * http/tests/navigation/metaredirect-frames-expected.txt: 54 * http/tests/navigation/metaredirect-goback-expected.txt: 55 * http/tests/navigation/metaredirect-subframeload-expected.txt: 56 * http/tests/navigation/post-goback2-expected.txt: 57 * http/tests/navigation/postredirect-goback2-expected.txt: 58 * http/tests/navigation/redirect302-basic-expected.txt: 59 * http/tests/navigation/redirect302-frames-expected.txt: 60 * http/tests/navigation/redirect302-goback-expected.txt: 61 * http/tests/navigation/redirect302-subframeload-expected.txt: 62 * http/tests/navigation/relativeanchor-basic-expected.txt: 63 * http/tests/navigation/relativeanchor-frames-expected.txt: 64 * http/tests/navigation/relativeanchor-goback-expected.txt: 65 * http/tests/navigation/slowmetaredirect-basic-expected.txt: 66 * http/tests/navigation/slowtimerredirect-basic-expected.txt: 67 * http/tests/navigation/success200-basic-expected.txt: 68 * http/tests/navigation/success200-frames-expected.txt: 69 * http/tests/navigation/success200-frames-loadsame-expected.txt: 70 * http/tests/navigation/success200-goback-expected.txt: 71 * http/tests/navigation/success200-loadsame-expected.txt: 72 * http/tests/navigation/success200-reload-expected.txt: 73 * http/tests/navigation/success200-subframeload-expected.txt: 74 * http/tests/navigation/timerredirect-basic-expected.txt: 75 * http/tests/navigation/timerredirect-frames-expected.txt: 76 * http/tests/navigation/timerredirect-goback-expected.txt: 77 * http/tests/navigation/timerredirect-subframeload-expected.txt: 78 * tables/mozilla/bugs/bug1188-expected.txt: 79 * tables/mozilla/bugs/bug18359-expected.txt: 80 * tables/mozilla/bugs/bug2479-3-expected.txt: 81 * tables/mozilla/bugs/bug2479-4-expected.txt: 82 * tables/mozilla/bugs/bug29326-expected.txt: 83 * tables/mozilla/bugs/bug33855-expected.txt: 84 * tables/mozilla/bugs/bug4382-expected.txt: 85 * tables/mozilla/bugs/bug96334-expected.txt: 86 * tables/mozilla/core/margins-expected.txt: 87 * tables/mozilla/dom/tableDom-expected.txt: 88 * tables/mozilla_expected_failures/bugs/bug2479-5-expected.txt: 89 1 90 2006-08-24 Darin Adler <darin@apple.com> 2 91 -
trunk/LayoutTests/editing/pasteboard/4641033-expected.txt
r15617 r16044 32 32 RenderText {#text} at (76,89) size 4x18 33 33 text run at (76,89) width 4: " " 34 RenderMenuList {SELECT} at (82,90) size 36x18 34 RenderMenuList {SELECT} at (82,90) size 36x18 [bgcolor=#FFFFFF] 35 35 RenderBlock (anonymous) at (0,196) size 784x110 36 36 RenderImage {IMG} at (0,0) size 76x103 37 37 RenderText {#text} at (76,89) size 4x18 38 38 text run at (76,89) width 4: " " 39 RenderMenuList {SELECT} at (82,90) size 52x18 39 RenderMenuList {SELECT} at (82,90) size 52x18 [bgcolor=#FFFFFF] 40 40 RenderBlock (anonymous) at (8,2) size 21x13 41 41 RenderText at (0,0) size 19x13 -
trunk/LayoutTests/editing/selection/replaced-boundaries-3-expected.txt
r15531 r16044 19 19 text run at (0,0) width 22: "abc" 20 20 RenderBR {BR} at (22,14) size 0x0 21 RenderMenuList {SELECT} at (2,20) size 226x18 21 RenderMenuList {SELECT} at (2,20) size 226x18 [bgcolor=#FFFFFF] 22 22 RenderBlock (anonymous) at (8,2) size 195x13 23 23 RenderText at (0,0) size 195x13 -
trunk/LayoutTests/editing/selection/select-box-expected.txt
r15531 r16044 65 65 RenderText {#text} at (0,1) size 71x18 66 66 text run at (0,1) width 71: "select box: " 67 RenderMenuList {SELECT} at (73,2) size 38x18 67 RenderMenuList {SELECT} at (73,2) size 38x18 [bgcolor=#FFFFFF] 68 68 RenderBlock (anonymous) at (8,2) size 7x13 69 69 RenderText at (0,0) size 7x13 -
trunk/LayoutTests/fast/block/margin-collapse/103-expected.txt
r15290 r16044 38 38 RenderText {#text} at (0,2) size 128x15 39 39 text run at (0,2) width 128: "Your degree program*" 40 RenderMenuList {SELECT} at (325,68) size 180x18 40 RenderMenuList {SELECT} at (325,68) size 180x18 [bgcolor=#FFFFFF] 41 41 RenderBlock (anonymous) at (8,2) size 149x13 42 42 RenderText at (0,0) size 90x13 … … 45 45 RenderText {#text} at (0,2) size 110x15 46 46 text run at (0,2) width 110: "Your year of study*" 47 RenderMenuList {SELECT} at (325,88) size 180x18 47 RenderMenuList {SELECT} at (325,88) size 180x18 [bgcolor=#FFFFFF] 48 48 RenderBlock (anonymous) at (8,2) size 149x13 49 49 RenderText at (0,0) size 124x13 … … 52 52 RenderText {#text} at (0,2) size 152x15 53 53 text run at (0,2) width 152: "Shakespeare classes taken" 54 RenderMenuList {SELECT} at (325,108) size 180x18 54 RenderMenuList {SELECT} at (325,108) size 180x18 [bgcolor=#FFFFFF] 55 55 RenderBlock (anonymous) at (8,2) size 149x13 56 56 RenderText at (0,0) size 76x13 … … 65 65 RenderText {#text} at (0,2) size 321x15 66 66 text run at (0,2) width 321: "What percentage of your research time is spent online?" 67 RenderMenuList {SELECT} at (325,210) size 180x18 67 RenderMenuList {SELECT} at (325,210) size 180x18 [bgcolor=#FFFFFF] 68 68 RenderBlock (anonymous) at (8,2) size 149x13 69 69 RenderText at (0,0) size 106x13 … … 73 73 text run at (0,2) width 300: "What is holding you back from doing more research" 74 74 text run at (0,22) width 41: "online?" 75 RenderMenuList {SELECT} at (325,230) size 180x18 75 RenderMenuList {SELECT} at (325,230) size 180x18 [bgcolor=#FFFFFF] 76 76 RenderBlock (anonymous) at (8,2) size 149x13 77 77 RenderText at (0,0) size 44x13 … … 113 113 RenderText {#text} at (0,2) size 274x15 114 114 text run at (0,2) width 274: "Which area of the ISE did you find most useful?" 115 RenderMenuList {SELECT} at (325,427) size 180x18 115 RenderMenuList {SELECT} at (325,427) size 180x18 [bgcolor=#FFFFFF] 116 116 RenderBlock (anonymous) at (8,2) size 149x13 117 117 RenderText at (0,0) size 99x13 … … 120 120 RenderText {#text} at (0,2) size 252x15 121 121 text run at (0,2) width 252: "How did you find the navigation of the ISE?" 122 RenderMenuList {SELECT} at (325,447) size 180x18 122 RenderMenuList {SELECT} at (325,447) size 180x18 [bgcolor=#FFFFFF] 123 123 RenderBlock (anonymous) at (8,2) size 149x13 124 124 RenderText at (0,0) size 91x13 -
trunk/LayoutTests/fast/forms/001-expected.checksum
r15339 r16044 1 64b27f49c223c43307733f846fac6fd3 1 30c93784fba4675931e35b46fcefe87d -
trunk/LayoutTests/fast/forms/001-expected.txt
r15339 r16044 7 7 RenderText {#text} at (0,0) size 234x37 8 8 text run at (0,0) width 234: "Min-Width Tests" 9 RenderTable {TABLE} at (0,58) size 784x 24[border: (2px outset #808080)]10 RenderTableSection {TBODY} at (2,2) size 780x 2011 RenderTableRow {TR} at (0,0) size 780x 2012 RenderTableCell {TD} at (0,0) size 57x20[border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]13 RenderMenuList {SELECT} at (3,1) size 51x1814 RenderBlock (anonymous) at ( 8,2) size 20x139 RenderTable {TABLE} at (0,58) size 784x89 [border: (2px outset #808080)] 10 RenderTableSection {TBODY} at (2,2) size 780x85 11 RenderTableRow {TR} at (0,0) size 780x85 12 RenderTableCell {TD} at (0,0) size 135x85 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1] 13 RenderMenuList {SELECT} at (3,1) size 129x83 [bgcolor=#FFFFFF] [border: (40px solid #FF0000)] 14 RenderBlock (anonymous) at (48,41) size 20x13 15 15 RenderText at (0,0) size 20x13 16 16 text run at (0,0) width 20: "Foo" 17 RenderTableCell {TD} at ( 57,9) size 723x2 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]18 RenderBlock {P} at (0, 98) size 784x2417 RenderTableCell {TD} at (135,41) size 645x2 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1] 18 RenderBlock {P} at (0,163) size 784x24 19 19 RenderTable {TABLE} at (0,0) size 784x24 [border: (2px outset #808080)] 20 20 RenderTableSection {TBODY} at (2,2) size 780x20 … … 23 23 RenderBlock {INPUT} at (4,4) size 12x12 24 24 RenderTableCell {TD} at (20,9) size 760x2 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1] 25 RenderBlock {P} at (0, 138) size 784x2425 RenderBlock {P} at (0,203) size 784x24 26 26 RenderTable {TABLE} at (0,0) size 784x24 [border: (2px outset #808080)] 27 27 RenderTableSection {TBODY} at (2,2) size 780x20 … … 30 30 RenderBlock {INPUT} at (4,4) size 12x12 31 31 RenderTableCell {TD} at (20,9) size 760x2 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1] 32 RenderBlock {P} at (0, 178) size 784x2832 RenderBlock {P} at (0,243) size 784x28 33 33 RenderTable {TABLE} at (0,0) size 784x28 [border: (2px outset #808080)] 34 34 RenderTableSection {TBODY} at (2,2) size 780x24 … … 40 40 text run at (0,0) width 20: "Foo" 41 41 RenderTableCell {TD} at (42,11) size 738x2 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1] 42 RenderBlock {P} at (0,2 22) size 784x26742 RenderBlock {P} at (0,287) size 784x267 43 43 RenderTable {TABLE} at (0,0) size 784x91 [border: (2px outset #808080)] 44 44 RenderTableSection {TBODY} at (2,2) size 780x87 -
trunk/LayoutTests/fast/forms/003-expected.txt
r15290 r16044 4 4 RenderBlock {HTML} at (0,0) size 800x600 5 5 RenderBody {BODY} at (8,8) size 784x584 6 RenderMenuList {SELECT} at (2,0) size 59x18 6 RenderMenuList {SELECT} at (2,0) size 59x18 [bgcolor=#FFFFFF] 7 7 RenderBlock (anonymous) at (8,2) size 28x13 8 8 RenderText at (0,0) size 28x13 -
trunk/LayoutTests/fast/forms/004-expected.txt
r15290 r16044 4 4 RenderBlock {HTML} at (0,0) size 800x600 5 5 RenderBody {BODY} at (8,8) size 784x584 6 RenderMenuList {SELECT} at (2,2) size 59x18 6 RenderMenuList {SELECT} at (2,2) size 59x18 [bgcolor=#FFFFFF] 7 7 RenderBlock (anonymous) at (8,2) size 28x13 8 8 RenderText at (0,0) size 28x13 … … 10 10 RenderText {#text} at (63,1) size 4x18 11 11 text run at (63,1) width 4: " " 12 RenderMenuList {SELECT} at (69,2) size 79x18 12 RenderMenuList {SELECT} at (69,2) size 79x18 [bgcolor=#FFFFFF] 13 13 RenderBlock (anonymous) at (8,2) size 48x13 14 14 RenderText at (0,0) size 48x13 -
trunk/LayoutTests/fast/forms/HTMLOptionElement_label01-expected.txt
r15290 r16044 7 7 text run at (0,0) width 673: "In the selection list below, the text 'The label for this element is \"1\"' should appear, and not the character '1'" 8 8 RenderBR {BR} at (673,14) size 0x0 9 RenderMenuList {SELECT} at (2,20) size 197x18 9 RenderMenuList {SELECT} at (2,20) size 197x18 [bgcolor=#FFFFFF] 10 10 RenderBlock (anonymous) at (8,2) size 166x13 11 11 RenderText at (0,0) size 166x13 -
trunk/LayoutTests/fast/forms/HTMLOptionElement_label02-expected.txt
r15290 r16044 7 7 text run at (0,0) width 300: "With the label empty, the enclosing text is used." 8 8 RenderBR {BR} at (300,14) size 0x0 9 RenderMenuList {SELECT} at (2,20) size 309x18 9 RenderMenuList {SELECT} at (2,20) size 309x18 [bgcolor=#FFFFFF] 10 10 RenderBlock (anonymous) at (8,2) size 278x13 11 11 RenderText at (0,0) size 279x13 -
trunk/LayoutTests/fast/forms/HTMLOptionElement_label03-expected.txt
r15290 r16044 7 7 text run at (0,0) width 436: "When the label contains only white space, the containing text is used." 8 8 RenderBR {BR} at (436,14) size 0x0 9 RenderMenuList {SELECT} at (2,20) size 338x18 9 RenderMenuList {SELECT} at (2,20) size 338x18 [bgcolor=#FFFFFF] 10 10 RenderBlock (anonymous) at (8,2) size 307x13 11 11 RenderText at (0,0) size 308x13 -
trunk/LayoutTests/fast/forms/HTMLOptionElement_label04-expected.txt
r15290 r16044 7 7 text run at (0,0) width 595: "The label attribute appears, but is missing the equals value piece, so the containing text is used." 8 8 RenderBR {BR} at (595,14) size 0x0 9 RenderMenuList {SELECT} at (2,20) size 464x18 9 RenderMenuList {SELECT} at (2,20) size 464x18 [bgcolor=#FFFFFF] 10 10 RenderBlock (anonymous) at (8,2) size 433x13 11 11 RenderText at (0,0) size 433x13 -
trunk/LayoutTests/fast/forms/HTMLOptionElement_label06-expected.txt
r15290 r16044 7 7 text run at (0,0) width 718: "The select item below has a label specified, and no enclosed text. There should be no text shown in the select box." 8 8 RenderBR {BR} at (718,14) size 0x0 9 RenderMenuList {SELECT} at (2,20) size 53x18 9 RenderMenuList {SELECT} at (2,20) size 53x18 [bgcolor=#FFFFFF] 10 10 RenderBlock (anonymous) at (8,2) size 22x13 11 11 RenderText at (0,0) size 22x13 -
trunk/LayoutTests/fast/forms/HTMLOptionElement_label07-expected.txt
r15290 r16044 8 8 text run at (0,18) width 28: "box." 9 9 RenderBR {BR} at (28,32) size 0x0 10 RenderMenuList {SELECT} at (2,38) size 36x18 10 RenderMenuList {SELECT} at (2,38) size 36x18 [bgcolor=#FFFFFF] 11 11 RenderText {#text} at (0,0) size 0x0 -
trunk/LayoutTests/fast/forms/form-element-geometry-expected.checksum
r15309 r16044 1 eddcc7aa8111d729c3cb56d3fa81566c 1 8a8f3798c469460bda12c28dc5b8e130 -
trunk/LayoutTests/fast/forms/form-element-geometry-expected.txt
r15290 r16044 26 26 RenderBlock {DIV} at (1,1) size 66x22 [border: (2px solid #0000FF)] 27 27 RenderInline {FONT} at (0,0) size 62x18 28 RenderMenuList {SELECT} at (2,2) size 62x18 28 RenderMenuList {SELECT} at (2,2) size 62x18 [bgcolor=#FFFFFF] 29 29 RenderBlock (anonymous) at (8,2) size 31x13 30 30 RenderText at (0,0) size 31x13 … … 55 55 RenderTableCell {TD} at (62,2) size 68x24 [r=0 c=1 rs=1 cs=1] 56 56 RenderBlock {DIV} at (1,1) size 66x22 [border: (2px solid #0000FF)] 57 RenderMenuList {SELECT} at (2,2) size 62x18 57 RenderMenuList {SELECT} at (2,2) size 62x18 [bgcolor=#FFFFFF] 58 58 RenderBlock (anonymous) at (8,2) size 31x13 59 59 RenderText at (0,0) size 31x13 … … 78 78 RenderBlock {DIV} at (1,1) size 66x22 [border: (2px solid #0000FF)] 79 79 RenderInline {FONT} at (0,0) size 62x13 80 RenderMenuList {SELECT} at (2,2) size 62x18 80 RenderMenuList {SELECT} at (2,2) size 62x18 [bgcolor=#FFFFFF] 81 81 RenderBlock (anonymous) at (8,2) size 31x13 82 82 RenderText at (0,0) size 31x13 … … 118 118 RenderText {#text} at (99,0) size 6x28 119 119 text run at (99,0) width 6: " " 120 RenderMenuList {SELECT} at (107,9) size 62x18 120 RenderMenuList {SELECT} at (107,9) size 62x18 [bgcolor=#FFFFFF] 121 121 RenderBlock (anonymous) at (8,2) size 31x13 122 122 RenderText at (0,0) size 31x13 … … 138 138 RenderText {#text} at (83,1) size 4x18 139 139 text run at (83,1) width 4: " " 140 RenderMenuList {SELECT} at (89,2) size 62x18 140 RenderMenuList {SELECT} at (89,2) size 62x18 [bgcolor=#FFFFFF] 141 141 RenderBlock (anonymous) at (8,2) size 31x13 142 142 RenderText at (0,0) size 31x13 … … 159 159 RenderText {#text} at (74,5) size 3x13 160 160 text run at (74,5) width 3: " " 161 RenderMenuList {SELECT} at (79,2) size 62x18 161 RenderMenuList {SELECT} at (79,2) size 62x18 [bgcolor=#FFFFFF] 162 162 RenderBlock (anonymous) at (8,2) size 31x13 163 163 RenderText at (0,0) size 31x13 … … 187 187 RenderInline {FONT} at (0,0) size 181x28 188 188 RenderText {#text} at (0,0) size 0x0 189 RenderMenuList {SELECT} at (2,9) size 36x18 189 RenderMenuList {SELECT} at (2,9) size 36x18 [bgcolor=#FFFFFF] 190 190 RenderText {#text} at (40,0) size 6x28 191 191 text run at (40,0) width 6: " " 192 RenderMenuList {SELECT} at (48,9) size 36x18 192 RenderMenuList {SELECT} at (48,9) size 36x18 [bgcolor=#FFFFFF] 193 193 RenderBlock (anonymous) at (8,2) size 5x13 194 194 RenderText at (0,0) size 5x13 … … 196 196 RenderText {#text} at (86,0) size 6x28 197 197 text run at (86,0) width 6: " " 198 RenderMenuList {SELECT} at (94,9) size 85x18 198 RenderMenuList {SELECT} at (94,9) size 85x18 [bgcolor=#FFFFFF] 199 199 RenderBlock (anonymous) at (8,2) size 54x13 200 200 RenderText at (0,0) size 54x13 … … 202 202 RenderText {#text} at (0,0) size 0x0 203 203 RenderBlock {DIV} at (0,567) size 769x22 204 RenderMenuList {SELECT} at (2,2) size 36x18 204 RenderMenuList {SELECT} at (2,2) size 36x18 [bgcolor=#FFFFFF] 205 205 RenderText {#text} at (40,1) size 4x18 206 206 text run at (40,1) width 4: " " 207 RenderMenuList {SELECT} at (46,2) size 36x18 207 RenderMenuList {SELECT} at (46,2) size 36x18 [bgcolor=#FFFFFF] 208 208 RenderBlock (anonymous) at (8,2) size 5x13 209 209 RenderText at (0,0) size 5x13 … … 211 211 RenderText {#text} at (84,1) size 4x18 212 212 text run at (84,1) width 4: " " 213 RenderMenuList {SELECT} at (90,2) size 85x18 213 RenderMenuList {SELECT} at (90,2) size 85x18 [bgcolor=#FFFFFF] 214 214 RenderBlock (anonymous) at (8,2) size 54x13 215 215 RenderText at (0,0) size 54x13 … … 219 219 RenderInline {FONT} at (0,0) size 175x13 220 220 RenderText {#text} at (0,0) size 0x0 221 RenderMenuList {SELECT} at (2,2) size 36x18 221 RenderMenuList {SELECT} at (2,2) size 36x18 [bgcolor=#FFFFFF] 222 222 RenderText {#text} at (40,5) size 3x13 223 223 text run at (40,5) width 3: " " 224 RenderMenuList {SELECT} at (45,2) size 36x18 224 RenderMenuList {SELECT} at (45,2) size 36x18 [bgcolor=#FFFFFF] 225 225 RenderBlock (anonymous) at (8,2) size 5x13 226 226 RenderText at (0,0) size 5x13 … … 228 228 RenderText {#text} at (83,5) size 3x13 229 229 text run at (83,5) width 3: " " 230 RenderMenuList {SELECT} at (88,2) size 85x18 230 RenderMenuList {SELECT} at (88,2) size 85x18 [bgcolor=#FFFFFF] 231 231 RenderBlock (anonymous) at (8,2) size 54x13 232 232 RenderText at (0,0) size 54x13 -
trunk/LayoutTests/fast/forms/option-script-expected.txt
r15290 r16044 12 12 text run at (109,18) width 316: "If the popup menu says \"document.write('Text')\". " 13 13 RenderBR {BR} at (425,32) size 0x0 14 RenderMenuList {SELECT} at (2,38) size 55x18 14 RenderMenuList {SELECT} at (2,38) size 55x18 [bgcolor=#FFFFFF] 15 15 RenderBlock (anonymous) at (8,2) size 24x13 16 16 RenderText at (0,0) size 24x13 -
trunk/LayoutTests/fast/forms/option-text-clip-expected.txt
r15377 r16044 7 7 text run at (0,0) width 702: "This tests that the option text is clipped properly, and doesn't spill over into the arrow part of the popup control. " 8 8 RenderBR {BR} at (702,14) size 0x0 9 RenderMenuList {SELECT} at (0,20) size 150x18 9 RenderMenuList {SELECT} at (0,20) size 150x18 [bgcolor=#FFFFFF] 10 10 RenderBlock (anonymous) at (8,2) size 119x13 11 11 RenderText at (0,0) size 130x13 -
trunk/LayoutTests/fast/forms/select-change-listbox-to-popup-expected.txt
r15359 r16044 7 7 text run at (0,0) width 441: "This tests that you can dynamically change a list box to a popup menu" 8 8 RenderBR {BR} at (441,14) size 0x0 9 RenderMenuList {SELECT} at (2,20) size 225x18 9 RenderMenuList {SELECT} at (2,20) size 225x18 [bgcolor=#FFFFFF] 10 10 RenderBlock (anonymous) at (8,2) size 194x13 11 11 RenderText at (0,0) size 195x13 -
trunk/LayoutTests/fast/forms/select-selected-expected.txt
r15453 r16044 4 4 RenderBlock {HTML} at (0,0) size 800x600 5 5 RenderBody {BODY} at (8,8) size 784x584 6 RenderMenuList {SELECT} at (2,2) size 262x18 6 RenderMenuList {SELECT} at (2,2) size 262x18 [bgcolor=#FFFFFF] 7 7 RenderBlock (anonymous) at (8,2) size 231x13 8 8 RenderText at (0,0) size 166x13 -
trunk/LayoutTests/fast/forms/select-style-expected.txt
r15316 r16044 8 8 text run at (250,0) width 308: "(Aqua for now- later, we will honor the styling). " 9 9 RenderBR {BR} at (0,0) size 0x0 10 RenderMenuList {SELECT} at (2,20) size 51x18 [bgcolor=#FF0000] 11 RenderBlock (anonymous) at ( 8,2) size 20x1310 RenderMenuList {SELECT} at (2,20) size 51x18 [bgcolor=#FF0000] [border: (1px solid #000000)] 11 RenderBlock (anonymous) at (9,2) size 20x13 12 12 RenderText at (0,0) size 20x13 13 13 text run at (0,0) width 20: "test" -
trunk/LayoutTests/fast/forms/select-visual-hebrew-expected.txt
r15600 r16044 13 13 text run at (348,0) width 43 LTR override: "\x{5E8}\x{5D5}\x{5EA}\x{5E4}\x{5DB}" 14 14 RenderBlock (anonymous) at (0,86) size 784x22 15 RenderMenuList {SELECT} at (2,2) size 61x18 15 RenderMenuList {SELECT} at (2,2) size 61x18 [bgcolor=#FFFFFF] 16 16 RenderBlock (anonymous) at (8,2) size 30x13 17 17 RenderText at (0,0) size 30x13 -
trunk/LayoutTests/fast/invalid/014-expected.txt
r15290 r16044 10 10 RenderText {#text} at (0,0) size 0x0 11 11 RenderBlock {FORM} at (0,18) size 784x22 12 RenderMenuList {SELECT} at (2,2) size 39x18 12 RenderMenuList {SELECT} at (2,2) size 39x18 [bgcolor=#FFFFFF] 13 13 RenderBlock (anonymous) at (8,2) size 8x13 14 14 RenderText at (0,0) size 8x13 … … 19 19 RenderBlock (positioned) {H2} at (470,45) size 47x50 [border: (2px solid #008000)] 20 20 RenderBlock {FORM} at (2,2) size 43x22 21 RenderMenuList {SELECT} at (2,2) size 39x18 21 RenderMenuList {SELECT} at (2,2) size 39x18 [bgcolor=#FFFFFF] 22 22 RenderBlock (anonymous) at (8,2) size 8x13 23 23 RenderText at (0,0) size 8x13 -
trunk/LayoutTests/fast/parser/document-write-option-expected.txt
r15290 r16044 4 4 RenderBlock {HTML} at (0,0) size 800x600 5 5 RenderBody {BODY} at (8,8) size 784x584 6 RenderMenuList {SELECT} at (2,2) size 324x18 6 RenderMenuList {SELECT} at (2,2) size 324x18 [bgcolor=#FFFFFF] 7 7 RenderBlock (anonymous) at (8,2) size 293x13 8 8 RenderText at (0,0) size 294x13 -
trunk/LayoutTests/fast/replaced/width100percent-expected.txt
r15290 r16044 168 168 RenderTableRow {TR} at (0,1) size 769x24 169 169 RenderTableCell {TD} at (1,1) size 53x24 [r=0 c=0 rs=1 cs=1] 170 RenderMenuList {SELECT} at (1,3) size 51x18 170 RenderMenuList {SELECT} at (1,3) size 51x18 [bgcolor=#FFFFFF] 171 171 RenderBlock (anonymous) at (8,2) size 20x13 172 172 RenderText at (0,0) size 20x13 173 173 text run at (0,0) width 20: "one" 174 174 RenderTableCell {TD} at (55,1) size 33x24 [r=0 c=1 rs=1 cs=1] 175 RenderMenuList {SELECT} at (1,3) size 31x18 175 RenderMenuList {SELECT} at (1,3) size 31x18 [bgcolor=#FFFFFF] 176 176 RenderBlock (anonymous) at (8,2) size 0x13 177 177 RenderText at (0,0) size 20x13 178 178 text run at (0,0) width 20: "two" 179 179 RenderTableCell {TD} at (89,1) size 33x24 [r=0 c=2 rs=1 cs=1] 180 RenderMenuList {SELECT} at (1,3) size 31x18 180 RenderMenuList {SELECT} at (1,3) size 31x18 [bgcolor=#FFFFFF] 181 181 RenderBlock (anonymous) at (8,2) size 0x13 182 182 RenderText at (0,0) size 28x13 -
trunk/LayoutTests/http/tests/navigation/anchor-basic-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/anchor-frames-expected.txt
r15970 r16044 57 57 text run at (18,229) width 130: " option #2" 58 58 RenderBR {BR} at (148,258) size 0x0 59 RenderMenuList {SELECT} at (2,268) size 255x18 59 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 60 60 RenderBlock (anonymous) at (8,2) size 224x13 61 61 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/anchor-goback-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 225x13 -
trunk/LayoutTests/http/tests/navigation/anchor-subframeload-expected.txt
r15970 r16044 57 57 text run at (18,229) width 130: " option #2" 58 58 RenderBR {BR} at (148,258) size 0x0 59 RenderMenuList {SELECT} at (2,268) size 255x18 59 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 60 60 RenderBlock (anonymous) at (8,2) size 224x13 61 61 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/javascriptlink-basic-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/javascriptlink-frames-expected.txt
r15970 r16044 57 57 text run at (18,229) width 130: " option #2" 58 58 RenderBR {BR} at (148,258) size 0x0 59 RenderMenuList {SELECT} at (2,268) size 255x18 59 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 60 60 RenderBlock (anonymous) at (8,2) size 224x13 61 61 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/javascriptlink-goback-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 225x13 -
trunk/LayoutTests/http/tests/navigation/javascriptlink-subframeload-expected.txt
r15970 r16044 57 57 text run at (18,229) width 130: " option #2" 58 58 RenderBR {BR} at (148,258) size 0x0 59 RenderMenuList {SELECT} at (2,268) size 255x18 59 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 60 60 RenderBlock (anonymous) at (8,2) size 224x13 61 61 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/metaredirect-basic-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/metaredirect-frames-expected.txt
r15970 r16044 57 57 text run at (18,229) width 130: " option #2" 58 58 RenderBR {BR} at (148,258) size 0x0 59 RenderMenuList {SELECT} at (2,268) size 255x18 59 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 60 60 RenderBlock (anonymous) at (8,2) size 224x13 61 61 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/metaredirect-goback-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 225x13 -
trunk/LayoutTests/http/tests/navigation/metaredirect-subframeload-expected.txt
r15970 r16044 57 57 text run at (18,229) width 130: " option #2" 58 58 RenderBR {BR} at (148,258) size 0x0 59 RenderMenuList {SELECT} at (2,268) size 255x18 59 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 60 60 RenderBlock (anonymous) at (8,2) size 224x13 61 61 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/post-goback2-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 225x13 -
trunk/LayoutTests/http/tests/navigation/postredirect-goback2-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 225x13 -
trunk/LayoutTests/http/tests/navigation/redirect302-basic-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/redirect302-frames-expected.txt
r15970 r16044 57 57 text run at (18,229) width 130: " option #2" 58 58 RenderBR {BR} at (148,258) size 0x0 59 RenderMenuList {SELECT} at (2,268) size 255x18 59 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 60 60 RenderBlock (anonymous) at (8,2) size 224x13 61 61 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/redirect302-goback-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 225x13 -
trunk/LayoutTests/http/tests/navigation/redirect302-subframeload-expected.txt
r15970 r16044 57 57 text run at (18,229) width 130: " option #2" 58 58 RenderBR {BR} at (148,258) size 0x0 59 RenderMenuList {SELECT} at (2,268) size 255x18 59 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 60 60 RenderBlock (anonymous) at (8,2) size 224x13 61 61 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/relativeanchor-basic-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/relativeanchor-frames-expected.txt
r15970 r16044 57 57 text run at (18,229) width 130: " option #2" 58 58 RenderBR {BR} at (148,258) size 0x0 59 RenderMenuList {SELECT} at (2,268) size 255x18 59 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 60 60 RenderBlock (anonymous) at (8,2) size 224x13 61 61 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/relativeanchor-goback-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 225x13 -
trunk/LayoutTests/http/tests/navigation/slowmetaredirect-basic-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/slowtimerredirect-basic-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/success200-basic-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/success200-frames-expected.txt
r15970 r16044 57 57 text run at (18,229) width 130: " option #2" 58 58 RenderBR {BR} at (148,258) size 0x0 59 RenderMenuList {SELECT} at (2,268) size 255x18 59 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 60 60 RenderBlock (anonymous) at (8,2) size 224x13 61 61 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/success200-frames-loadsame-expected.txt
r15970 r16044 57 57 text run at (18,229) width 130: " option #2" 58 58 RenderBR {BR} at (148,258) size 0x0 59 RenderMenuList {SELECT} at (2,268) size 255x18 59 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 60 60 RenderBlock (anonymous) at (8,2) size 224x13 61 61 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/success200-goback-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 225x13 -
trunk/LayoutTests/http/tests/navigation/success200-loadsame-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/success200-reload-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/success200-subframeload-expected.txt
r15970 r16044 57 57 text run at (18,229) width 130: " option #2" 58 58 RenderBR {BR} at (148,258) size 0x0 59 RenderMenuList {SELECT} at (2,268) size 255x18 59 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 60 60 RenderBlock (anonymous) at (8,2) size 224x13 61 61 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/timerredirect-basic-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/timerredirect-frames-expected.txt
r15970 r16044 57 57 text run at (18,229) width 130: " option #2" 58 58 RenderBR {BR} at (148,258) size 0x0 59 RenderMenuList {SELECT} at (2,268) size 255x18 59 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 60 60 RenderBlock (anonymous) at (8,2) size 224x13 61 61 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/http/tests/navigation/timerredirect-goback-expected.txt
r15970 r16044 51 51 text run at (18,229) width 130: " option #2" 52 52 RenderBR {BR} at (148,258) size 0x0 53 RenderMenuList {SELECT} at (2,268) size 255x18 53 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 54 54 RenderBlock (anonymous) at (8,2) size 224x13 55 55 RenderText at (0,0) size 225x13 -
trunk/LayoutTests/http/tests/navigation/timerredirect-subframeload-expected.txt
r15970 r16044 57 57 text run at (18,229) width 130: " option #2" 58 58 RenderBR {BR} at (148,258) size 0x0 59 RenderMenuList {SELECT} at (2,268) size 255x18 59 RenderMenuList {SELECT} at (2,268) size 255x18 [bgcolor=#FFFFFF] 60 60 RenderBlock (anonymous) at (8,2) size 224x13 61 61 RenderText at (0,0) size 63x13 -
trunk/LayoutTests/tables/mozilla/bugs/bug1188-expected.txt
r15290 r16044 20 20 RenderText {#text} at (176,3) size 4x18 21 21 text run at (176,3) width 4: " " 22 RenderMenuList {SELECT} at (182,4) size 80x18 22 RenderMenuList {SELECT} at (182,4) size 80x18 [bgcolor=#FFFFFF] 23 23 RenderBlock (anonymous) at (8,2) size 49x13 24 24 RenderText at (0,0) size 49x13 -
trunk/LayoutTests/tables/mozilla/bugs/bug18359-expected.txt
r15290 r16044 29 29 text run at (1,1) width 105: "Run Test Case:" 30 30 RenderTableCell {TD} at (111,29) size 467x24 [r=1 c=1 rs=1 cs=1] 31 RenderMenuList {SELECT} at (3,3) size 262x18 31 RenderMenuList {SELECT} at (3,3) size 262x18 [bgcolor=#FFFFFF] 32 32 RenderBlock (anonymous) at (8,2) size 231x13 33 33 RenderText at (0,0) size 73x13 -
trunk/LayoutTests/tables/mozilla/bugs/bug2479-3-expected.txt
r15290 r16044 67 67 RenderText {#text} at (0,2) size 263x18 68 68 text run at (0,2) width 263: "How does your browser fare on this test? " 69 RenderMenuList {SELECT} at (265,3) size 246x18 69 RenderMenuList {SELECT} at (265,3) size 246x18 [bgcolor=#FFFFFF] 70 70 RenderBlock (anonymous) at (8,2) size 215x13 71 71 RenderText at (0,0) size 140x13 -
trunk/LayoutTests/tables/mozilla/bugs/bug2479-4-expected.txt
r15290 r16044 185 185 RenderText {#text} at (0,1) size 263x18 186 186 text run at (0,1) width 263: "How does your browser fare on this test? " 187 RenderMenuList {SELECT} at (265,2) size 473x18 187 RenderMenuList {SELECT} at (265,2) size 473x18 [bgcolor=#FFFFFF] 188 188 RenderBlock (anonymous) at (8,2) size 442x13 189 189 RenderText at (0,0) size 442x13 -
trunk/LayoutTests/tables/mozilla/bugs/bug29326-expected.txt
r15290 r16044 9 9 RenderTableCell {TD} at (2,2) size 394x42 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1] 10 10 RenderBlock {FORM} at (2,2) size 390x22 11 RenderMenuList {SELECT} at (2,2) size 54x18 11 RenderMenuList {SELECT} at (2,2) size 54x18 [bgcolor=#FFFFFF] 12 12 RenderBlock (anonymous) at (8,2) size 23x13 13 13 RenderText at (0,0) size 23x13 -
trunk/LayoutTests/tables/mozilla/bugs/bug33855-expected.txt
r15290 r16044 32 32 text run at (0,0) width 47: "Move to:" 33 33 RenderTableCell {TD} at (666,2) size 116x24 [r=0 c=5 rs=1 cs=1] 34 RenderMenuList {SELECT} at (3,3) size 110x18 34 RenderMenuList {SELECT} at (3,3) size 110x18 [bgcolor=#FFFFFF] 35 35 RenderBlock (anonymous) at (8,2) size 79x13 36 36 RenderText at (0,0) size 78x13 -
trunk/LayoutTests/tables/mozilla/bugs/bug4382-expected.txt
r15290 r16044 17 17 RenderText {#text} at (189,2) size 4x18 18 18 text run at (189,2) width 4: " " 19 RenderMenuList {SELECT} at (195,3) size 77x18 19 RenderMenuList {SELECT} at (195,3) size 77x18 [bgcolor=#FFFFFF] 20 20 RenderBlock (anonymous) at (8,2) size 46x13 21 21 RenderText at (0,0) size 32x13 … … 28 28 RenderBR {BR} at (264,32) size 0x0 29 29 RenderBlock {FORM} at (0,93) size 784x22 30 RenderMenuList {SELECT} at (2,2) size 230x18 30 RenderMenuList {SELECT} at (2,2) size 230x18 [bgcolor=#FFFFFF] 31 31 RenderBlock (anonymous) at (8,2) size 199x13 32 32 RenderText at (0,0) size 57x13 -
trunk/LayoutTests/tables/mozilla/bugs/bug96334-expected.txt
r15290 r16044 32 32 RenderTableRow {TR} at (0,2) size 187x26 33 33 RenderTableCell {TD} at (2,2) size 183x26 [border: (1px solid #C0C0C0)] [r=0 c=0 rs=1 cs=1] 34 RenderMenuList {SELECT} at (4,4) size 175x18 34 RenderMenuList {SELECT} at (4,4) size 175x18 [bgcolor=#FFFFFF] 35 35 RenderBlock (anonymous) at (8,2) size 144x13 36 36 RenderText at (0,0) size 144x13 -
trunk/LayoutTests/tables/mozilla/core/margins-expected.txt
r15290 r16044 12 12 RenderTableCell {TD} at (2,2) size 394x42 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1] 13 13 RenderBlock {FORM} at (2,2) size 390x22 14 RenderMenuList {SELECT} at (2,2) size 54x18 14 RenderMenuList {SELECT} at (2,2) size 54x18 [bgcolor=#FFFFFF] 15 15 RenderBlock (anonymous) at (8,2) size 23x13 16 16 RenderText at (0,0) size 23x13 -
trunk/LayoutTests/tables/mozilla/dom/tableDom-expected.txt
r15290 r16044 5 5 RenderBody {BODY} at (8,8) size 784x584 6 6 RenderBlock {FORM} at (0,0) size 784x23 7 RenderMenuList {SELECT} at (2,3) size 95x18 7 RenderMenuList {SELECT} at (2,3) size 95x18 [bgcolor=#FFFFFF] 8 8 RenderBlock (anonymous) at (8,2) size 64x13 9 9 RenderText at (0,0) size 62x13 -
trunk/LayoutTests/tables/mozilla_expected_failures/bugs/bug2479-5-expected.txt
r15301 r16044 135 135 RenderText {#text} at (0,0) size 259x18 136 136 text run at (0,0) width 259: "How does your browser fare on this test?" 137 RenderMenuList {SELECT} at (2,20) size 454x18 [color=#000000] 137 RenderMenuList {SELECT} at (2,20) size 454x18 [color=#000000] [bgcolor=#FFFFFF] 138 138 RenderBlock (anonymous) at (8,2) size 423x13 139 139 RenderText at (0,0) size 214x13 -
trunk/WebCore/ChangeLog
r16043 r16044 1 2006-08-25 Adele Peterson <adele@apple.com> 2 3 Reviewed by Hyatt. 4 5 Enable styling for popup menus. Also fixed baseline calculation for buttons and selects. 6 7 Tests: fast/forms/select-baseline.html 8 fast/borders/borderRadiusInvalidColor.html 9 updated: fast/forms/select-style-expected.txt and more... 10 11 * css/html4.css: Added style rules for styled select elements. 12 13 * platform/GraphicsContext.h: Added argument for antialiasing. 14 * platform/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::drawConvexPolygon): ditto. 15 * platform/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::drawConvexPolygon): ditto. 16 17 * rendering/RenderObject.cpp: 18 (WebCore::RenderObject::drawBorderArc): Added textColor argument so this can be used when the border color is invalid. 19 (WebCore::RenderObject::drawBorder): Removed invalidisInvert since its dead code 20 (any callers that set this to true were already ensuring that their color was valid). 21 Updated drawConvexPolygon call to use FloatPoints instead of IntPoints. 22 (WebCore::RenderObject::paintBorder): Updated to remove invalidisInvert argument from drawBorder call. 23 (WebCore::RenderObject::paintOutline): ditto. 24 * rendering/RenderFlow.cpp: (WebCore::RenderFlow::paintOutlineForLine): ditto. 25 * rendering/RenderObject.h: Updated arguments for drawBorder and drawBorderArc. 26 27 * rendering/RenderBlock.cpp: (WebCore::RenderBlock::getBaselineOfLastLineBox): Changed isRootLineBox argument to true when setting line height. 28 Added case for when there's no children to check for hasLineIfEmpty. 29 * rendering/RenderBlock.h: 30 * rendering/bidi.cpp: (WebCore::RenderBlock::layoutInlineChildren): Changed isRootLineBox argument to true when setting line height. 31 * rendering/RenderButton.h: (WebCore::RenderButton::hasLineIfEmpty): Added so buttons always get a line height. 32 * rendering/RenderMenuList.h: (WebCore::RenderMenuList::hasLineIfEmpty): ditto. 33 * rendering/RenderFlexibleBox.cpp: 34 (WebCore::RenderFlexibleBox::layoutHorizontalBox): Added code to check hasLineIfEmpty to give flex boxes line height. 35 (WebCore::RenderFlexibleBox::layoutVerticalBox): ditto. 36 37 * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::adjustRenderStyle): Moved the appearance adjustment code into adjust style. 38 * rendering/RenderBox.cpp: (WebCore::RenderBox::paintBoxDecorations): Lets the theme paint "decorations", like the arrow control and gradients 39 immediately after painting the background. 40 41 * rendering/RenderTheme.cpp: 42 (WebCore::RenderTheme::adjustStyle): This now checks whether the control is styled, and adjusts the appearance property appropriately. 43 For styled selects, instead of setting the appearance to none, which is what we do for other styled controls, we set the appearance 44 to MenulistButtonAppearance, which indicates that we will draw the arrow controls and button appearance in the engine. 45 (WebCore::RenderTheme::paintDecorations): Added. Paints MenulistButtonAppearance in a different function, 46 so the arrow control will draw at the right time (after the background). 47 (WebCore::RenderTheme::paint): Added case for MenulistButtonAppearance. 48 (WebCore::RenderTheme::paintBorderOnly): ditto. 49 (WebCore::RenderTheme::isControlContainer): Removed cases for MenuListAppearance and MenulistButtonAppearance since the baseline is no longer provided by the theme. 50 (WebCore::RenderTheme::adjustMenuListButtonStyle): Added. 51 * rendering/RenderTheme.h: (WebCore::RenderTheme::paintMenuListButton): Added. 52 53 * rendering/RenderThemeMac.h: 54 * rendering/RenderThemeMac.mm: 55 (WebCore::RenderThemeMac::isControlStyled): Removed code that made selects unstyle-able. 56 (WebCore::RenderThemeMac::baselinePosition): Removed cases for MenuListAppearance and MenulistButtonAppearance. 57 (WebCore::RenderThemeMac::popupButtonPadding): Added top and bottom padding so empty popups have the right baseline. 58 (WebCore::TopGradientInterpolate): Added. 59 (WebCore::BottomGradientInterpolate): Added. 60 (WebCore::MainGradientInterpolate): Added. 61 (WebCore::RenderThemeMac::paintMenuListButtonGradients): Added. Draws gradients for styled popup menu button appearance. 62 (WebCore::RenderThemeMac::paintMenuListButton): Calls paintMenuListButtonGradients, and draws arrow control. 63 (WebCore::RenderThemeMac::adjustMenuListButtonStyle): Added to set padding and border radius to account for the arrow control size and font size. 64 1 65 2006-08-25 Brady Eidson <beidson@apple.com> 2 66 -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r16026 r16044 6463 6463 isa = PBXProject; 6464 6464 buildConfigurationList = 149C284308902B11008A9EFC /* Build configuration list for PBXProject "WebCore" */; 6465 compatibilityVersion = "Xcode 2.4";6466 6465 hasScannedForEncodings = 1; 6467 6466 knownRegions = ( … … 6477 6476 productRefGroup = 034768DFFF38A50411DB9C8B /* Products */; 6478 6477 projectDirPath = ""; 6479 projectRoot = "";6480 shouldCheckCompatibility = 1;6481 6478 targets = ( 6482 6479 93F198A508245E59001E9ABC /* WebCore */, -
trunk/WebCore/css/cssstyleselector.cpp
r16028 r16044 1080 1080 1081 1081 // Let the theme also have a crack at adjusting the style. 1082 if (style->hasAppearance()) { 1083 if (m_hasUAAppearance && theme()->isControlStyled(style, m_borderData, m_backgroundData, m_backgroundColor)) 1084 style->setAppearance(NoAppearance); 1085 else 1086 theme()->adjustStyle(this, style, e); 1087 } 1082 if (style->hasAppearance()) 1083 theme()->adjustStyle(this, style, e, m_hasUAAppearance, m_borderData, m_backgroundData, m_backgroundColor); 1088 1084 1089 1085 #ifdef SVG_SUPPORT -
trunk/WebCore/css/html4.css
r15888 r16044 368 368 } 369 369 370 input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled, button:disabled {370 input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled, button:disabled, select:disabled { 371 371 color: GrayText 372 372 } … … 403 403 -webkit-box-align: center; 404 404 -webkit-rtl-ordering: logical; 405 color: black; 406 border: 1px solid; 407 -webkit-border-radius: 5px; 408 background-color: white; 409 white-space: pre; 405 410 } 406 411 … … 408 413 select[multiple], 409 414 select[size][multiple] { 415 // FIXME: When converting the list box implementation, remove these. 410 416 -webkit-appearance: none; 411 417 -webkit-box-align: initial; 412 418 box-sizing: initial; 419 color: initial; 420 border: initial; 421 background-color: initial; 413 422 } 414 423 … … 418 427 box-sizing: border-box; 419 428 -webkit-box-align: center; 429 color: black; 430 border: 1px solid; 431 -webkit-border-radius: 5px; 432 background-color: white; 420 433 } 421 434 -
trunk/WebCore/platform/GraphicsContext.h
r15999 r16044 94 94 void drawEllipse(const IntRect&); 95 95 void drawArc(const IntRect&, float thickness, int startAngle, int angleSpan); 96 void drawConvexPolygon(size_t numPoints, const IntPoint*);96 void drawConvexPolygon(size_t numPoints, const FloatPoint*, bool shouldAntialias = false); 97 97 98 98 void fillRect(const IntRect&, const Color&); -
trunk/WebCore/platform/cairo/GraphicsContextCairo.cpp
r15999 r16044 318 318 } 319 319 320 void GraphicsContext::drawConvexPolygon(size_t npoints, const IntPoint* points )320 void GraphicsContext::drawConvexPolygon(size_t npoints, const IntPoint* points, bool shouldAntialias) 321 321 { 322 322 if (paintingDisabled()) … … 329 329 330 330 cairo_save(context); 331 cairo_set_antialias(context, CAIRO_ANTIALIAS_NONE);331 cairo_set_antialias(context, shouldAntialias ? CAIRO_ANTIALIAS_DEFAULT : CAIRO_ANTIALIAS_NONE); 332 332 cairo_move_to(context, points[0].x(), points[0].y()); 333 333 for (size_t i = 1; i < npoints; i++) -
trunk/WebCore/platform/cg/GraphicsContextCG.cpp
r15999 r16044 387 387 } 388 388 389 void GraphicsContext::drawConvexPolygon(size_t npoints, const IntPoint* points)389 void GraphicsContext::drawConvexPolygon(size_t npoints, const FloatPoint* points, bool shouldAntialias) 390 390 { 391 391 if (paintingDisabled()) … … 399 399 CGContextSaveGState(context); 400 400 401 CGContextSetShouldAntialias(context, false);401 CGContextSetShouldAntialias(context, shouldAntialias); 402 402 403 403 CGContextBeginPath(context); -
trunk/WebCore/rendering/RenderBlock.cpp
r15807 r16044 3332 3332 if (childrenInline()) { 3333 3333 if (!firstLineBox() && hasLineIfEmpty()) 3334 return RenderFlow::baselinePosition(true ) + borderTop() + paddingTop();3334 return RenderFlow::baselinePosition(true, true) + borderTop() + paddingTop(); 3335 3335 if (m_lastLineBox) 3336 3336 return m_lastLineBox->yPos() + m_lastLineBox->baseline(); … … 3338 3338 } 3339 3339 else { 3340 bool haveNormalFlowChild = false; 3340 3341 for (RenderObject* curr = lastChild(); curr; curr = curr->previousSibling()) { 3341 3342 if (!curr->isFloatingOrPositioned()) { 3343 haveNormalFlowChild = true; 3342 3344 int result = curr->getBaselineOfLastLineBox(); 3343 3345 if (result != -1) … … 3345 3347 } 3346 3348 } 3349 if (!haveNormalFlowChild && hasLineIfEmpty()) 3350 return RenderFlow::baselinePosition(true, true) + borderTop() + paddingTop(); 3347 3351 } 3348 3352 -
trunk/WebCore/rendering/RenderBlock.h
r15781 r16044 279 279 protected: 280 280 void newLine(); 281 virtual bool hasLineIfEmpty() const; 281 282 282 283 private: 283 284 Position positionForBox(InlineBox *box, bool start=true) const; 284 285 Position positionForRenderer(RenderObject *renderer, bool start=true) const; 285 286 bool hasLineIfEmpty() const; 287 286 288 287 protected: 289 288 struct FloatingObject { -
trunk/WebCore/rendering/RenderBox.cpp
r16027 r16044 369 369 if (!isBody() || !document()->isHTMLDocument() || document()->documentElement()->renderer()->style()->hasBackground()) 370 370 paintBackgrounds(i.p, style()->backgroundColor(), style()->backgroundLayers(), my, mh, _tx, _ty, w, h); 371 if (style()->hasAppearance()) 372 theme()->paintDecorations(this, i, IntRect(_tx, _ty, w, h)); 371 373 } 372 374 -
trunk/WebCore/rendering/RenderButton.h
r15079 r16044 51 51 52 52 protected: 53 virtual bool hasLineIfEmpty() const { return true; } 54 53 55 RenderText* m_buttonText; 54 56 RenderBlock* m_inner; -
trunk/WebCore/rendering/RenderFlexibleBox.cpp
r15582 r16044 285 285 else 286 286 layoutVerticalBox(relayoutChildren); 287 287 288 288 int oldHeight = m_height; 289 289 calcHeight(); … … 419 419 child = iterator.next(); 420 420 } 421 422 if (!iterator.first() && hasLineIfEmpty()) 423 m_height += lineHeight(true, true); 424 421 425 m_height += toAdd; 422 426 … … 874 878 875 879 yPos = m_height; 880 881 if (!iterator.first() && hasLineIfEmpty()) 882 m_height += lineHeight(true, true); 883 876 884 m_height += toAdd; 877 885 … … 1044 1052 // a height change, we revert our height back to the intrinsic height before returning. 1045 1053 if (heightSpecified) 1046 m_height = oldHeight; 1054 m_height = oldHeight; 1047 1055 } 1048 1056 -
trunk/WebCore/rendering/RenderFlow.cpp
r15286 r16044 743 743 oc, style()->color(), os, 744 744 (lastline.isEmpty() || thisline.x() < lastline.x() || (lastline.right() - 1) <= thisline.x() ? ow : -ow), 745 (nextline.isEmpty() || thisline.x() <= nextline.x() || (nextline.right() - 1) <= thisline.x() ? ow : -ow), 746 true); 745 (nextline.isEmpty() || thisline.x() <= nextline.x() || (nextline.right() - 1) <= thisline.x() ? ow : -ow)); 747 746 748 747 // right edge … … 755 754 oc, style()->color(), os, 756 755 (lastline.isEmpty() || lastline.right() < thisline.right() || (thisline.right() - 1) <= lastline.x() ? ow : -ow), 757 (nextline.isEmpty() || nextline.right() <= thisline.right() || (thisline.right() - 1) <= nextline.x() ? ow : -ow), 758 true); 756 (nextline.isEmpty() || nextline.right() <= thisline.right() || (thisline.right() - 1) <= nextline.x() ? ow : -ow)); 759 757 // upper edge 760 758 if (thisline.x() < lastline.x()) … … 766 764 BSTop, oc, style()->color(), os, 767 765 ow, 768 (!lastline.isEmpty() && tx + lastline.x() + 1 < r + ow) ? -ow : ow, 769 true); 766 (!lastline.isEmpty() && tx + lastline.x() + 1 < r + ow) ? -ow : ow); 770 767 771 768 if (lastline.right() < thisline.right()) … … 777 774 BSTop, oc, style()->color(), os, 778 775 (!lastline.isEmpty() && l - ow < tx + lastline.right()) ? -ow : ow, 779 ow, 780 true); 776 ow); 781 777 782 778 // lower edge … … 789 785 BSBottom, oc, style()->color(), os, 790 786 ow, 791 (!nextline.isEmpty() && tx + nextline.x() + 1 < r + ow) ? -ow : ow, 792 true); 787 (!nextline.isEmpty() && tx + nextline.x() + 1 < r + ow) ? -ow : ow); 793 788 794 789 if (nextline.right() < thisline.right()) … … 800 795 BSBottom, oc, style()->color(), os, 801 796 (!nextline.isEmpty() && l - ow < tx + nextline.right()) ? -ow : ow, 802 ow, 803 true); 804 } 805 806 } 797 ow); 798 } 799 800 } -
trunk/WebCore/rendering/RenderMenuList.h
r15991 r16044 62 62 String text(); 63 63 64 protected: 65 virtual bool hasLineIfEmpty() const { return true; } 66 64 67 private: 65 68 void createInnerBlock(); -
trunk/WebCore/rendering/RenderObject.cpp
r16028 r16044 812 812 813 813 void RenderObject::drawBorderArc(GraphicsContext* p, int x, int y, float thickness, IntSize radius, int angleStart, 814 int angleSpan, BorderSide s, Color c, EBorderStyle style, bool firstCorner)814 int angleSpan, BorderSide s, Color c, const Color& textColor, EBorderStyle style, bool firstCorner) 815 815 { 816 816 if ((style == DOUBLE && ((thickness / 2) < 3)) || 817 817 ((style == RIDGE || style == GROOVE) && ((thickness / 2) < 2))) 818 818 style = SOLID; 819 820 if (!c.isValid()) { 821 if (style == INSET || style == OUTSET || style == RIDGE || style == GROOVE) 822 c.setRGB(238, 238, 238); 823 else 824 c = textColor; 825 } 819 826 820 827 switch (style) { … … 897 904 void RenderObject::drawBorder(GraphicsContext* p, int x1, int y1, int x2, int y2, 898 905 BorderSide s, Color c, const Color& textcolor, EBorderStyle style, 899 int adjbw1, int adjbw2 , bool invalidisInvert)906 int adjbw1, int adjbw2) 900 907 { 901 908 int width = (s == BSTop || s == BSBottom ? y2 - y1 : x2 - x1); … … 905 912 906 913 if (!c.isValid()) { 907 if (invalidisInvert) 908 // FIXME: The original KHTML did XOR here -- what do we want to do instead? 909 c = Color::white; 910 else { 911 if (style == INSET || style == OUTSET || style == RIDGE || style == GROOVE) 912 c.setRGB(238, 238, 238); 913 else 914 c = textcolor; 915 } 914 if (style == INSET || style == OUTSET || style == RIDGE || style == GROOVE) 915 c.setRGB(238, 238, 238); 916 else 917 c = textcolor; 916 918 } 917 919 … … 1073 1075 return; 1074 1076 } 1075 IntPoint quad[4];1077 FloatPoint quad[4]; 1076 1078 switch (s) { 1077 1079 case BSTop: 1078 quad[0] = IntPoint(x1 + max(-adjbw1, 0), y1);1079 quad[1] = IntPoint(x1 + max( adjbw1, 0), y2);1080 quad[2] = IntPoint(x2 - max( adjbw2, 0), y2);1081 quad[3] = IntPoint(x2 - max(-adjbw2, 0), y1);1080 quad[0] = FloatPoint(x1 + max(-adjbw1, 0), y1); 1081 quad[1] = FloatPoint(x1 + max( adjbw1, 0), y2); 1082 quad[2] = FloatPoint(x2 - max( adjbw2, 0), y2); 1083 quad[3] = FloatPoint(x2 - max(-adjbw2, 0), y1); 1082 1084 break; 1083 1085 case BSBottom: 1084 quad[0] = IntPoint(x1 + max( adjbw1, 0), y1);1085 quad[1] = IntPoint(x1 + max(-adjbw1, 0), y2);1086 quad[2] = IntPoint(x2 - max(-adjbw2, 0), y2);1087 quad[3] = IntPoint(x2 - max( adjbw2, 0), y1);1086 quad[0] = FloatPoint(x1 + max( adjbw1, 0), y1); 1087 quad[1] = FloatPoint(x1 + max(-adjbw1, 0), y2); 1088 quad[2] = FloatPoint(x2 - max(-adjbw2, 0), y2); 1089 quad[3] = FloatPoint(x2 - max( adjbw2, 0), y1); 1088 1090 break; 1089 1091 case BSLeft: 1090 quad[0] = IntPoint(x1, y1 + max(-adjbw1, 0));1091 quad[1] = IntPoint(x1, y2 - max(-adjbw2, 0));1092 quad[2] = IntPoint(x2, y2 - max( adjbw2, 0));1093 quad[3] = IntPoint(x2, y1 + max( adjbw1, 0));1092 quad[0] = FloatPoint(x1, y1 + max(-adjbw1, 0)); 1093 quad[1] = FloatPoint(x1, y2 - max(-adjbw2, 0)); 1094 quad[2] = FloatPoint(x2, y2 - max( adjbw2, 0)); 1095 quad[3] = FloatPoint(x2, y1 + max( adjbw1, 0)); 1094 1096 break; 1095 1097 case BSRight: 1096 quad[0] = IntPoint(x1, y1 + max( adjbw1, 0));1097 quad[1] = IntPoint(x1, y2 - max( adjbw2, 0));1098 quad[2] = IntPoint(x2, y2 - max(-adjbw2, 0));1099 quad[3] = IntPoint(x2, y1 + max(-adjbw1, 0));1098 quad[0] = FloatPoint(x1, y1 + max( adjbw1, 0)); 1099 quad[1] = FloatPoint(x1, y2 - max( adjbw2, 0)); 1100 quad[2] = FloatPoint(x2, y2 - max(-adjbw2, 0)); 1101 quad[3] = FloatPoint(x2, y1 + max(-adjbw1, 0)); 1100 1102 break; 1101 1103 } … … 1324 1326 // Draw upper left arc 1325 1327 drawBorderArc(p, leftX, leftY, thickness, topLeft, firstAngleStart, firstAngleSpan, 1326 BSTop, tc, ts, true);1328 BSTop, tc, style->color(), ts, true); 1327 1329 if (applyLeftInnerClip) 1328 1330 p->restore(); … … 1339 1341 // Draw upper right arc 1340 1342 drawBorderArc(p, rightX, leftY, thickness, topRight, secondAngleStart, secondAngleSpan, 1341 BSTop, tc, ts, false);1343 BSTop, tc, style->color(), ts, false); 1342 1344 if (applyRightInnerClip) 1343 1345 p->restore(); … … 1394 1396 // Draw lower left arc 1395 1397 drawBorderArc(p, leftX, leftY, thickness, bottomLeft, firstAngleStart, firstAngleSpan, 1396 BSBottom, bc, bs, true);1398 BSBottom, bc, style->color(), bs, true); 1397 1399 if (applyLeftInnerClip) 1398 1400 p->restore(); … … 1409 1411 // Draw lower right arc 1410 1412 drawBorderArc(p, rightX, leftY, thickness, bottomRight, secondAngleStart, secondAngleSpan, 1411 BSBottom, bc, bs, false);1413 BSBottom, bc, style->color(), bs, false); 1412 1414 if (applyRightInnerClip) 1413 1415 p->restore(); … … 1457 1459 // Draw top left arc 1458 1460 drawBorderArc(p, topX, topY, thickness, topLeft, firstAngleStart, firstAngleSpan, 1459 BSLeft, lc, ls, true);1461 BSLeft, lc, style->color(), ls, true); 1460 1462 if (applyTopInnerClip) 1461 1463 p->restore(); … … 1472 1474 // Draw bottom left arc 1473 1475 drawBorderArc(p, topX, bottomY, thickness, bottomLeft, secondAngleStart, secondAngleSpan, 1474 BSLeft, lc, ls, false);1476 BSLeft, lc, style->color(), ls, false); 1475 1477 if (applyBottomInnerClip) 1476 1478 p->restore(); … … 1520 1522 // Draw top right arc 1521 1523 drawBorderArc(p, topX, topY, thickness, topRight, firstAngleStart, firstAngleSpan, 1522 BSRight, rc, rs, true);1524 BSRight, rc, style->color(), rs, true); 1523 1525 if (applyTopInnerClip) 1524 1526 p->restore(); … … 1535 1537 // Draw bottom right arc 1536 1538 drawBorderArc(p, topX, bottomY, thickness, bottomRight, secondAngleStart, secondAngleSpan, 1537 BSRight, rc, rs, false);1539 BSRight, rc, style->color(), rs, false); 1538 1540 if (applyBottomInnerClip) 1539 1541 p->restore(); … … 1648 1650 drawBorder(p, _tx-ow, _ty-ow, _tx, _ty+h+ow, BSLeft, 1649 1651 Color(oc), style->color(), 1650 os, ow, ow , true);1652 os, ow, ow); 1651 1653 1652 1654 drawBorder(p, _tx-ow, _ty-ow, _tx+w+ow, _ty, BSTop, 1653 1655 Color(oc), style->color(), 1654 os, ow, ow , true);1656 os, ow, ow); 1655 1657 1656 1658 drawBorder(p, _tx+w, _ty-ow, _tx+w+ow, _ty+h+ow, BSRight, 1657 1659 Color(oc), style->color(), 1658 os, ow, ow , true);1660 os, ow, ow); 1659 1661 1660 1662 drawBorder(p, _tx-ow, _ty+h, _tx+w+ow, _ty+h+ow, BSBottom, 1661 1663 Color(oc), style->color(), 1662 os, ow, ow , true);1664 os, ow, ow); 1663 1665 1664 1666 } -
trunk/WebCore/rendering/RenderObject.h
r15930 r16044 703 703 }; 704 704 void drawBorderArc(GraphicsContext*, int x, int y, float thickness, IntSize radius, int angleStart, 705 int angleSpan, BorderSide, Color, EBorderStyle, bool firstCorner);705 int angleSpan, BorderSide, Color, const Color& textcolor, EBorderStyle, bool firstCorner); 706 706 void drawBorder(GraphicsContext*, int x1, int y1, int x2, int y2, BorderSide, 707 Color, const Color& textcolor, EBorderStyle, int adjbw1, int adjbw2 , bool invalidisInvert = false);707 Color, const Color& textcolor, EBorderStyle, int adjbw1, int adjbw2); 708 708 709 709 virtual void setTable(RenderTable*) {}; -
trunk/WebCore/rendering/RenderTheme.cpp
r15290 r16044 36 36 using namespace HTMLNames; 37 37 38 void RenderTheme::adjustStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) 39 { 38 void RenderTheme::adjustStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e, 39 bool UAHasAppearance, const BorderData& border, const BackgroundLayer& background, const Color& backgroundColor) 40 { 41 40 42 // Force inline and table display styles to be inline-block (except for table- which is block) 41 43 if (style->display() == INLINE || style->display() == INLINE_TABLE || style->display() == TABLE_ROW_GROUP || … … 47 49 style->setDisplay(BLOCK); 48 50 51 if (UAHasAppearance && theme()->isControlStyled(style, border, background, backgroundColor)) { 52 if (style->appearance() == MenulistAppearance) 53 style->setAppearance(MenulistButtonAppearance); 54 else 55 style->setAppearance(NoAppearance); 56 } 57 49 58 // Call the appropriate style adjustment method based off the appearance value. 50 59 switch (style->appearance()) { … … 63 72 case MenulistAppearance: 64 73 return adjustMenuListStyle(selector, style, e); 74 case MenulistButtonAppearance: 75 return adjustMenuListButtonStyle(selector, style, e); 65 76 default: 66 77 break; … … 93 104 case MenulistAppearance: 94 105 return paintMenuList(o, i, r); 106 case MenulistButtonAppearance: 95 107 case TextFieldAppearance: 96 108 case TextAreaAppearance: … … 114 126 case TextAreaAppearance: 115 127 return paintTextArea(o, i, r); 128 case MenulistButtonAppearance: 129 return true; 130 case CheckboxAppearance: 131 case RadioAppearance: 132 case PushButtonAppearance: 133 case SquareButtonAppearance: 134 case ButtonAppearance: 135 case MenulistAppearance: 136 default: 137 break; 138 } 139 140 return false; 141 } 142 143 bool RenderTheme::paintDecorations(RenderObject* o, const RenderObject::PaintInfo& i, const IntRect& r) 144 { 145 if (i.p->paintingDisabled()) 146 return false; 147 148 // Call the appropriate paint method based off the appearance value. 149 switch (o->style()->appearance()) { 150 case MenulistButtonAppearance: 151 return paintMenuListButton(o, i, r); 152 case TextFieldAppearance: 153 case TextAreaAppearance: 116 154 case CheckboxAppearance: 117 155 case RadioAppearance: … … 174 212 // There are more leaves than this, but we'll patch this function as we add support for 175 213 // more controls. 176 return appearance != CheckboxAppearance && appearance != RadioAppearance && appearance != MenulistAppearance;214 return appearance != CheckboxAppearance && appearance != RadioAppearance; 177 215 } 178 216 … … 317 355 } 318 356 319 } 357 void RenderTheme::adjustMenuListButtonStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) const 358 { 359 } 360 361 } -
trunk/WebCore/rendering/RenderTheme.h
r15888 r16044 44 44 // selection of control size based off the font, the disabling of appearance when certain other properties like 45 45 // "border" are set, or if the appearance is not supported by the theme. 46 void adjustStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e); 46 void adjustStyle(CSSStyleSelector*, RenderStyle*, Element*, 47 bool UAHasAppearance, const BorderData&, const BackgroundLayer&, const Color& backgroundColor); 47 48 48 49 // This method is called to paint the widget as a background of the RenderObject. A widget's foreground, e.g., the … … 51 52 bool paint(RenderObject* o, const RenderObject::PaintInfo& i, const IntRect& r); 52 53 bool paintBorderOnly(RenderObject* o, const RenderObject::PaintInfo& i, const IntRect& r); 54 bool paintDecorations(RenderObject* o, const RenderObject::PaintInfo& i, const IntRect& r); 53 55 54 56 // The remaining methods should be implemented by the platform-specific portion of the theme, e.g., … … 140 142 virtual bool paintMenuList(RenderObject* o, const RenderObject::PaintInfo& i, const IntRect& r) { return true; } 141 143 144 virtual void adjustMenuListButtonStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) const; 145 virtual bool paintMenuListButton(RenderObject* o, const RenderObject::PaintInfo& i, const IntRect& r) { return true; } 142 146 }; 143 147 -
trunk/WebCore/rendering/RenderThemeMac.h
r15888 r16044 84 84 virtual void adjustMenuListStyle(CSSStyleSelector*, RenderStyle*, Element*) const; 85 85 86 virtual bool paintMenuListButton(RenderObject*, const RenderObject::PaintInfo&, const IntRect&); 87 virtual void adjustMenuListButtonStyle(CSSStyleSelector*, RenderStyle*, Element*) const; 88 86 89 private: 87 90 IntRect inflateRect(const IntRect&, const IntSize&, const int* margins) const; … … 120 123 const int* popupButtonMargins() const; 121 124 const int* popupButtonPadding(NSControlSize) const; 125 void paintMenuListButtonGradients(RenderObject*, const RenderObject::PaintInfo&, const IntRect&); 122 126 123 127 private: -
trunk/WebCore/rendering/RenderThemeMac.mm
r15888 r16044 145 145 if (style->appearance() == TextFieldAppearance || style->appearance() == TextAreaAppearance) 146 146 return style->border() != border; 147 // FIXME: We should allow menulists to be styled- but not until we have a good design for styled popups.148 if (style->appearance() == MenulistAppearance)149 return false;150 147 return RenderTheme::isControlStyled(style, border, background, backgroundColor); 151 148 } … … 266 263 if (o->style()->appearance() == CheckboxAppearance || o->style()->appearance() == RadioAppearance) 267 264 return o->marginTop() + o->height() - 2; // The baseline is 2px up from the bottom of the checkbox/radio in AppKit. 268 if (o->style()->appearance() == MenulistAppearance)269 return o->marginTop() + o->height() - 5; // This is to match AppKit. There might be a better way to calculate this though.270 265 return RenderTheme::baselinePosition(o); 271 266 } … … 679 674 static const int padding[3][4] = 680 675 { 681 { 0, 26, 0, 8 },682 { 0, 23, 0, 8 },683 { 0, 22, 0, 10 }676 { 2, 26, 3, 8 }, 677 { 2, 23, 3, 8 }, 678 { 2, 22, 3, 10 } 684 679 }; 685 680 return padding[size]; … … 710 705 } 711 706 707 const float baseFontSize = 11.0; 708 const float baseArrowHeight = 4.0; 709 const float baseArrowWidth = 5.0; 710 const float baseSpaceBetweenArrows = 2.0; 711 const int arrowPaddingLeft = 6; 712 const int arrowPaddingRight = 6; 713 const int paddingBeforeSeparator = 4; 714 const int baseBorderRadius = 5; 715 const int styledPopupPaddingLeft = 8; 716 const int styledPopupPaddingTop = 1; 717 const int styledPopupPaddingBottom = 2; 718 719 static void TopGradientInterpolate( void *info, float const *inData, float *outData ) 720 { 721 static float dark[4] = { 1, 1, 1, 0.4 }; 722 static float light[4] = { 1, 1, 1, 0.15 }; 723 float a = inData[0]; 724 int i = 0; 725 for( i = 0; i < 4; i++ ) 726 outData[i] = ( 1.0 - a ) * dark[i] + a * light[i]; 727 } 728 729 static void BottomGradientInterpolate( void *info, float const *inData, float *outData ) 730 { 731 static float dark[4] = { 1, 1, 1, 0 }; 732 static float light[4] = { 1, 1, 1, 0.3 }; 733 float a = inData[0]; 734 int i = 0; 735 for( i = 0; i < 4; i++ ) 736 outData[i] = ( 1.0 - a ) * dark[i] + a * light[i]; 737 } 738 739 static void MainGradientInterpolate( void *info, float const *inData, float *outData ) 740 { 741 static float dark[4] = { 0, 0, 0, 0.15 }; 742 static float light[4] = { 0, 0, 0, 0 }; 743 float a = inData[0]; 744 int i = 0; 745 for( i = 0; i < 4; i++ ) 746 outData[i] = ( 1.0 - a ) * dark[i] + a * light[i]; 747 } 748 749 void RenderThemeMac::paintMenuListButtonGradients(RenderObject* o, const RenderObject::PaintInfo& i, const IntRect& r) 750 { 751 CGContextRef context = i.p->platformContext(); 752 753 i.p->save(); 754 755 int radius = o->style()->borderTopLeftRadius().width(); 756 757 CGColorSpaceRef cspace = CGColorSpaceCreateDeviceRGB(); 758 759 IntRect topGradient(r.x(), r.y(), r.width(), r.height() / 2.0); 760 struct CGFunctionCallbacks topCallbacks = { 0, TopGradientInterpolate, NULL }; 761 CGFunctionRef topFunction = CGFunctionCreate( NULL, 1, NULL, 4, NULL, &topCallbacks ); 762 CGShadingRef topShading = CGShadingCreateAxial( cspace, CGPointMake(topGradient.x(), topGradient.y()), 763 CGPointMake(topGradient.x(), topGradient.bottom()), topFunction, false, false ); 764 765 IntRect bottomGradient(r.x() + radius, r.y() + r.height() / 2.0, r.width() - 2 * radius, r.height() / 2.0); 766 struct CGFunctionCallbacks bottomCallbacks = { 0, BottomGradientInterpolate, NULL }; 767 CGFunctionRef bottomFunction = CGFunctionCreate( NULL, 1, NULL, 4, NULL, &bottomCallbacks ); 768 CGShadingRef bottomShading = CGShadingCreateAxial( cspace, CGPointMake(bottomGradient.x(), bottomGradient.y()), 769 CGPointMake(bottomGradient.x(), bottomGradient.bottom()), bottomFunction, false, false ); 770 771 struct CGFunctionCallbacks mainCallbacks = { 0, MainGradientInterpolate, NULL }; 772 CGFunctionRef mainFunction = CGFunctionCreate( NULL, 1, NULL, 4, NULL, &mainCallbacks ); 773 CGShadingRef mainShading = CGShadingCreateAxial( cspace, CGPointMake(r.x(), r.y()), 774 CGPointMake(r.x(), r.bottom()), mainFunction, false, false ); 775 776 CGShadingRef leftShading = CGShadingCreateAxial( cspace, CGPointMake(r.x(), r.y()), 777 CGPointMake(r.x() + radius, r.y()), mainFunction, false, false ); 778 779 CGShadingRef rightShading = CGShadingCreateAxial( cspace, CGPointMake(r.right(), r.y()), 780 CGPointMake(r.right() - radius, r.y()), mainFunction, false, false ); 781 i.p->save(); 782 CGContextClipToRect(context, r); 783 i.p->addRoundedRectClip(r, 784 o->style()->borderTopLeftRadius(), o->style()->borderTopRightRadius(), 785 o->style()->borderBottomLeftRadius(), o->style()->borderBottomRightRadius()); 786 CGContextDrawShading(context, mainShading); 787 i.p->restore(); 788 789 i.p->save(); 790 CGContextClipToRect(context, topGradient); 791 i.p->addRoundedRectClip(topGradient, 792 o->style()->borderTopLeftRadius(), o->style()->borderTopRightRadius(), 793 IntSize(), IntSize()); 794 CGContextDrawShading(context, topShading); 795 i.p->restore(); 796 797 i.p->save(); 798 CGContextClipToRect(context, bottomGradient); 799 i.p->addRoundedRectClip(bottomGradient, 800 IntSize(), IntSize(), 801 o->style()->borderBottomLeftRadius(), o->style()->borderBottomRightRadius()); 802 CGContextDrawShading(context, bottomShading); 803 i.p->restore(); 804 805 i.p->save(); 806 CGContextClipToRect(context, r); 807 i.p->addRoundedRectClip(r, 808 o->style()->borderTopLeftRadius(), o->style()->borderTopRightRadius(), 809 o->style()->borderBottomLeftRadius(), o->style()->borderBottomRightRadius()); 810 CGContextDrawShading(context, leftShading); 811 CGContextDrawShading(context, rightShading); 812 i.p->restore(); 813 814 i.p->restore(); 815 } 816 817 bool RenderThemeMac::paintMenuListButton(RenderObject* o, const RenderObject::PaintInfo& i, const IntRect& r) 818 { 819 i.p->save(); 820 821 IntRect bounds = IntRect(r.x() + o->style()->borderLeftWidth(), 822 r.y() + o->style()->borderTopWidth(), 823 r.width() - o->style()->borderLeftWidth() - o->style()->borderRightWidth(), 824 r.height() - o->style()->borderTopWidth() - o->style()->borderBottomWidth()); 825 // Draw the gradients to give the styled popup menu a button appearance 826 paintMenuListButtonGradients(o, i, bounds); 827 828 float fontScale = o->style()->fontSize() / baseFontSize; 829 float centerY = bounds.y() + bounds.height() / 2.0; 830 float arrowHeight = baseArrowHeight * fontScale; 831 float arrowWidth = baseArrowWidth * fontScale; 832 float leftEdge = bounds.right() - arrowPaddingRight - arrowWidth; 833 float spaceBetweenArrows = baseSpaceBetweenArrows * fontScale; 834 835 i.p->setFillColor(o->style()->color()); 836 i.p->setPen(Pen(o->style()->color())); 837 838 FloatPoint arrow1[3]; 839 arrow1[0] = FloatPoint(leftEdge, centerY - spaceBetweenArrows / 2.0); 840 arrow1[1] = FloatPoint(leftEdge + arrowWidth, centerY - spaceBetweenArrows / 2.0); 841 arrow1[2] = FloatPoint(leftEdge + arrowWidth / 2.0, centerY - spaceBetweenArrows / 2.0 - arrowHeight); 842 843 // Draw the top arrow 844 i.p->drawConvexPolygon(3, arrow1, true); 845 846 FloatPoint arrow2[3]; 847 arrow2[0] = FloatPoint(leftEdge, centerY + spaceBetweenArrows / 2.0); 848 arrow2[1] = FloatPoint(leftEdge + arrowWidth, centerY + spaceBetweenArrows / 2.0); 849 arrow2[2] = FloatPoint(leftEdge + arrowWidth / 2.0, centerY + spaceBetweenArrows / 2.0 + arrowHeight); 850 851 // Draw the bottom arrow 852 i.p->drawConvexPolygon(3, arrow2, true); 853 854 Color leftSeparatorColor(0, 0, 0, 40); 855 Color rightSeparatorColor(255, 255, 255, 40); 856 int separatorSpace = 2; 857 int leftEdgeOfSeparator = leftEdge - arrowPaddingLeft; 858 859 // Draw the separator to the left of the arrows 860 i.p->setPen(Pen(leftSeparatorColor)); 861 i.p->drawLine(IntPoint(leftEdgeOfSeparator, bounds.y()), IntPoint(leftEdgeOfSeparator, bounds.bottom())); 862 863 i.p->setPen(Pen(rightSeparatorColor)); 864 i.p->drawLine(IntPoint(leftEdgeOfSeparator + separatorSpace, bounds.y()), IntPoint(leftEdgeOfSeparator + separatorSpace, bounds.bottom())); 865 866 i.p->restore(); 867 return false; 868 } 869 712 870 void RenderThemeMac::adjustMenuListStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) const 713 871 { … … 738 896 // system font for the control size instead. 739 897 setFontFromControlSize(selector, style, controlSize); 898 } 899 900 void RenderThemeMac::adjustMenuListButtonStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) const 901 { 902 // Add in intrinsic margins if the font size isn't too small 903 if (style->fontSize() >= 11) 904 addIntrinsicMargins(style, NSRegularControlSize); 905 906 float fontScale = style->fontSize() / baseFontSize; 907 float arrowWidth = baseArrowWidth * fontScale; 908 909 // We're overriding the padding to allow for the arrow control. WinIE doesn't honor padding on selects, so 910 // this shouldn't cause problems on the web. If IE7 changes that, we should reconsider this. 911 style->setPaddingLeft(Length(styledPopupPaddingLeft, Fixed)); 912 style->setPaddingRight(Length(arrowWidth + arrowPaddingLeft + arrowPaddingRight + paddingBeforeSeparator, Fixed)); 913 style->setPaddingTop(Length(styledPopupPaddingTop, Fixed)); 914 style->setPaddingBottom(Length(styledPopupPaddingBottom, Fixed)); 915 916 if (style->hasBorderRadius()) { 917 style->setBorderRadius(IntSize(baseBorderRadius + fontScale - 1, baseBorderRadius + fontScale - 1)); 918 } 919 920 const int minHeight = 15; 921 style->setMinHeight(Length(minHeight, Fixed)); 740 922 } 741 923 -
trunk/WebCore/rendering/bidi.cpp
r15781 r16044 1751 1751 1752 1752 if (!firstLineBox() && hasLineIfEmpty()) 1753 m_height += lineHeight(true );1753 m_height += lineHeight(true, true); 1754 1754 1755 1755 // See if we have any lines that spill out of our block. If we do, then we will possibly need to
Note:
See TracChangeset
for help on using the changeset viewer.