summaryrefslogtreecommitdiffstats
path: root/WebCore/wml/WMLFormControlElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/wml/WMLFormControlElement.cpp')
-rw-r--r--WebCore/wml/WMLFormControlElement.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/WebCore/wml/WMLFormControlElement.cpp b/WebCore/wml/WMLFormControlElement.cpp
index f849ac8..93ffbda 100644
--- a/WebCore/wml/WMLFormControlElement.cpp
+++ b/WebCore/wml/WMLFormControlElement.cpp
@@ -39,6 +39,11 @@ WMLFormControlElement::~WMLFormControlElement()
{
}
+bool WMLFormControlElement::supportsFocus() const
+{
+ return true;
+}
+
bool WMLFormControlElement::isFocusable() const
{
if (!renderer() || !renderer()->isBox())
@@ -46,14 +51,10 @@ bool WMLFormControlElement::isFocusable() const
if (toRenderBox(renderer())->size().isEmpty())
return false;
-
- if (RenderStyle* style = renderer()->style()) {
- if (style->visibility() != VISIBLE)
- return false;
- }
-
- return true;
+
+ return WMLElement::isFocusable();
}
+
void WMLFormControlElement::attach()
{