Index: Source/core/html/HTMLAnchorElement.cpp |
diff --git a/Source/core/html/HTMLAnchorElement.cpp b/Source/core/html/HTMLAnchorElement.cpp |
index 6e688ce98c887adc5fcced2ccfed385ffbc58a0f..5fa5a2b23b2b4897a611a042d475cf9f94e4c652 100644 |
--- a/Source/core/html/HTMLAnchorElement.cpp |
+++ b/Source/core/html/HTMLAnchorElement.cpp |
@@ -163,23 +163,14 @@ bool HTMLAnchorElement::isMouseFocusable() const |
bool HTMLAnchorElement::isKeyboardFocusable() const |
{ |
- if (!isLink()) |
- return HTMLElement::isKeyboardFocusable(); |
- |
- if (!isFocusable()) |
- return false; |
- |
- Page* page = document().page(); |
- if (!page) |
- return false; |
- |
- if (!page->chrome().client().tabsToLinks()) |
- return false; |
- |
- if (isInCanvasSubtree()) |
- return true; |
- |
- return hasNonEmptyBoundingBox(); |
+ if (isLink()) { |
+ Page* page = document().page(); |
+ if (!page) |
+ return false; |
+ if (!page->chrome().client().tabsToLinks()) |
+ return false; |
+ } |
+ return HTMLElement::isKeyboardFocusable(); |
} |
static void appendServerMapMousePosition(StringBuilder& url, Event* event) |