| 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 109e39247e5af320ef80af6f5cfb6cf572e2a62f..c119149450a21e70a0ec97ca14556550f89a5d50 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
|
| @@ -184,7 +184,7 @@ void HTMLAnchorElement::parseAttribute(const QualifiedName& name, const AtomicSt
|
| pseudoStateChanged(CSSSelector::PseudoVisited);
|
| pseudoStateChanged(CSSSelector::PseudoAnyLink);
|
| }
|
| - if (wasLink && !isLink() && treeScope().adjustedFocusedElement() == this) {
|
| + if (wasLink && !isLink() && treeScopeOrDocument().adjustedFocusedElement() == this) {
|
| // We might want to call blur(), but it's dangerous to dispatch
|
| // events here.
|
| document().setNeedsFocusedElementCheck();
|
|
|