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

Unified Diff: third_party/WebKit/Source/core/page/FocusController.cpp

Issue 1883083002: Introduce Node::containingTreeScope(), which asserts that the node's root is a tree scope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip 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/page/FocusController.cpp
diff --git a/third_party/WebKit/Source/core/page/FocusController.cpp b/third_party/WebKit/Source/core/page/FocusController.cpp
index 42e6f3d80c8630ca756b7d8216f3c31352b41323..e18a6892c4773ae8741a2db213018d5f5b5ef15e 100644
--- a/third_party/WebKit/Source/core/page/FocusController.cpp
+++ b/third_party/WebKit/Source/core/page/FocusController.cpp
@@ -236,7 +236,7 @@ ScopedFocusNavigation ScopedFocusNavigation::createFor(const Element& current)
return ScopedFocusNavigation(*slot, &current);
if (HTMLSlotElement* slot = ScopedFocusNavigation::findFallbackScopeOwnerSlot(current))
return ScopedFocusNavigation(*slot, &current);
- return ScopedFocusNavigation(current.treeScope(), &current);
+ return ScopedFocusNavigation(current.rootTreeScope(), &current);
}
ScopedFocusNavigation ScopedFocusNavigation::createForDocument(Document& document)

Powered by Google App Engine
This is Rietveld 408576698