#include "RenderThemeAndroid.h"
#include "Color.h"
-#include "FormControlElement.h"
+#include "Element.h"
#include "GraphicsContext.h"
#include "PlatformGraphicsContext.h"
#include "RenderSkinAndroid.h"
{
// 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.
// 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);
}