diff options
author | Andrei Popescu <andreip@google.com> | 2009-08-17 12:07:12 +0100 |
---|---|---|
committer | Andrei Popescu <andreip@google.com> | 2009-08-17 12:09:43 +0100 |
commit | 475b74acddb33a28347804dbb02a585517595f31 (patch) | |
tree | b3bc3b9d80c392b65b7de5bbebe1f0b3dcc5dfff /WebCore | |
parent | aab18b041d866fb1f13900ce28aef8fb17af9b4f (diff) | |
download | external_webkit-475b74acddb33a28347804dbb02a585517595f31.zip external_webkit-475b74acddb33a28347804dbb02a585517595f31.tar.gz external_webkit-475b74acddb33a28347804dbb02a585517595f31.tar.bz2 |
Fix RenderThemeAndroid following the changes in http://trac.webkit.org/changeset/43367/trunk/WebCore/dom/Element.h
Diffstat (limited to 'WebCore')
-rw-r--r-- | WebCore/platform/android/RenderThemeAndroid.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/WebCore/platform/android/RenderThemeAndroid.cpp b/WebCore/platform/android/RenderThemeAndroid.cpp index a1e8bf6..b81d377 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<Element*>(node)); - if (formControlElement && !formControlElement->isEnabled()) + Element* formControlElement = static_cast<Element*>(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); } |