Changeset 53591 in webkit
- Timestamp:
- Jan 20, 2010, 6:31:21 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/css/button-height-expected.txt (added)
-
LayoutTests/fast/css/button-height.html (added)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/platform/qt/RenderThemeQt.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r53590 r53591 1 2010-01-20 Daniel Bates <dbates@webkit.org> 2 3 Reviewed by Tor Arne Vestbø. 4 5 https://bugs.webkit.org/show_bug.cgi?id=29564 6 7 Tests that the user-specified height for <button>- and <input type="button">- 8 elements are honored, if appropriate for the platform and context. 9 10 * fast/css/button-height-expected.txt: Added. 11 * fast/css/button-height.html: Added. 12 1 13 2010-01-20 Brady Eidson <beidson@apple.com> 2 14 -
trunk/WebCore/ChangeLog
r53590 r53591 1 2010-01-20 Daniel Bates <dbates@webkit.org> 2 3 Reviewed by Tor Arne Vestbø. 4 5 https://bugs.webkit.org/show_bug.cgi?id=29564 6 7 [Qt] Fixes an issue where the height of <button>- and 8 <input type="button">- elements are fixed to the height of the 9 button label font plus padding. That is, the CSS height property 10 is being ignored. 11 12 Instead, we should honor the user-specified height, if appropriate 13 for the platform and context. Notice, the Mac ports do not honor the 14 height for <input type="button"> elements unless a border and/or 15 background is also specified. 16 17 Test: fast/css/button-height.html 18 19 * platform/qt/RenderThemeQt.cpp: 20 (WebCore::RenderThemeQt::RenderThemeQt): 21 (WebCore::RenderThemeQt::adjustButtonStyle): 22 1 23 2010-01-20 Brady Eidson <beidson@apple.com> 2 24 -
trunk/WebCore/platform/qt/RenderThemeQt.cpp
r52896 r53591 398 398 style->resetBorder(); 399 399 400 // Height is locked to auto. 401 style->setHeight(Length(Auto)); 400 #ifdef Q_WS_MAC 401 if (style->appearance() == PushButtonPart) { 402 // The Mac ports ignore the specified height for <input type="button"> elements 403 // unless a border and/or background CSS property is also specified. 404 style->setHeight(Length(Auto)); 405 } 406 #endif 402 407 403 408 // White-space is locked to pre
Note:
See TracChangeset
for help on using the changeset viewer.