summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2009-10-09 16:29:07 -0400
committerLeon Scroggins <scroggo@google.com>2009-10-09 16:29:07 -0400
commitb361e5832299c8a9443a4752f3d0a0c445f85f5c (patch)
tree37a91e1556f3bd8ad10a7de1b2ffa57c5158aa84 /WebCore
parentc312eb9024855284dd6ff7f99f0462d345f089bb (diff)
downloadexternal_webkit-b361e5832299c8a9443a4752f3d0a0c445f85f5c.zip
external_webkit-b361e5832299c8a9443a4752f3d0a0c445f85f5c.tar.gz
external_webkit-b361e5832299c8a9443a4752f3d0a0c445f85f5c.tar.bz2
Allow <select> boxes to draw larger.
Fix http://b/issue?id=2159794
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/platform/android/RenderThemeAndroid.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/WebCore/platform/android/RenderThemeAndroid.cpp b/WebCore/platform/android/RenderThemeAndroid.cpp
index aae8c48..929d9d8 100644
--- a/WebCore/platform/android/RenderThemeAndroid.cpp
+++ b/WebCore/platform/android/RenderThemeAndroid.cpp
@@ -38,8 +38,6 @@
namespace WebCore {
-const int MAX_COMBO_HEIGHT = 20;
-
// Add a constant amount of padding to the textsize to get the final height
// of buttons, so that our button images are large enough to properly fit
// the text.
@@ -271,16 +269,8 @@ bool RenderThemeAndroid::paintCombo(RenderObject* obj, const RenderObject::Paint
{
if (obj->style() && !obj->style()->backgroundColor().alpha())
return true;
- Node* node = obj->node();
- int height = rect.height();
- int y = rect.y();
- // If the combo box is too large, leave it at its max height, and center it.
- if (height > MAX_COMBO_HEIGHT) {
- y += (height - MAX_COMBO_HEIGHT) >> 1;
- height = MAX_COMBO_HEIGHT;
- }
- return RenderSkinCombo::Draw(getCanvasFromInfo(info), node, rect.x(), y,
- rect.width(), height);
+ return RenderSkinCombo::Draw(getCanvasFromInfo(info), obj->node(), rect.x(),
+ rect.y(), rect.width(), rect.height());
}
bool RenderThemeAndroid::paintMenuList(RenderObject* obj, const RenderObject::PaintInfo& info, const IntRect& rect)