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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/resources/shadow-dom.js

Issue 2432293002: Fix focus navigation for nested slot case (Closed)
Patch Set: More references Created 4 years, 1 month 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/LayoutTests/shadow-dom/resources/shadow-dom.js
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/resources/shadow-dom.js b/third_party/WebKit/LayoutTests/shadow-dom/resources/shadow-dom.js
index f9125bc7f293a976ca38dc2c3cf2ae9992efc97e..9536b612a4ee66708a9c0ed2cb1aeb08e770b5a2 100644
--- a/third_party/WebKit/LayoutTests/shadow-dom/resources/shadow-dom.js
+++ b/third_party/WebKit/LayoutTests/shadow-dom/resources/shadow-dom.js
@@ -19,13 +19,15 @@ function convertTemplatesToShadowRootsWithin(node) {
for (var i = 0; i < nodes.length; ++i) {
var template = nodes[i];
var mode = template.getAttribute("data-mode");
+ var delegatesFocus = template.hasAttribute("data-delegatesFocus");
var parent = template.parentNode;
parent.removeChild(template);
var shadowRoot;
if (!mode || mode == 'v0'){
shadowRoot = parent.createShadowRoot();
} else {
- shadowRoot = parent.attachShadow({'mode': mode});
+ shadowRoot = parent.attachShadow({'mode': mode,
+ 'delegatesFocus': delegatesFocus});
}
var expose = template.getAttribute("data-expose-as");
if (expose)

Powered by Google App Engine
This is Rietveld 408576698