Changeset 53591 in webkit


Ignore:
Timestamp:
Jan 20, 2010 6:31:21 PM (14 years ago)
Author:
dbates@webkit.org
Message:

2010-01-20 Daniel Bates <dbates@webkit.org>

Reviewed by Tor Arne Vestbø.

https://bugs.webkit.org/show_bug.cgi?id=29564

[Qt] Fixes an issue where the height of <button>- and
<input type="button">- elements are fixed to the height of the
button label font plus padding. That is, the CSS height property
is being ignored.

Instead, we should honor the user-specified height, if appropriate
for the platform and context. Notice, the Mac ports do not honor the
height for <input type="button"> elements unless a border and/or
background is also specified.

Test: fast/css/button-height.html

  • platform/qt/RenderThemeQt.cpp: (WebCore::RenderThemeQt::RenderThemeQt): (WebCore::RenderThemeQt::adjustButtonStyle):

2010-01-20 Daniel Bates <dbates@webkit.org>

Reviewed by Tor Arne Vestbø.

https://bugs.webkit.org/show_bug.cgi?id=29564


Tests that the user-specified height for <button>- and <input type="button">-
elements are honored, if appropriate for the platform and context.

  • fast/css/button-height-expected.txt: Added.
  • fast/css/button-height.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r53590 r53591  
     12010-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
    1132010-01-20  Brady Eidson  <beidson@apple.com>
    214
  • trunk/WebCore/ChangeLog

    r53590 r53591  
     12010-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
    1232010-01-20  Brady Eidson  <beidson@apple.com>
    224
  • trunk/WebCore/platform/qt/RenderThemeQt.cpp

    r52896 r53591  
    398398    style->resetBorder();
    399399
    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
    402407
    403408    // White-space is locked to pre
Note: See TracChangeset for help on using the changeset viewer.