diff options
author | Leon Clarke <leonclarke@google.com> | 2010-04-21 14:20:35 +0100 |
---|---|---|
committer | Leon Clarke <leonclarke@google.com> | 2010-04-26 12:32:53 +0100 |
commit | 377929b9f78a89a370a95834beb8f32b2ed494b4 (patch) | |
tree | 9fdd2fab37fa84ede6fb79b47b20b1d1e009b27a /WebCore/platform | |
parent | e762b176966e9a29ad302d4aa58bd3f79bc01bd0 (diff) | |
download | external_webkit-377929b9f78a89a370a95834beb8f32b2ed494b4.zip external_webkit-377929b9f78a89a370a95834beb8f32b2ed494b4.tar.gz external_webkit-377929b9f78a89a370a95834beb8f32b2ed494b4.tar.bz2 |
Add more padding round select boxes, use different assets at
different resolutions, use new assets and don't deform the arrows
when stretching the select box.
http://b/issue?id=2506670
Diffstat (limited to 'WebCore/platform')
-rw-r--r-- | WebCore/platform/android/RenderThemeAndroid.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/WebCore/platform/android/RenderThemeAndroid.cpp b/WebCore/platform/android/RenderThemeAndroid.cpp index 4c5cff5..7085bf4 100644 --- a/WebCore/platform/android/RenderThemeAndroid.cpp +++ b/WebCore/platform/android/RenderThemeAndroid.cpp @@ -334,7 +334,10 @@ void RenderThemeAndroid::adjustListboxStyle(CSSStyleSelector*, RenderStyle* styl static void adjustMenuListStyleCommon(RenderStyle* style, Element* e) { - // Added to make room for our arrow. + // Added to make room for our arrow and make the touch target less cramped. + style->setPaddingLeft(Length(RenderSkinCombo::padding(), Fixed)); + style->setPaddingTop(Length(RenderSkinCombo::padding(), Fixed)); + style->setPaddingBottom(Length(RenderSkinCombo::padding(), Fixed)); style->setPaddingRight(Length(RenderSkinCombo::extraWidth(), Fixed)); } |