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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/focus-method-with-delegatesFocus.html

Issue 1408443003: Add Element.attachShadow under the ShadowDOMV1 runtime flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rewrite a test Created 5 years, 2 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/LayoutTests/fast/dom/shadow/focus-method-with-delegatesFocus.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/focus-method-with-delegatesFocus.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/focus-method-with-delegatesFocus.html
index a4674ab45c226cf8d0ee70077a1d24fa7ff82e97..8efe7163a9b1b401f1fdb0badd1241098c58d451 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/focus-method-with-delegatesFocus.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/focus-method-with-delegatesFocus.html
@@ -29,7 +29,7 @@ function registerShadow(templateId, tagName) {
var proto = Object.create(HTMLElement.prototype);
proto.createdCallback = function() {
var delegatesFocus = this.hasAttribute('delegatesFocus');
- this.createShadowRoot({'delegatesFocus': delegatesFocus}).appendChild(
+ this.attachShadow({'delegatesFocus': delegatesFocus}).appendChild(
document.importNode(template.content, true));
};
document.registerElement(tagName, { prototype: proto });

Powered by Google App Engine
This is Rietveld 408576698