diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-07-31 11:40:23 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-07-31 14:43:57 +0200 |
commit | 9548b912de9e4c11c3326708537c81d1b6861bfb (patch) | |
tree | 993ae6799739cf43d48d1c7a2efcbbb3f227e408 | |
parent | 5f12776a6e3d346bdfea8fbc12df8e643c52c3fd (diff) | |
download | qtwebkit-9548b912de9e4c11c3326708537c81d1b6861bfb.tar.gz |
Do not add QStyle padding on top of default padding
The recent change to follow CSS padding value, added the CSS padding
to the default QStyle. This however needlessly changes the default
size of input elements.
This change instead uses the maximum of CSS padding and QStyle padding.
Change-Id: I23a39c76db837409ea11915f69ebbfefa2d25548
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
-rw-r--r-- | Source/WebCore/platform/qt/RenderThemeQStyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/platform/qt/RenderThemeQStyle.cpp b/Source/WebCore/platform/qt/RenderThemeQStyle.cpp index f14358c64..999c670c4 100644 --- a/Source/WebCore/platform/qt/RenderThemeQStyle.cpp +++ b/Source/WebCore/platform/qt/RenderThemeQStyle.cpp @@ -155,7 +155,7 @@ QRect RenderThemeQStyle::inflateButtonRect(const QRect& originalRect) const int extendFixedPadding(Length oldPadding, int padding) { if (oldPadding.isFixed()) { - return oldPadding.value() + padding; + return std::max(oldPadding.intValue(), padding); } return padding; } |