diff options
Diffstat (limited to 'WebCore/wml/WMLAElement.cpp')
-rw-r--r-- | WebCore/wml/WMLAElement.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/WebCore/wml/WMLAElement.cpp b/WebCore/wml/WMLAElement.cpp index 9c84193..074c371 100644 --- a/WebCore/wml/WMLAElement.cpp +++ b/WebCore/wml/WMLAElement.cpp @@ -73,17 +73,7 @@ void WMLAElement::parseMappedAttribute(MappedAttribute* attr) bool WMLAElement::supportsFocus() const { - return isFocusable() || (isLink() && document() && !document()->haveStylesheetsLoaded()); -} - -bool WMLAElement::isFocusable() const -{ - // FIXME: Even if we are not visible, we might have a child that is visible. - // Dave wants to fix that some day with a "has visible content" flag or the like. - if (!(isLink() && renderer() && renderer()->style()->visibility() == VISIBLE)) - return false; - - return true; + return isLink() || WMLElement::supportsFocus(); } bool WMLAElement::isMouseFocusable() const |