Index: third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
index 790628cb60d15a2d56a1d2318cc1564535388722..f8cd9b34f267422841fc9e5f4abebe1cad81ea32 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
@@ -256,11 +256,10 @@ void HTMLAnchorElement::attributeChanged( |
HTMLElement::attributeChanged(params); |
if (params.reason != AttributeModificationReason::kDirectly) |
return; |
- if (params.name != hrefAttr && isLink()) |
+ if (params.name != hrefAttr) |
return; |
- if (adjustedFocusedElementInTreeScope() != this) |
- return; |
- blur(); |
+ if (!isLink() && adjustedFocusedElementInTreeScope() == this) |
+ blur(); |
} |
void HTMLAnchorElement::parseAttribute( |