summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-10-01 05:36:34 -0400
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-10-01 05:36:34 -0400
commit8b101d480f638c14f332d4be73a74925bfed1d82 (patch)
treedc76673f3ef10079419f664badff73b5b3118e9d /WebCore
parentb704d4ab4f7270d5969955190c303ee9a3484830 (diff)
parent02b5ebb30fc88967b843818cbc61987f9dc9685d (diff)
downloadexternal_webkit-8b101d480f638c14f332d4be73a74925bfed1d82.zip
external_webkit-8b101d480f638c14f332d4be73a74925bfed1d82.tar.gz
external_webkit-8b101d480f638c14f332d4be73a74925bfed1d82.tar.bz2
Merge change Ib6cfb9c2 into eclair
* changes: Don't extend the arrow asset of the combo box over the text, so that the real background color is used. Re-instate using the correct color for the text.
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/platform/android/RenderThemeAndroid.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/WebCore/platform/android/RenderThemeAndroid.cpp b/WebCore/platform/android/RenderThemeAndroid.cpp
index 0f419f5..51f404e 100644
--- a/WebCore/platform/android/RenderThemeAndroid.cpp
+++ b/WebCore/platform/android/RenderThemeAndroid.cpp
@@ -235,7 +235,7 @@ bool RenderThemeAndroid::paintTextArea(RenderObject* obj, const RenderObject::Pa
{
if (obj->isMenuList())
return paintCombo(obj, info, rect);
- return true;
+ return true;
}
void RenderThemeAndroid::adjustSearchFieldStyle(CSSStyleSelector*, RenderStyle* style, Element*) const
@@ -245,7 +245,7 @@ void RenderThemeAndroid::adjustSearchFieldStyle(CSSStyleSelector*, RenderStyle*
bool RenderThemeAndroid::paintSearchField(RenderObject*, const RenderObject::PaintInfo&, const IntRect&)
{
- return true;
+ return true;
}
void RenderThemeAndroid::adjustListboxStyle(CSSStyleSelector*, RenderStyle* style, Element*) const
@@ -259,12 +259,6 @@ static void adjustMenuListStyleCommon(RenderStyle* style, Element* e)
{
// Added to make room for our arrow.
style->setPaddingRight(Length(RenderSkinCombo::extraWidth(), Fixed));
- // Code copied from RenderThemeMac.mm
- // Makes sure that the text shows up on our treatment
- bool isEnabled = true;
- if (e)
- isEnabled = e->isEnabledFormControl();
- style->setColor(isEnabled ? Color::black : Color::darkGray);
}
void RenderThemeAndroid::adjustMenuListStyle(CSSStyleSelector*, RenderStyle* style, Element* e) const