From 475b74acddb33a28347804dbb02a585517595f31 Mon Sep 17 00:00:00 2001 From: Andrei Popescu Date: Mon, 17 Aug 2009 12:07:12 +0100 Subject: [PATCH] Fix RenderThemeAndroid following the changes in http://trac.webkit.org/changeset/43367/trunk/WebCore/dom/Element.h --- WebCore/platform/android/RenderThemeAndroid.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/WebCore/platform/android/RenderThemeAndroid.cpp b/WebCore/platform/android/RenderThemeAndroid.cpp index a1e8bf61d..b81d377ea 100644 --- a/WebCore/platform/android/RenderThemeAndroid.cpp +++ b/WebCore/platform/android/RenderThemeAndroid.cpp @@ -27,7 +27,7 @@ #include "RenderThemeAndroid.h" #include "Color.h" -#include "FormControlElement.h" +#include "Element.h" #include "GraphicsContext.h" #include "PlatformGraphicsContext.h" #include "RenderSkinAndroid.h" @@ -181,8 +181,8 @@ bool RenderThemeAndroid::paintButton(RenderObject* obj, const RenderObject::Pain { // If it is a disabled button, simply paint it to the master picture. Node* node = obj->node(); - FormControlElement* formControlElement = toFormControlElement(static_cast(node)); - if (formControlElement && !formControlElement->isEnabled()) + Element* formControlElement = static_cast(node); + if (formControlElement && !formControlElement->isEnabledFormControl()) RenderSkinButton::Draw(getCanvasFromInfo(info), rect, RenderSkinAndroid::kDisabled); else // Store all the important information in the platform context. @@ -256,8 +256,8 @@ static void adjustMenuListStyleCommon(RenderStyle* style, Element* e) // Code copied from RenderThemeMac.mm // Makes sure that the text shows up on our treatment bool isEnabled = true; - if (FormControlElement* formControlElement = toFormControlElement(e)) - isEnabled = formControlElement->isEnabled(); + if (e) + isEnabled = e->isEnabledFormControl(); style->setColor(isEnabled ? Color::black : Color::darkGray); } -- 2.11.0