Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(738)

Unified Diff: third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp

Issue 1885453002: Rename Node::treeScope() to Node::treeScopeOrDocument() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698