summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/android/RenderThemeAndroid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/android/RenderThemeAndroid.cpp')
-rw-r--r--Source/WebCore/platform/android/RenderThemeAndroid.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/WebCore/platform/android/RenderThemeAndroid.cpp b/Source/WebCore/platform/android/RenderThemeAndroid.cpp
index c6e3bc5..7ef814e 100644
--- a/Source/WebCore/platform/android/RenderThemeAndroid.cpp
+++ b/Source/WebCore/platform/android/RenderThemeAndroid.cpp
@@ -212,9 +212,12 @@ void RenderThemeAndroid::adjustButtonStyle(CSSStyleSelector*, RenderStyle* style
{
// Code is taken from RenderThemeSafari.cpp
// It makes sure we have enough space for the button text.
- const int padding = 8;
- style->setPaddingLeft(Length(padding, Fixed));
- style->setPaddingRight(Length(padding, Fixed));
+ const int paddingHoriz = 12;
+ const int paddingVert = 8;
+ style->setPaddingLeft(Length(paddingHoriz, Fixed));
+ style->setPaddingRight(Length(paddingHoriz, Fixed));
+ style->setPaddingTop(Length(paddingVert, Fixed));
+ style->setPaddingBottom(Length(paddingVert, Fixed));
// Set a min-height so that we can't get smaller than the mini button.
style->setMinHeight(Length(15, Fixed));