OSDN Git Service

Re-enable using the right foreground color now we use the right background
authorLeon Clarke <leonclarke@google.com>
Mon, 5 Oct 2009 14:32:12 +0000 (15:32 +0100)
committerLeon Clarke <leonclarke@google.com>
Mon, 5 Oct 2009 14:32:12 +0000 (15:32 +0100)
color.

WebCore/platform/android/RenderThemeAndroid.cpp

index 0f419f5..aae8c48 100644 (file)
@@ -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