Index: Source/core/html/HTMLAnchorElement.cpp |
diff --git a/Source/core/html/HTMLAnchorElement.cpp b/Source/core/html/HTMLAnchorElement.cpp |
index 8aa7f7eac91f6f2094d75822d3579fb6c6128a9e..bcd54e9291276c8554e90c1b7db002f7e2f16461 100644 |
--- a/Source/core/html/HTMLAnchorElement.cpp |
+++ b/Source/core/html/HTMLAnchorElement.cpp |
@@ -84,12 +84,15 @@ bool HTMLAnchorElement::supportsFocus() const |
return isLink() || HTMLElement::supportsFocus(); |
} |
+bool HTMLAnchorElement::shouldShowFocusRingOnMouseFocus() const |
+{ |
+ return HTMLElement::supportsFocus(); |
+} |
+ |
bool HTMLAnchorElement::isMouseFocusable() const |
{ |
- // Links are focusable by default, but only allow links with tabindex or contenteditable to be mouse focusable. |
- // https://bugs.webkit.org/show_bug.cgi?id=26856 |
if (isLink()) |
- return HTMLElement::supportsFocus(); |
+ return supportsFocus(); |
return HTMLElement::isMouseFocusable(); |
} |