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

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

Issue 1862563002: Skip shadow hosts with negative tabindex in focus navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor 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
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/focus-with-negative-index.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e7db0e88b3fb5fee07ff302a4ae00a7ad489d90b..24183898766552d15dcd2820c11909263f801ad6 100644
--- a/third_party/WebKit/Source/core/page/FocusController.cpp
+++ b/third_party/WebKit/Source/core/page/FocusController.cpp
@@ -373,7 +373,7 @@ inline bool isNonFocusableShadowHost(const Element& element)
inline bool isNonKeyboardFocusableShadowHost(const Element& element)
{
- return isShadowHostWithoutCustomFocusLogic(element) && !element.isKeyboardFocusable();
+ return isShadowHostWithoutCustomFocusLogic(element) && !(element.shadowRootIfV1() ? element.isFocusable() : element.isKeyboardFocusable());
}
inline bool isKeyboardFocusableShadowHost(const Element& element)
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/focus-with-negative-index.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698