Skip to content

Commit d7fbe12

Browse files
author
Andreas Kling
committed
2011-04-15 Andreas Kling <kling@webkit.org>
Rolling out accidental part of r84010. * platform/qt/RenderThemeQt.cpp: (WebCore::RenderThemeQt::computeSizeBasedOnStyle): (WebCore::RenderThemeQt::setButtonPadding): 2011-04-15 Andreas Kling <kling@webkit.org> Rolling out accidental part of r84010. * fast/forms/button-line-break.html: Removed. Canonical link: https://commits.webkit.org/73767@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84025 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 1e5d8c7 commit d7fbe12

4 files changed

Lines changed: 18 additions & 15 deletions

File tree

LayoutTests/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2011-04-15 Andreas Kling <kling@webkit.org>
2+
3+
Rolling out accidental part of r84010.
4+
5+
* fast/forms/button-line-break.html: Removed.
6+
17
2011-04-15 Andreas Kling <kling@webkit.org>
28

39
Reviewed by Antonio Gomes.

LayoutTests/fast/forms/button-line-break.html

Lines changed: 0 additions & 11 deletions
This file was deleted.

Source/WebCore/ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2011-04-15 Andreas Kling <kling@webkit.org>
2+
3+
Rolling out accidental part of r84010.
4+
5+
* platform/qt/RenderThemeQt.cpp:
6+
(WebCore::RenderThemeQt::computeSizeBasedOnStyle):
7+
(WebCore::RenderThemeQt::setButtonPadding):
8+
19
2011-04-15 Oliver Hunt <oliver@apple.com>
210

311
Forgot windows build fix.

Source/WebCore/platform/qt/RenderThemeQt.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,9 +527,9 @@ void RenderThemeQt::computeSizeBasedOnStyle(RenderStyle* renderStyle) const
527527

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->setMinWidth(Length(size.width(), Fixed));
530+
renderStyle->setWidth(Length(size.width(), Fixed));
531531
if (renderStyle->height().isAuto() && size.height() > 0)
532-
renderStyle->setMinHeight(Length(size.height(), Fixed));
532+
renderStyle->setHeight(Length(size.height(), Fixed));
533533
}
534534

535535
void RenderThemeQt::setCheckboxSize(RenderStyle* style) const
@@ -607,8 +607,8 @@ void RenderThemeQt::setButtonPadding(RenderStyle* style) const
607607
int buttonMargin = qStyle()->pixelMetric(QStyle::PM_ButtonMargin, &styleOption, 0);
608608
int paddingLeft = buttonMargin;
609609
int paddingRight = buttonMargin;
610-
int paddingTop = buttonMargin;
611-
int paddingBottom = buttonMargin;
610+
int paddingTop = 1;
611+
int paddingBottom = 0;
612612

613613
// Then check if the style uses layout margins
614614
QRect layoutRect = qStyle()->subElementRect(QStyle::SE_PushButtonLayoutItem,

0 commit comments

Comments
 (0)