Changeset 69436 in webkit
- Timestamp:
- Oct 8, 2010 6:58:05 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r69433 r69436 1 2010-10-08 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Daniel Bates. 4 5 [GTK] Fails /LayoutTests/fast/css/button-height.html 6 https://bugs.webkit.org/show_bug.cgi?id=33936 7 8 Unskip a test that is now passing and update baselines for 9 other tests. 10 11 * platform/gtk/Skipped: Update skipped list. 12 * platform/gtk/fast/forms/box-shadow-override-expected.txt: 13 * platform/gtk/fast/forms/button-style-color-expected.txt: 14 * platform/gtk/fast/forms/input-button-sizes-expected.txt: 15 1 16 2010-10-08 Albert J. Wong <ajwong@chromium.org> 2 17 -
trunk/LayoutTests/platform/gtk/Skipped
r69420 r69436 5015 5015 # Tests with bugs attached : Enable these tests again once these bugs are fixed. 5016 5016 # ------------------ 5017 5018 # Height not honored for <input> and <button> elements.5019 # See Bug #33936 - https://bugs.webkit.org/show_bug.cgi?id=339365020 fast/css/button-height.html5021 # I think this is related. Essentially we aren't honoring style5022 # information for widgets.5023 fast/forms/textarea-metrics.html5024 5025 5017 # See Bug #27905 - http://bugs.webkit.org/show_bug.cgi?id=27905 5026 5018 # Missing resource load callback ability in DRT … … 5670 5662 fast/forms/basic-selects.html 5671 5663 fast/forms/basic-textareas-quirks.html 5664 fast/forms/textarea-metrics.html 5672 5665 5673 5666 # Fake italics do not work: https://bugs.webkit.org/show_bug.cgi?id=40856 -
trunk/LayoutTests/platform/gtk/fast/forms/box-shadow-override-expected.txt
r68406 r69436 28 28 RenderBlock {DIV} at (148,1) size 14x14 29 29 RenderText {#text} at (0,0) size 0x0 30 RenderBlock (anonymous) at (0,157) size 784x3 530 RenderBlock (anonymous) at (0,157) size 784x36 31 31 RenderBlock {INPUT} at (4,11) size 15x15 32 32 RenderText {#text} at (23,9) size 4x19 … … 39 39 RenderText {#text} at (187,9) size 4x19 40 40 text run at (187,9) width 4: " " 41 RenderFileUploadControl {INPUT} at (193,5) size 272x2 7"(None)"42 RenderButton {INPUT} at (0,0) size 89x2 7 [bgcolor=#C0C0C0]41 RenderFileUploadControl {INPUT} at (193,5) size 272x28 "(None)" 42 RenderButton {INPUT} at (0,0) size 89x28 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 43 43 RenderBlock (anonymous) at (8,4) size 73x19 44 44 RenderText at (0,0) size 73x19 … … 46 46 RenderText {#text} at (467,9) size 4x19 47 47 text run at (467,9) width 4: " " 48 RenderButton {INPUT} at (473,2) size 67x3 1 [bgcolor=#C0C0C0]48 RenderButton {INPUT} at (473,2) size 67x32 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 49 49 RenderBlock (anonymous) at (8,4) size 51x23 50 50 RenderText at (0,0) size 51x23 … … 52 52 RenderText {#text} at (542,9) size 4x19 53 53 text run at (542,9) width 4: " " 54 RenderButton {INPUT} at (548,5) size 56x2 7 [bgcolor=#C0C0C0]54 RenderButton {INPUT} at (548,5) size 56x28 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 55 55 RenderBlock (anonymous) at (8,4) size 40x19 56 56 RenderText at (0,0) size 40x19 … … 58 58 RenderText {#text} at (606,9) size 4x19 59 59 text run at (606,9) width 4: " " 60 RenderButton {INPUT} at (610,15) size 30x1 5 [bgcolor=#C0C0C0]60 RenderButton {INPUT} at (610,15) size 30x16 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 61 61 RenderBlock (anonymous) at (8,4) size 14x7 62 62 RenderText at (0,0) size 14x7 … … 64 64 RenderText {#text} at (640,9) size 4x19 65 65 text run at (640,9) width 4: " " 66 RenderButton {BUTTON} at (646, 4) size 67x28 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0) none(2px outset #C0C0C0)]67 RenderBlock (anonymous) at (8, 2) size 51x2366 RenderButton {BUTTON} at (646,2) size 67x32 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 67 RenderBlock (anonymous) at (8,4) size 51x23 68 68 RenderText {#text} at (0,0) size 51x23 69 69 text run at (0,0) width 51: "Button" -
trunk/LayoutTests/platform/gtk/fast/forms/button-style-color-expected.txt
r68406 r69436 4 4 RenderBlock {HTML} at (0,0) size 800x600 5 5 RenderBody {BODY} at (8,8) size 784x584 6 RenderButton {BUTTON} at (2, 4) size 86x24 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0) none(2px outset #C0C0C0)]7 RenderBlock (anonymous) at (8, 2) size 70x196 RenderButton {BUTTON} at (2,2) size 86x28 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 7 RenderBlock (anonymous) at (8,4) size 70x19 8 8 RenderText {#text} at (0,0) size 70x19 9 9 text run at (0,0) width 70: "Test Button" 10 10 RenderText {#text} at (90,6) size 4x19 11 11 text run at (90,6) width 4: " " 12 RenderButton {BUTTON} at (96, 4) size 86x24 [color=#FF0000] [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0) none(2px outset #C0C0C0)]13 RenderBlock (anonymous) at (8, 2) size 70x1912 RenderButton {BUTTON} at (96,2) size 86x28 [color=#FF0000] [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 13 RenderBlock (anonymous) at (8,4) size 70x19 14 14 RenderText {#text} at (0,0) size 70x19 15 15 text run at (0,0) width 70: "Test Button" … … 28 28 RenderText {#text} at (372,6) size 4x19 29 29 text run at (372,6) width 4: " " 30 RenderButton {INPUT} at (378,2) size 86x2 7 [bgcolor=#C0C0C0]30 RenderButton {INPUT} at (378,2) size 86x28 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 31 31 RenderBlock (anonymous) at (8,4) size 70x19 32 32 RenderText at (0,0) size 70x19 … … 34 34 RenderText {#text} at (466,6) size 4x19 35 35 text run at (466,6) width 4: " " 36 RenderButton {INPUT} at (472,2) size 86x2 7 [color=#FF0000] [bgcolor=#C0C0C0]36 RenderButton {INPUT} at (472,2) size 86x28 [color=#FF0000] [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 37 37 RenderBlock (anonymous) at (8,4) size 70x19 38 38 RenderText at (0,0) size 70x19 -
trunk/LayoutTests/platform/gtk/fast/forms/input-button-sizes-expected.txt
r69366 r69436 4 4 RenderBlock {HTML} at (0,0) size 800x600 5 5 RenderBody {BODY} at (8,8) size 784x584 6 RenderButton {INPUT} at (0,11) size 39x1 5 [bgcolor=#C0C0C0]6 RenderButton {INPUT} at (0,11) size 39x16 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 7 7 RenderBlock (anonymous) at (8,4) size 23x7 8 8 RenderText at (0,0) size 23x7 … … 10 10 RenderText {#text} at (39,5) size 4x19 11 11 text run at (39,5) width 4: " " 12 RenderButton {INPUT} at (43,10) size 46x1 6 [bgcolor=#C0C0C0]12 RenderButton {INPUT} at (43,10) size 46x17 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 13 13 RenderBlock (anonymous) at (8,4) size 30x8 14 14 RenderText at (0,0) size 30x8 … … 16 16 RenderText {#text} at (89,5) size 4x19 17 17 text run at (89,5) width 4: " " 18 RenderButton {INPUT} at (93,9) size 51x1 7 [bgcolor=#C0C0C0]18 RenderButton {INPUT} at (93,9) size 51x18 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 19 19 RenderBlock (anonymous) at (8,4) size 35x9 20 20 RenderText at (0,0) size 35x9 … … 22 22 RenderText {#text} at (144,5) size 4x19 23 23 text run at (144,5) width 4: " " 24 RenderButton {INPUT} at (148,8) size 53x1 8 [bgcolor=#C0C0C0]24 RenderButton {INPUT} at (148,8) size 53x19 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 25 25 RenderBlock (anonymous) at (8,4) size 37x10 26 26 RenderText at (0,0) size 37x10 … … 28 28 RenderText {#text} at (201,5) size 4x19 29 29 text run at (201,5) width 4: " " 30 RenderButton {INPUT} at (205,7) size 61x 19 [bgcolor=#C0C0C0]30 RenderButton {INPUT} at (205,7) size 61x20 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 31 31 RenderBlock (anonymous) at (8,4) size 45x11 32 32 RenderText at (0,0) size 45x11 … … 34 34 RenderText {#text} at (266,5) size 4x19 35 35 text run at (266,5) width 4: " " 36 RenderButton {INPUT} at (270,7) size 65x2 0 [bgcolor=#C0C0C0]36 RenderButton {INPUT} at (270,7) size 65x21 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 37 37 RenderBlock (anonymous) at (8,4) size 49x12 38 38 RenderText at (0,0) size 49x12 … … 40 40 RenderText {#text} at (335,5) size 4x19 41 41 text run at (335,5) width 4: " " 42 RenderButton {INPUT} at (341,6) size 72x2 1 [bgcolor=#C0C0C0]42 RenderButton {INPUT} at (341,6) size 72x22 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 43 43 RenderBlock (anonymous) at (8,4) size 56x13 44 44 RenderText at (0,0) size 56x13 … … 46 46 RenderText {#text} at (415,5) size 4x19 47 47 text run at (415,5) width 4: " " 48 RenderButton {INPUT} at (421,5) size 75x2 2 [bgcolor=#C0C0C0]48 RenderButton {INPUT} at (421,5) size 75x23 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 49 49 RenderBlock (anonymous) at (8,4) size 59x14 50 50 RenderText at (0,0) size 59x14 … … 52 52 RenderText {#text} at (498,5) size 4x19 53 53 text run at (498,5) width 4: " " 54 RenderButton {INPUT} at (504,4) size 80x2 3 [bgcolor=#C0C0C0]54 RenderButton {INPUT} at (504,4) size 80x24 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 55 55 RenderBlock (anonymous) at (8,4) size 64x15 56 56 RenderText at (0,0) size 64x15 … … 58 58 RenderText {#text} at (586,5) size 4x19 59 59 text run at (586,5) width 4: " " 60 RenderButton {INPUT} at (592,3) size 82x2 5 [bgcolor=#C0C0C0]60 RenderButton {INPUT} at (592,3) size 82x26 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 61 61 RenderBlock (anonymous) at (8,4) size 66x17 62 62 RenderText at (0,0) size 66x17 … … 64 64 RenderText {#text} at (676,5) size 4x19 65 65 text run at (676,5) width 4: " " 66 RenderButton {INPUT} at (682,2) size 85x2 6 [bgcolor=#C0C0C0]66 RenderButton {INPUT} at (682,2) size 85x27 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 67 67 RenderBlock (anonymous) at (8,4) size 69x18 68 68 RenderText at (0,0) size 69x18 … … 70 70 RenderText {#text} at (769,5) size 4x19 71 71 text run at (769,5) width 4: " " 72 RenderButton {INPUT} at (2,3 6) size 86x27 [bgcolor=#C0C0C0]72 RenderButton {INPUT} at (2,37) size 86x28 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 73 73 RenderBlock (anonymous) at (8,4) size 70x19 74 74 RenderText at (0,0) size 70x19 75 75 text run at (0,0) width 70: "Test Button" 76 RenderText {#text} at (90,4 0) size 4x1977 text run at (90,4 0) width 4: " "78 RenderButton {INPUT} at (96,3 5) size 95x28 [bgcolor=#C0C0C0]76 RenderText {#text} at (90,41) size 4x19 77 text run at (90,41) width 4: " " 78 RenderButton {INPUT} at (96,36) size 95x29 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 79 79 RenderBlock (anonymous) at (8,4) size 79x20 80 80 RenderText at (0,0) size 79x20 81 81 text run at (0,0) width 79: "Test Button" 82 RenderText {#text} at (193,4 0) size 4x1983 text run at (193,4 0) width 4: " "84 RenderButton {INPUT} at (199,3 4) size 102x29 [bgcolor=#C0C0C0]82 RenderText {#text} at (193,41) size 4x19 83 text run at (193,41) width 4: " " 84 RenderButton {INPUT} at (199,35) size 102x30 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 85 85 RenderBlock (anonymous) at (8,4) size 86x21 86 86 RenderText at (0,0) size 86x21 87 87 text run at (0,0) width 86: "Test Button" 88 RenderText {#text} at (303,4 0) size 4x1989 text run at (303,4 0) width 4: " "90 RenderButton {INPUT} at (309,3 4) size 104x30 [bgcolor=#C0C0C0]88 RenderText {#text} at (303,41) size 4x19 89 text run at (303,41) width 4: " " 90 RenderButton {INPUT} at (309,35) size 104x31 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 91 91 RenderBlock (anonymous) at (8,4) size 88x22 92 92 RenderText at (0,0) size 88x22 93 93 text run at (0,0) width 88: "Test Button" 94 RenderText {#text} at (415,4 0) size 4x1995 text run at (415,4 0) width 4: " "96 RenderButton {INPUT} at (421,3 3) size 106x31 [bgcolor=#C0C0C0]94 RenderText {#text} at (415,41) size 4x19 95 text run at (415,41) width 4: " " 96 RenderButton {INPUT} at (421,34) size 106x32 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 97 97 RenderBlock (anonymous) at (8,4) size 90x23 98 98 RenderText at (0,0) size 90x23 99 99 text run at (0,0) width 90: "Test Button" 100 RenderText {#text} at (529,4 0) size 4x19101 text run at (529,4 0) width 4: " "102 RenderButton {INPUT} at (535,3 2) size 114x32 [bgcolor=#C0C0C0]100 RenderText {#text} at (529,41) size 4x19 101 text run at (529,41) width 4: " " 102 RenderButton {INPUT} at (535,33) size 114x33 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)] 103 103 RenderBlock (anonymous) at (8,4) size 98x24 104 104 RenderText at (0,0) size 98x24 -
trunk/WebCore/ChangeLog
r69432 r69436 1 2010-10-08 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Daniel Bates. 4 5 [GTK] Fails /LayoutTests/fast/css/button-height.html 6 https://bugs.webkit.org/show_bug.cgi?id=33936 7 8 GTK buttons honor height property set via CSS. The code for the method 9 adjustButtonStyle originates from the original GTK+ theme drawing code 10 and is clearly just a copy-paste from the Safari theme drawing code. The 11 Safari theme drawing code does quite a bit of work to ensure that button 12 fonts are consistent with the system theme, which is not something the GTK+ 13 port does. 14 15 This change brings the method more in line with the Chromium port, which 16 allows CSS to style buttons, only overriding the line-height property, 17 which is required for layout tests to pass. 18 19 * platform/gtk/RenderThemeGtk.cpp: 20 (WebCore::RenderThemeGtk::adjustButtonStyle): No longer override most CSS 21 properties for button styling. 22 1 23 2010-10-08 Mihai Parparita <mihaip@chromium.org> 2 24 -
trunk/WebCore/platform/gtk/RenderThemeGtk.cpp
r69381 r69436 381 381 } 382 382 383 static void setButtonPadding(RenderStyle* style)384 {385 // FIXME: This looks incorrect.386 const int padding = 8;387 style->setPaddingLeft(Length(padding, Fixed));388 style->setPaddingRight(Length(padding, Fixed));389 style->setPaddingTop(Length(padding / 2, Fixed));390 style->setPaddingBottom(Length(padding / 2, Fixed));391 }392 393 383 static void setToggleSize(const RenderThemeGtk* theme, RenderStyle* style, ControlPart appearance) 394 384 { … … 445 435 void RenderThemeGtk::adjustButtonStyle(CSSStyleSelector* selector, RenderStyle* style, WebCore::Element* e) const 446 436 { 447 // FIXME: Is this condition necessary? 448 if (style->appearance() == PushButtonPart) { 449 style->resetBorder(); 450 style->setHeight(Length(Auto)); 451 style->setWhiteSpace(PRE); 452 setButtonPadding(style); 453 } else { 454 // FIXME: This should not be hard-coded. 455 style->setMinHeight(Length(14, Fixed)); 456 style->resetBorderTop(); 457 style->resetBorderBottom(); 458 } 437 // Some layout tests check explicitly that buttons ignore line-height. 438 if (style->appearance() == PushButtonPart) 439 style->setLineHeight(RenderStyle::initialLineHeight()); 459 440 } 460 441
Note: See TracChangeset
for help on using the changeset viewer.