Changeset 85009 in webkit
- Timestamp:
- Apr 26, 2011 9:29:18 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r85007 r85009 1 2011-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 1 13 2011-04-26 Chris Fleizach <cfleizach@apple.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r85002 r85009 1 2011-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 1 14 2011-04-26 James Robinson <jamesr@chromium.org> 2 15 -
trunk/Source/WebCore/platform/qt/RenderThemeQt.cpp
r84025 r85009 528 528 // FIXME: Check is flawed, since it doesn't take min-width/max-width into account. 529 529 if (renderStyle->width().isIntrinsicOrAuto() && size.width() > 0) 530 renderStyle->set Width(Length(size.width(), Fixed));530 renderStyle->setMinWidth(Length(size.width(), Fixed)); 531 531 if (renderStyle->height().isAuto() && size.height() > 0) 532 renderStyle->set Height(Length(size.height(), Fixed));532 renderStyle->setMinHeight(Length(size.height(), Fixed)); 533 533 } 534 534 … … 608 608 int paddingLeft = buttonMargin; 609 609 int paddingRight = buttonMargin; 610 int paddingTop = 1;611 int paddingBottom = 0;610 int paddingTop = buttonMargin; 611 int paddingBottom = buttonMargin; 612 612 613 613 // Then check if the style uses layout margins
Note: See TracChangeset
for help on using the changeset viewer.