Changeset 85009 in webkit


Ignore:
Timestamp:
Apr 26, 2011 9:29:18 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-26 Dawit Alemayehu <adawit@kde.org>

Reviewed by Andreas Kling.

Added qtwebkit layout test for the button line break fix (Bug 50521).

[Qt] Improper rendering of <button> tag when it contains a <br>
https://bugs.webkit.org/show_bug.cgi?id=50521

  • platform/qt/fast/forms/button-line-break-expected.txt: Added.
  • platform/qt/fast/forms/button-line-break.html: Added.

2011-04-26 Dawit Alemayehu <adawit@kde.org>

Reviewed by Andreas Kling.

[Qt] Improper rendering of <button> tag when it contains a <br>
https://bugs.webkit.org/show_bug.cgi?id=50521

Test: platform/qt/fast/forms/button-line-break.html

  • platform/qt/RenderThemeQt.cpp: (WebCore::RenderThemeQt::computeSizeBasedOnStyle): (WebCore::RenderThemeQt::setButtonPadding):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r85007 r85009  
     12011-04-26  Dawit Alemayehu  <adawit@kde.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        Added qtwebkit layout test for the button line break fix (Bug 50521).
     6
     7        [Qt] Improper rendering of <button> tag when it contains a <br>
     8        https://bugs.webkit.org/show_bug.cgi?id=50521
     9
     10        * platform/qt/fast/forms/button-line-break-expected.txt: Added.
     11        * platform/qt/fast/forms/button-line-break.html: Added.
     12
    1132011-04-26  Chris Fleizach  <cfleizach@apple.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r85002 r85009  
     12011-04-26  Dawit Alemayehu  <adawit@kde.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [Qt] Improper rendering of <button> tag when it contains a <br>
     6        https://bugs.webkit.org/show_bug.cgi?id=50521
     7
     8        Test: platform/qt/fast/forms/button-line-break.html
     9
     10        * platform/qt/RenderThemeQt.cpp:
     11        (WebCore::RenderThemeQt::computeSizeBasedOnStyle):
     12        (WebCore::RenderThemeQt::setButtonPadding):
     13
    1142011-04-26  James Robinson  <jamesr@chromium.org>
    215
  • trunk/Source/WebCore/platform/qt/RenderThemeQt.cpp

    r84025 r85009  
    528528    // FIXME: Check is flawed, since it doesn't take min-width/max-width into account.
    529529    if (renderStyle->width().isIntrinsicOrAuto() && size.width() > 0)
    530         renderStyle->setWidth(Length(size.width(), Fixed));
     530        renderStyle->setMinWidth(Length(size.width(), Fixed));
    531531    if (renderStyle->height().isAuto() && size.height() > 0)
    532         renderStyle->setHeight(Length(size.height(), Fixed));
     532        renderStyle->setMinHeight(Length(size.height(), Fixed));
    533533}
    534534
     
    608608    int paddingLeft = buttonMargin;
    609609    int paddingRight = buttonMargin;
    610     int paddingTop = 1;
    611     int paddingBottom = 0;
     610    int paddingTop = buttonMargin;
     611    int paddingBottom = buttonMargin;
    612612
    613613    // Then check if the style uses layout margins
Note: See TracChangeset for help on using the changeset viewer.