OSDN Git Service

Increase default button padding
authorJohn Reck <jreck@google.com>
Wed, 21 Sep 2011 20:45:48 +0000 (13:45 -0700)
committerJohn Reck <jreck@google.com>
Wed, 21 Sep 2011 20:45:48 +0000 (13:45 -0700)
 Bug: 5354009
 12 for left/right
 8 for top/bottom

Change-Id: Iec50b82b95d24b3a50c858017f52d52310c86ee9

Source/WebCore/platform/android/RenderThemeAndroid.cpp

index c6e3bc5..7ef814e 100644 (file)
@@ -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));