summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--third_party/WebKit/LayoutTests/TestExpectations1
-rw-r--r--third_party/WebKit/LayoutTests/editing/spelling/spellcheck-author-shadow-crash-expected.txt2
-rw-r--r--third_party/WebKit/LayoutTests/editing/spelling/spellcheck-author-shadow-crash.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/multiple-shadowroot-with-params-expected.txt10
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/multiple-shadowroot-with-params.html6
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/olderShadowRoot-expected.txt4
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/olderShadowRoot.html22
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/paint-input-range-crash.html10
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-disable-expected.txt33
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-disable.html7
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-distributed-nodes-expected.txt6
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-distributed-nodes.html9
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-inactive-expected.txt25
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-inactive.html21
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-embed-with-content-expected.html4
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-embed-with-content.html10
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-form-associated-element-useragent-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-form-associated-element-useragent.html47
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-appearance-expected.html36
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-appearance.html40
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-button-click-expected.txt20
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-button-click.html46
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-checkbox-expected.html28
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-checkbox.html70
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-color-expected.txt6
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-color.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-file-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-file.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-range-expected.txt6
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-range.html13
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-spellcheck-expected.txt2
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-spellcheck.html16
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-type-change-expected.txt16
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-type-change.html31
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-keygen-only-shadow-expected.html10
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-keygen-only-shadow.html16
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-keygen-without-shadow-expected.html7
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-keygen-without-shadow.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-media-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-media.html40
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-dynamic-expected.html13
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-dynamic.html27
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-expected.html13
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-multiple-expected.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-multiple.html27
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-redistribute-expected.html2
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-redistribute.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-with-style-expected.html30
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-with-style.html35
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-appearance-expected.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-appearance.html27
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-shadow-element-expected.html13
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-shadow-element.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-object-only-shadow-expected.html7
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-object-only-shadow.html11
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-object-with-content-expected.html4
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-object-with-content.html10
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-dynamic-expected.html12
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-dynamic.html29
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-expected.html13
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-multiple-expected.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-multiple.html26
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-redistribute-expected.html2
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-redistribute.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-with-style-expected.html33
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-with-style.html36
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-appearance-expected.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-appearance.html27
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-shadow-element-expected.html13
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-shadow-element.html21
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress.html21
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-select-only-shadow-expected.html11
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-select-only-shadow.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-textarea-without-shadow-expected.html7
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-textarea-without-shadow.html14
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowroot-host-expected.txt2
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/shadow/shadowroot-host.html5
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/shadow-host-div-with-text.html8
-rw-r--r--third_party/WebKit/LayoutTests/svg/dom/custom-elements-expected.html8
-rw-r--r--third_party/WebKit/LayoutTests/svg/dom/custom-elements.html27
-rw-r--r--third_party/WebKit/Source/core/dom/Element.cpp13
82 files changed, 39 insertions, 1396 deletions
diff --git a/third_party/WebKit/LayoutTests/TestExpectations b/third_party/WebKit/LayoutTests/TestExpectations
index 7869013..e28861b 100644
--- a/third_party/WebKit/LayoutTests/TestExpectations
+++ b/third_party/WebKit/LayoutTests/TestExpectations
@@ -475,6 +475,7 @@ crbug.com/505364 imported/web-platform-tests/shadow-dom/untriaged/events/retarge
crbug.com/505364 imported/web-platform-tests/shadow-dom/untriaged/html-elements-and-their-shadow-trees/test-001.html [ Failure Crash ]
crbug.com/505364 imported/web-platform-tests/shadow-dom/untriaged/html-elements-and-their-shadow-trees/test-002.html [ Failure ]
crbug.com/505364 imported/web-platform-tests/shadow-dom/untriaged/html-elements-and-their-shadow-trees/test-003.html [ Failure ]
+crbug.com/505364 imported/web-platform-tests/shadow-dom/untriaged/html-elements-and-their-shadow-trees/test-004.html [ Failure ]
crbug.com/505364 imported/web-platform-tests/shadow-dom/untriaged/html-elements-in-shadow-trees/html-forms/test-003.html [ Failure ]
crbug.com/505364 imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/custom-pseudo-elements/test-001.html [ Failure ]
crbug.com/505364 imported/web-platform-tests/shadow-dom/untriaged/styles/css-variables/test-001.html [ Failure ]
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-author-shadow-crash-expected.txt b/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-author-shadow-crash-expected.txt
deleted file mode 100644
index 8e41238..0000000
--- a/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-author-shadow-crash-expected.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
-PASS if not crashed
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-author-shadow-crash.html b/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-author-shadow-crash.html
deleted file mode 100644
index 64e8252..0000000
--- a/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-author-shadow-crash.html
+++ /dev/null
@@ -1,20 +0,0 @@
-<!DOCTYPE html>
-<p>Please run within DRT or enable continuous spell checking and unified text checker</p>
-<input>
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-if (window.internals) {
- internals.setContinuousSpellCheckingEnabled(true);
- internals.settings.setUnifiedTextCheckerEnabled(true);
-}
-var input = document.querySelector('input');
-var shadowRoot = input.createShadowRoot();
-shadowRoot.appendChild(document.createElement('div'));
-input.contentEditable = true;
-// Focus to invoke spell checking.
-input.focus();
-document.body.textContent = 'PASS if not crashed';
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/multiple-shadowroot-with-params-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/shadow/multiple-shadowroot-with-params-expected.txt
index 90ca4b8..466842f 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/multiple-shadowroot-with-params-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/multiple-shadowroot-with-params-expected.txt
@@ -1,5 +1,4 @@
CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
-CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
This tests multiple shadow roots creation with createShadowRoot and mode parameter.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -16,19 +15,18 @@ PASS div.attachShadow({mode: "open"}) threw exception InvalidStateError: Failed
PASS div.attachShadow({mode: "closed"}) threw exception InvalidStateError: Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree..
PASS internals.youngestShadowRoot(div) is shadow1
PASS internals.shadowRootType(shadow1) is "OpenShadowRoot"
-PASS div.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts this type of shadow tree..
+PASS div.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts a v1 shadow tree..
PASS div.attachShadow({mode: "open"}) threw exception InvalidStateError: Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree..
PASS div.attachShadow({mode: "closed"}) threw exception InvalidStateError: Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree..
PASS internals.youngestShadowRoot(div) is shadow1
PASS internals.shadowRootType(shadow1) is "ClosedShadowRoot"
-PASS div.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts this type of shadow tree..
+PASS div.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts a v1 shadow tree..
PASS div.attachShadow({mode: "open"}) threw exception InvalidStateError: Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree..
PASS div.attachShadow({mode: "closed"}) threw exception InvalidStateError: Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree..
PASS internals.youngestShadowRoot(div) is shadow1
-V1 shadow root cannot be created on UA shadow root
+V0 shadow root cannot be created on UA shadow root
PASS internals.shadowRootType(internals.shadowRoot(input)) is "UserAgentShadowRoot"
-PASS internals.youngestShadowRoot(input) is shadow1
-PASS internals.shadowRootType(shadow1) is "V0ShadowRoot"
+PASS input.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts an user-agent shadow tree..
PASS input.attachShadow({mode: "open"}) threw exception NotSupportedError: Failed to execute 'attachShadow' on 'Element': This element does not support attachShadow.
PASS input.attachShadow({mode: "closed"}) threw exception NotSupportedError: Failed to execute 'attachShadow' on 'Element': This element does not support attachShadow.
PASS successfullyParsed is true
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/multiple-shadowroot-with-params.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/multiple-shadowroot-with-params.html
index 50f10a6..afb346d 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/multiple-shadowroot-with-params.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/multiple-shadowroot-with-params.html
@@ -59,12 +59,10 @@ shouldThrow('div.attachShadow({mode: "closed"})');
youngestShadowRootShouldBe('div', 'shadow1');
-debug('V1 shadow root cannot be created on UA shadow root');
+debug('V0 shadow root cannot be created on UA shadow root');
var input = document.createElement('input');
shouldBeUserAgentShadowRoot('internals.shadowRoot(input)');
-shadow1 = input.createShadowRoot();
-youngestShadowRootShouldBe('input', 'shadow1');
-shouldBeV0ShadowRoot('shadow1');
+shouldThrow('input.createShadowRoot()');
input = document.createElement('input');
shouldThrow('input.attachShadow({mode: "open"})');
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/olderShadowRoot-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/shadow/olderShadowRoot-expected.txt
index ec73a5c..9e779d5 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/olderShadowRoot-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/olderShadowRoot-expected.txt
@@ -1,5 +1,4 @@
CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
-CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
Tests ShadowRoot.olderShadowRoot property
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -16,10 +15,7 @@ PASS roots[0].olderShadowRoot is null
PASS roots[1].olderShadowRoot is roots[0]
PASS roots[6].olderShadowRoot is roots[5]
PASS root.olderShadowRoot is null
-PASS root.olderShadowRoot is null
-PASS root.olderShadowRoot is null
PASS roots[1].olderShadowRoot is roots[0]
-PASS root.olderShadowRoot is null
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/olderShadowRoot.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/olderShadowRoot.html
index 4517e7f..4e7dbfa 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/olderShadowRoot.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/olderShadowRoot.html
@@ -42,20 +42,7 @@ host = document.createElement('table');
root = host.createShadowRoot();
shouldBeNull('root.olderShadowRoot');
-// Cannot access a user-agent shadow
-
-host = document.createElement('details');
-root = host.createShadowRoot();
-shouldBeNull('root.olderShadowRoot');
-
-host = document.createElement('summary');
-document.body.appendChild(host);
-root = host.createShadowRoot();
-shouldBeNull('root.olderShadowRoot');
-host.remove();
-
// Cannot set property
-
host = document.createElement('span');
roots = createRoots(host, 2);
var donor = document.createElement('div');
@@ -63,15 +50,6 @@ donor.root = donor.createShadowRoot();
roots[1].olderShadowRoot = donor.root;
shouldBe('roots[1].olderShadowRoot', 'roots[0]');
-host = document.createElement('details');
-document.body.appendChild(host);
-root = host.createShadowRoot();
-donor = document.createElement('div');
-donor.root = donor.createShadowRoot();
-root.olderShadowRoot = donor.root;
-shouldBeNull('root.olderShadowRoot');
-host.remove();
-
successfullyParsed = true;
</script>
</body>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/paint-input-range-crash.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/paint-input-range-crash.html
deleted file mode 100644
index 94a99df..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/paint-input-range-crash.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-<input type=range list=foo><datalist id=foo></datalist>
-<script>
-test(function() {
- var input = document.querySelector('input');
- input.createShadowRoot().innerHTML = 'a';
-}, "Reproduction case for crbug.com/542614 (createShadowRoot on input with datalist)");
-</script>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-disable-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-disable-expected.txt
index 62ecfef..92acc03 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-disable-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-disable-expected.txt
@@ -1,5 +1,4 @@
CONSOLE WARNING: The <keygen> element is deprecated and will be removed in M54, around October 2016. See https://www.chromestatus.com/features/5716060992962560 for more details.
-CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
Tests to ensure that shadow element cannot be created in elements having dynamically created shadow root.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -13,44 +12,42 @@ A
PASS element.createShadowRoot() is not null
SECTION
PASS element.createShadowRoot() is not null
-INPUT
-PASS element.createShadowRoot() is not null
-APPLET
-PASS element.createShadowRoot() is not null
-EMBED
-PASS element.createShadowRoot() is not null
-OBJECT
-PASS element.createShadowRoot() is not null
g
PASS element.createShadowRoot() is not null
rect
PASS element.createShadowRoot() is not null
svg
PASS element.createShadowRoot() is not null
+INPUT
+PASS element.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts an user-agent shadow tree..
+EMBED
+PASS element.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts an user-agent shadow tree..
+OBJECT
+PASS element.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts an user-agent shadow tree..
AUDIO
-PASS element.createShadowRoot() threw exception HierarchyRequestError: Failed to execute 'createShadowRoot' on 'Element': Author-created shadow roots are disabled for this element..
+PASS element.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts an user-agent shadow tree..
VIDEO
-PASS element.createShadowRoot() threw exception HierarchyRequestError: Failed to execute 'createShadowRoot' on 'Element': Author-created shadow roots are disabled for this element..
+PASS element.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts an user-agent shadow tree..
SELECT
-PASS element.createShadowRoot() threw exception HierarchyRequestError: Failed to execute 'createShadowRoot' on 'Element': Author-created shadow roots are disabled for this element..
+PASS element.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts an user-agent shadow tree..
IMG
PASS element.createShadowRoot() threw exception HierarchyRequestError: Failed to execute 'createShadowRoot' on 'Element': Author-created shadow roots are disabled for this element..
TEXTAREA
-PASS element.createShadowRoot() threw exception HierarchyRequestError: Failed to execute 'createShadowRoot' on 'Element': Author-created shadow roots are disabled for this element..
+PASS element.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts an user-agent shadow tree..
IFRAME
PASS element.createShadowRoot() threw exception HierarchyRequestError: Failed to execute 'createShadowRoot' on 'Element': Author-created shadow roots are disabled for this element..
CANVAS
PASS element.createShadowRoot() threw exception HierarchyRequestError: Failed to execute 'createShadowRoot' on 'Element': Author-created shadow roots are disabled for this element..
METER
-PASS element.createShadowRoot() threw exception HierarchyRequestError: Failed to execute 'createShadowRoot' on 'Element': Author-created shadow roots are disabled for this element..
+PASS element.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts an user-agent shadow tree..
PROGRESS
-PASS element.createShadowRoot() threw exception HierarchyRequestError: Failed to execute 'createShadowRoot' on 'Element': Author-created shadow roots are disabled for this element..
+PASS element.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts an user-agent shadow tree..
KEYGEN
-PASS element.createShadowRoot() threw exception HierarchyRequestError: Failed to execute 'createShadowRoot' on 'Element': Author-created shadow roots are disabled for this element..
+PASS element.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts an user-agent shadow tree..
VIDEO
-PASS element.createShadowRoot() threw exception HierarchyRequestError: Failed to execute 'createShadowRoot' on 'Element': Author-created shadow roots are disabled for this element..
+PASS element.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts an user-agent shadow tree..
AUDIO
-PASS element.createShadowRoot() threw exception HierarchyRequestError: Failed to execute 'createShadowRoot' on 'Element': Author-created shadow roots are disabled for this element..
+PASS element.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts an user-agent shadow tree..
FIELDSET
PASS element.createShadowRoot() threw exception HierarchyRequestError: Failed to execute 'createShadowRoot' on 'Element': Author-created shadow roots are disabled for this element..
PASS successfullyParsed is true
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-disable.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-disable.html
index 9234c34..4d0994a 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-disable.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-disable.html
@@ -28,10 +28,6 @@ var elementsToSuccess = [
document.createElement('span'),
document.createElement('a'),
document.createElement('section'),
- document.createElement('input'),
- document.createElement('applet'),
- document.createElement('embed'),
- document.createElement('object'),
document.getElementById('g'),
document.getElementById('rect'),
document.getElementById('svg'),
@@ -39,6 +35,9 @@ var elementsToSuccess = [
// See crbug.com/234020 .
var elementsToFail = [
+ document.createElement('input'),
+ document.createElement('embed'),
+ document.createElement('object'),
document.createElement('audio'),
document.createElement('video'),
document.createElement('select'),
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-distributed-nodes-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-distributed-nodes-expected.txt
index 45f029f..d7621ea 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-distributed-nodes-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-distributed-nodes-expected.txt
@@ -1,5 +1,3 @@
-CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
-CONSOLE WARNING: <shadow> doesn't work for DETAILS element host.
CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
Tests for a shadow element's getDistributedNodes().
@@ -24,10 +22,6 @@ getDistributedNodes() for "host/shadow" should return [host-child]
PASS distributedNodes.length is expectedDistributedNodes.length
PASS distributedNodes.item(0) is getNodeInComposedTree(expectedDistributedNodes[0])
-getDistributedNodes() for "details//shadow" should return []
-PASS distributedNodes.length is expectedDistributedNodes.length
-Since shadow insertion points don't work for DETAILS elements, this causes a warning message.
-
getDistributedNodes() for "host//shadow" should return [host/older-child]
PASS distributedNodes.length is expectedDistributedNodes.length
PASS distributedNodes.item(0) is getNodeInComposedTree(expectedDistributedNodes[0])
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-distributed-nodes.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-distributed-nodes.html
index aada6d0..57ae956 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-distributed-nodes.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-distributed-nodes.html
@@ -62,15 +62,6 @@ prepareTree(
assertDistributedNodes('host/shadow', ['host-child']);
prepareTree(
- createDOM('details', {'id': 'details'},
- createShadowRoot(
- createDOM('shadow', {'id': 'shadow'})),
- createDOM('div', {'id': 'details-child'})));
-// A <detail> element has one UA shadow root.
-assertDistributedNodes('details//shadow', []);
-debug("Since shadow insertion points don't work for DETAILS elements, this causes a warning message.");
-
-prepareTree(
createDOM('div', {'id': 'host'},
createShadowRoot(
createDOM('div', {'id': 'older-child'})),
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-inactive-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-inactive-expected.txt
deleted file mode 100644
index 6dc9eb3..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-inactive-expected.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
-CONSOLE WARNING: <shadow> doesn't work for DETAILS element host.
-CONSOLE WARNING: <shadow> doesn't work for EMBED element host.
-CONSOLE WARNING: <shadow> doesn't work for INPUT element host.
-CONSOLE WARNING: <shadow> doesn't work for OBJECT element host.
-CONSOLE WARNING: <shadow> doesn't work for SUMMARY element host.
-We should not expose UA shadow nodes.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-details
-PASS root2.firstChild.getDistributedNodes().length is 0
-embed
-PASS root2.firstChild.getDistributedNodes().length is 0
-input
-PASS root2.firstChild.getDistributedNodes().length is 0
-object
-PASS root2.firstChild.getDistributedNodes().length is 0
-summary
-PASS root2.firstChild.getDistributedNodes().length is 0
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-inactive.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-inactive.html
deleted file mode 100644
index 6528e47..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-element-inactive.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE html>
-<body>
-<script src="../../../resources/js-test.js"></script>
-<script>
-description('We should not expose UA shadow nodes.');
-
-var elementNames = ['details', 'embed', 'input', 'object', 'summary'];
-var root2;
-elementNames.forEach(function(elementName) {
- debug(elementName);
- var target = document.createElement(elementName);
- document.body.appendChild(target);
- var root1 = target.createShadowRoot();
- root1.innerHTML = '<div><shadow></shadow></div>';
- root2 = root1.firstChild.createShadowRoot();
- root2.innerHTML = '<content select="*"></content>';
- shouldBe('root2.firstChild.getDistributedNodes().length', '0');
- document.body.removeChild(target);
-});
-</script>
-</body>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-embed-with-content-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-embed-with-content-expected.html
deleted file mode 100644
index a203467..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-embed-with-content-expected.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<!DOCTYPE html>
-<body>
-<span>Get Flash Player. Or Shockwave Player?</span>
-</body>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-embed-with-content.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-embed-with-content.html
deleted file mode 100644
index 0335109..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-embed-with-content.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<body>
-<embed src="non-existent.swf">
-<!-- EMBED elements can't have children. -->
-</embed>
-
-<script>
-document.querySelector('embed').createShadowRoot().innerHTML = 'Get Flash Player. <content select="*">Or Shockwave Player?</content>';
-</script>
-</body>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-form-associated-element-useragent-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-form-associated-element-useragent-expected.txt
deleted file mode 100644
index 0741b4c..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-form-associated-element-useragent-expected.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-CONSOLE WARNING: The <keygen> element is deprecated and will be removed in M54, around October 2016. See https://www.chromestatus.com/features/5716060992962560 for more details.
-CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
-CONSOLE WARNING: <shadow> doesn't work for KEYGEN element host.
-When a OpenShadowRoot is added, UserAgentShadowRoot should exists as the oldest Shadow Root.
-
-PASS oldestShadowRoot is not shadowRoot
-PASS youngerShadowRoot is shadowRoot
-PASS oldestShadowRoot is not shadowRoot
-PASS youngerShadowRoot is shadowRoot
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-form-associated-element-useragent.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-form-associated-element-useragent.html
deleted file mode 100644
index 10b8b5e..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-form-associated-element-useragent.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../../resources/js-test.js"></script>
-
-<p>When a OpenShadowRoot is added, UserAgentShadowRoot should exists as the oldest Shadow Root.</p>
-<div id='container'>
- <form>
- <select id='select'><option>hoge</option></select>
- <output id='output'></output>
- <keygen id='keygen'></keygen>
- </form>
-</div>
-<pre id='console'></pre>
-
-<script>
-var elems = [
- "select", "keygen"
-];
-
-var shadowRoot;
-var oldestShadowRoot;
-var youngerShadowRoot;
-function test()
-{
- if (window.internals)
- window.internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
- for (var i = 0; i < elems.length; ++i) {
- var host = document.getElementById(elems[i]);
- shadowRoot = host.createShadowRoot();
- shadowRoot.innerHTML = "<shadow></shadow>";
-
- oldestShadowRoot = internals.oldestShadowRoot(host);
- youngerShadowRoot = internals.youngerShadowRoot(oldestShadowRoot);
- shouldNotBe('oldestShadowRoot', 'shadowRoot');
- shouldBe('youngerShadowRoot', 'shadowRoot');
- }
-
- container.innerHTML = "";
-}
-
-test();
-var successfullyParsed = true;
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-appearance-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-appearance-expected.html
deleted file mode 100644
index 26ad870..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-appearance-expected.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<!DOCTYPE html>
-<body>
-<style>
-span {
- border: none;
- display: inline-block;
- font: -webkit-small-control;
- margin: 2px;
- padding: 2px;
- color: black;
- background-color: white;
-}
-.color {
- width: 44px;
- height: 23px;
-}
-.date {
- font-family: monospace;
-}
-.hidden {
- display: none;
-}
-</style>
-<div><span class="button">Shadow!Content</span></div>
-<div><span class="checkbox">Shadow!Content</span></div>
-<div><span class="color">Shadow!Content</span></div>
-<div><span class="date">Shadow!Content</span></div>
-<div><span class="file">Shadow!Content</span></div>
-<div><span class="hidden">Shadow!Content</span></div>
-<div><span class="number">Shadow!Content</span></div>
-<div><span class="radio">Shadow!Content</span></div>
-<div><span class="range">Shadow!Content</span></div>
-<div><span class="search">Shadow!Content</span></div>
-<div><span class="text" tabindex=0>Shadow!Content</span></div>
-<script>document.querySelector('.text').focus();</script>
-</body>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-appearance.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-appearance.html
deleted file mode 100644
index caafbf8..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-appearance.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<body>
-<style>
-input {
- -webkit-appearance: none;
- background-color: white;
- border: none;
- color: black;
- margin: 2px;
- padding: 2px;
- outline-offset: 0;
-}
-</style>
-<div><input type="button" value="button"></div>
-<div><input type="checkbox" value="checkbox"></div>
-<div><input type="color" value="#ff0000"></div>
-<div><input type="date" value="2013-09-05"></div>
-<div><input type="file"></div>
-<div><input type="hidden" value="hidden"></div>
-<div><input type="number" value="3.141592"></div>
-<div><input type="radio"></div>
-<div><input type="range"></div>
-<div><input type="search" value="search"></div>
-<div><input type="text" value="text" placeholder="placeholder"></div>
-<script>
-window.onload = function() {
- var inputs = document.querySelectorAll('input');
- for (var i = 0; i < inputs.length; ++i) {
- var contentSpan = document.createElement('span');
- contentSpan.textContent = 'Content';
- inputs[i].appendChild(contentSpan);
- inputs[i].createShadowRoot().innerHTML = '<span>Shadow!</span><content select="*"></content>';
- }
- var text = document.querySelector('input[type=text]');
- text.focus();
- text.value = 'updated';
- text.setRangeText('range', 0, 7);
-};
-</script>
-</body>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-button-click-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-button-click-expected.txt
deleted file mode 100644
index dd16520..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-button-click-expected.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
-CONSOLE WARNING: <shadow> doesn't work for INPUT element host.
-
-Make sure that mouse click on an input button with shadow nodes works.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Click on the padding area of the button:
-PASS clickCount is 1
-Click on the margin area of a shadow node:
-PASS clickCount is 1
-Click on the middle of a shadow node:
-PASS clickCount is 1
-Click on the original value text:
-PASS clickCount is 1
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-button-click.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-button-click.html
deleted file mode 100644
index 4785574..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-button-click.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<body>
-<script src="../../../resources/js-test.js"></script>
-
-<input type="button" value="Button" style="padding:10px; -webkit-appearance:none;" onclick="++clickCount">
-<div id=console></div>
-
-<script>
-description('Make sure that mouse click on an input button with shadow nodes works.');
-var clickCount = 0;
-var input = document.querySelector('input');
-var root = input.createShadowRoot();
-root.innerHTML = '<span style="margin:8px;">Foo</span><shadow></shadow><span>Bar</span>';
-var inputRect = input.getBoundingClientRect();
-var shadowNodeRect = root.firstChild.getBoundingClientRect();
-
-debug('Click on the padding area of the button:');
-eventSender.mouseMoveTo(inputRect.left + 3, inputRect.top + inputRect.height / 2);
-eventSender.mouseDown();
-eventSender.mouseUp();
-shouldBe('clickCount', '1');
-
-debug('Click on the margin area of a shadow node:');
-clickCount = 0;
-eventSender.mouseMoveTo(shadowNodeRect.left - 3, shadowNodeRect.top + shadowNodeRect.height / 2);
-eventSender.mouseDown();
-eventSender.mouseUp();
-shouldBe('clickCount', '1');
-
-debug('Click on the middle of a shadow node:');
-clickCount = 0;
-eventSender.mouseMoveTo(shadowNodeRect.left + shadowNodeRect.width / 2, shadowNodeRect.top + shadowNodeRect.height / 2);
-eventSender.mouseDown();
-eventSender.mouseUp();
-shouldBe('clickCount', '1');
-
-debug('Click on the original value text:');
-clickCount = 0;
-eventSender.mouseMoveTo(shadowNodeRect.right + 10, shadowNodeRect.top + shadowNodeRect.height / 2);
-eventSender.mouseDown();
-eventSender.mouseUp();
-shouldBe('clickCount', '1');
-</script>
-
-</body>
-
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-checkbox-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-checkbox-expected.html
deleted file mode 100644
index 007d63e..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-checkbox-expected.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<body>
-
-<form>
-<span id="cb1">&#x2714;</span>
-<input type="submit">
-</form>
-
-<style>
-#cb1 {
- -webkit-appearance: none;
- border: outset;
- padding: 2px;
- font-family: monospace;
- font-size: 20px;
- white-space: pre;
- width: 30px;
- height: 30px;
- color: red;
- display: inline-block;
- box-sizing: border-box;
-}
-
-#cb1:focus {
- outline: none;
-}
-</style>
-</body>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-checkbox.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-checkbox.html
deleted file mode 100644
index 2253ba1..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-checkbox.html
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html>
-<body>
-
-<form>
-<input type="checkbox" name="foo" id="cb1" value="Shadow">
-<input type="submit">
-</form>
-
-<style>
-#cb1 {
- -webkit-appearance: none;
- border: outset;
- padding: 2px;
- font-family: monospace;
- font-size: 20px;
- white-space: pre;
- width: 30px;
- height: 30px;
- margin: 0;
-}
-
-#cb1:focus {
- outline: none;
-}
-</style>
-<script>
-cb1.updateAppearance_ = function() {
- if (this.checked)
- this.root_.innerHTML = '<span style="color:red;">&#x2714;</span>';
- else
- this.root_.innerHTML = '<span> </span>';
-};
-
-cb1.init = function() {
- this.root_ = this.createShadowRoot();
- this.checked_ = this.hasAttribute('checked');
- this.updateAppearance_();
-
- this.addEventListener('DOMActivate', function() {
- this.checked = !cb1.checked;
- this.dispatchEvent(new CustomEvent('change', true, false));
- }, false);
-
- this.__defineSetter__('checked', function(value) {
- this.checked_ = !!value;
- this.updateAppearance_();
- // FIXME: We'd like to update HTMLInputElement.prototype.checked, but it
- // seems there are no ways to do it. Updating 'checked' HTML attribute
- // (the default value) works for form submission because the checkbox is
- // never dirty.
- if (this.checked_)
- this.setAttribute('checked', '');
- else
- this.removeAttribute('checked', '');
- });
-
- this.__defineGetter__('checked', function() { return this.checked_; });
-};
-
-cb1.init();
-
-window.onload = function() {
- if (!window.eventSender)
- return;
- eventSender.mouseMoveTo(cb1.offsetLeft + 10, cb1.offsetTop + 10);
- eventSender.mouseDown();
- eventSender.mouseUp();
-};
-</script>
-</body>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-color-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-color-expected.txt
deleted file mode 100644
index b93c86e..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-color-expected.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
-PASS not crashed.
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-color.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-color.html
deleted file mode 100644
index 1f24f38..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-color.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../../resources/js-test.js"></script>
-<script src="../../forms/resources/common.js"></script>
-<input id="target" type="color" value="#000000" onclick="this.createShadowRoot()">
-<script>
-if (window.eventSender) {
- clickElement(target);
- internals.selectColorInColorChooser(target, '#ffffff');
- target.style.display = 'none';
- testPassed('not crashed.');
-} else {
- debug('Manual test instruction: Click the color input, and choose a color. PASS if the renderer was not crashed.');
-}
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-file-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-file-expected.txt
deleted file mode 100644
index 70dcd99..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-file-expected.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
-Mock: Opening a file chooser.
-Clicking on a file control should open a file chooser dialog even if it has author ShadowRoots. This test requires testRunner, and should open the file chooser dialog just once.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-file.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-file.html
deleted file mode 100644
index b245a04..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-file.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<!DOCTYPE html>
-<body>
-<script src="../../../resources/js-test.js"></script>
-<input type="file">
-<script>
-description('Clicking on a file control should open a file chooser dialog even if it has author ShadowRoots. This test requires testRunner, and should open the file chooser dialog just once.');
-var file = document.querySelector('input');
-var root = file.createShadowRoot();
-root.innerHTML = '<span>Click to choose a file</span>';
-eventSender.mouseMoveTo(file.offsetLeft + 8, file.offsetTop + 8);
-eventSender.mouseDown();
-eventSender.mouseUp();
-
-file.addEventListener('DOMActivate', function(event) { event.preventDefault(); }, false);
-eventSender.mouseDown();
-eventSender.mouseUp();
-</script>
-</body>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-range-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-range-expected.txt
deleted file mode 100644
index b93c86e..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-range-expected.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
-PASS not crashed.
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-range.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-range.html
deleted file mode 100644
index df2b393..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-range.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../../resources/js-test.js"></script>
-<input id="target" type="range">
-<script>
-var input = document.querySelector('#target');
-input.createShadowRoot();
-input.valueAsNumber = 1;
-testPassed('not crashed.');
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-spellcheck-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-spellcheck-expected.txt
deleted file mode 100644
index 5fcf00a..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-spellcheck-expected.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
-PASS if this was not crashed.
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-spellcheck.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-spellcheck.html
deleted file mode 100644
index cb82e0b..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-spellcheck.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<!DOCTYPE html>
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-if (window.internals)
- internals.settings.setUnifiedTextCheckerEnabled(true);
-onload = function() {
- var myShadowRoot = document.getElementById('sample').createShadowRoot();
- var myShadowElement = document.createElement('defs');
- myShadowElement.setAttribute('contenteditable', 'true');
- myShadowRoot.appendChild(myShadowElement);
- myShadowElement.focus();
- document.body.innerHTML = 'PASS if this was not crashed.';
-}
-</script>
-<input id="sample">
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-type-change-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-type-change-expected.txt
deleted file mode 100644
index e22e8f5..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-type-change-expected.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
-Test if changing input type keeps author ShadowRoot content.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS initialWidth is not 0
-PASS widthWithShadow is not initialWidth
-PASS input1.type = "hidden"; input1.offsetWidth is 0
-PASS input1.type = "datetime-local"; input1.offsetWidth is widthWithShadow
-PASS input1.type = "range"; input1.value is "50"
-PASS eventSender.keyDown("rightArrow"); input1.value is "50"
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-type-change.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-type-change.html
deleted file mode 100644
index 31c150f..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-input-type-change.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<body>
-<script src="../../../resources/js-test.js"></script>
-<style>
-input, input[type="datetime-local"] {
- padding: 0;
- border: none;
- display: inilne-block;
- font-family: monospace;
-}
-</style>
-<input type="email">
-<script>
-description('Test if changing input type keeps author ShadowRoot content.');
-
-var input1 = document.querySelector('input');
-var initialWidth = input1.offsetWidth;
-shouldNotBe('initialWidth', '0');
-
-var root = input1.createShadowRoot();
-root.innerHTML = '<span>a</span>';
-var widthWithShadow = input1.offsetWidth;
-shouldNotBe('widthWithShadow', 'initialWidth');
-
-shouldBe('input1.type = "hidden"; input1.offsetWidth', '0');
-shouldBe('input1.type = "datetime-local"; input1.offsetWidth', 'widthWithShadow');
-shouldBeEqualToString('input1.type = "range"; input1.value', '50');
-input1.focus();
-shouldBeEqualToString('eventSender.keyDown("rightArrow"); input1.value', '50');
-</script>
-</body>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-keygen-only-shadow-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-keygen-only-shadow-expected.html
deleted file mode 100644
index b1fd793..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-keygen-only-shadow-expected.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-
-<p>When the AuthorShadowDOM has only a shadow element, this should be rendered like no Shadow DOM is added.</p>
-<form>
- <keygen></keygen>
-</form>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-keygen-only-shadow.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-keygen-only-shadow.html
deleted file mode 100644
index e9a2cec..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-keygen-only-shadow.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-
-<p>When the AuthorShadowDOM has only a shadow element, this should be rendered like no Shadow DOM is added.</p>
-<form>
- <keygen id="host"></keygen>
-</form>
-
-<script>
-var shadowRoot = host.createShadowRoot();
-var shadow = document.createElement('shadow');
-shadowRoot.appendChild(shadow);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-keygen-without-shadow-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-keygen-without-shadow-expected.html
deleted file mode 100644
index d2eb840..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-keygen-without-shadow-expected.html
+++ /dev/null
@@ -1,7 +0,0 @@
-<!DOCTYPE html>
-
-<p>When the AuthorShadowDOM does not have a Shadow DOM, the content won't be rendered.</p>
-<form>
- <div style="display: inline-block; width: 100px; height:30px; margin: 0; padding: 0; border: 0"></div>
- foobar
-</form>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-keygen-without-shadow.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-keygen-without-shadow.html
deleted file mode 100644
index 55f1067..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-keygen-without-shadow.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-
-<p>When the AuthorShadowDOM does not have a Shadow DOM, the content won't be rendered.</p>
-<form>
- <keygen id="host" style="width: 100px; height:30px; margin: 0; padding: 0; border: 0"></keygen>
- foobar
-</form>
-
-<script>
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-var shadowRoot = host.createShadowRoot();
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-media-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-media-expected.txt
deleted file mode 100644
index ef5ea8c..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-media-expected.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
-CONSOLE WARNING: <shadow> doesn't work for VIDEO element host.
-CONSOLE WARNING: <shadow> doesn't work for VIDEO element host.
-
-PASS shadowRootForVideoWithControls is youngerShadowRootForVideoWithControls
-PASS shadowRootForVideoWithControls is not oldestShadowRootForVideoWithControls
-PASS shadowRootForVideoWithoutControls is youngerShadowRootForVideoWithoutControls
-PASS shadowRootForVideoWithoutControls is not oldestShadowRootForVideoWithoutControls
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-media.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-media.html
deleted file mode 100644
index 067c391..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-media.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../../resources/js-test.js"></script>
-
-<div id="container">
-<video id='videoWithControls' controls width="320" height="240"></video>
-<video id='videoWithoutControls' width="320" height="240"></video>
-</div>
-<pre id="console"></pre>
-
-<script>
-function addShadowDOM(host) {
- var shadowRoot = host.createShadowRoot();
- shadowRoot.innerHTML = "<div style='margin: 10px'><shadow></shadow></div>"
- return shadowRoot;
-}
-
-if (window.internals)
- window.internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-var shadowRootForVideoWithControls = addShadowDOM(videoWithControls);
-var oldestShadowRootForVideoWithControls = internals.oldestShadowRoot(videoWithControls);
-var youngerShadowRootForVideoWithControls = internals.youngerShadowRoot(oldestShadowRootForVideoWithControls);
-
-var shadowRootForVideoWithoutControls = addShadowDOM(videoWithoutControls);
-var oldestShadowRootForVideoWithoutControls = internals.oldestShadowRoot(videoWithoutControls);
-var youngerShadowRootForVideoWithoutControls = internals.youngerShadowRoot(oldestShadowRootForVideoWithoutControls);
-
-
-shouldBe("shadowRootForVideoWithControls", "youngerShadowRootForVideoWithControls");
-shouldNotBe("shadowRootForVideoWithControls", "oldestShadowRootForVideoWithControls");
-shouldBe("shadowRootForVideoWithoutControls", "youngerShadowRootForVideoWithoutControls");
-shouldNotBe("shadowRootForVideoWithoutControls", "oldestShadowRootForVideoWithoutControls");
-
-var successfullyParsed = true;
-</script>
-</body>
-</html>
-
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-dynamic-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-dynamic-expected.html
deleted file mode 100644
index 40e81ad..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-dynamic-expected.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <link rel="stylesheet" href="resources/replaced-element-styles.css">
-</head>
-<body>
-
-<div id="container">
- <div class="meter-like"><span>(after)</span></div>
-</div>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-dynamic.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-dynamic.html
deleted file mode 100644
index cedab8d..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-dynamic.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-
-<div id="container">
- <meter id="host" min="0" max="100" value="50"></meter>
-</div>
-
-<script>
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-if (window.testRunner)
- testRunner.waitUntilDone();
-
-var shadowRoot = host.createShadowRoot();
-shadowRoot.innerHTML = "<shadow></shadow><span>(after)</span>";
-
-setTimeout(function() {
- host.setAttribute('value', 30);
- if (window.testRunner)
- testRunner.notifyDone();
-}, 0);
-</script>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-expected.html
deleted file mode 100644
index 40e81ad..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-expected.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <link rel="stylesheet" href="resources/replaced-element-styles.css">
-</head>
-<body>
-
-<div id="container">
- <div class="meter-like"><span>(after)</span></div>
-</div>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-multiple-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-multiple-expected.html
deleted file mode 100644
index 3bc499d..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-multiple-expected.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <link rel="stylesheet" href="resources/replaced-element-styles.css">
-</head>
-<body>
-
-<div id="container">
- <div class="meter-like">
- <div style="margin: 0 10px 0 10px; height: 1em; width: 5em;">
- <span>(after)</span>
- </div>
- </div>
-</div>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-multiple.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-multiple.html
deleted file mode 100644
index 3fe8a6d..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-multiple.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<style>
-/* We have to write this for now. Please see Bug 92455. */
-meter::-webkit-meter-inner-element {
- -webkit-appearance: meter;
-}
-</style>
-
-<div id="container">
- <meter id="host" min="0" max="100" value="50"></meter>
-</div>
-
-<script>
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-var shadowRoot = host.createShadowRoot();
-shadowRoot.innerHTML = "<shadow></shadow><span>(after)</span>";
-
-var younger = host.createShadowRoot();
-younger.innerHTML = "<div style='margin: 0 10px 0 10px; height: 1em; width: 5em;'><shadow></shadow></div>";
-</script>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-redistribute-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-redistribute-expected.html
deleted file mode 100644
index 7f9fe41..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-redistribute-expected.html
+++ /dev/null
@@ -1,2 +0,0 @@
-<!DOCTYPE html>
-<div>You should see no meter.</div>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-redistribute.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-redistribute.html
deleted file mode 100644
index 16e82a5..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-redistribute.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<style>
-meter {
- display: block;
- width: auto
-}
-</style>
-<meter id="host"></meter>
-<script>
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-document.body.offsetTop; // Force rendering with UA Shadow DOM.
-
-var root = host.createShadowRoot();
-root.innerHTML = "<div>You should see no meter.</div>";
-</script>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-with-style-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-with-style-expected.html
deleted file mode 100644
index 1585711..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-with-style-expected.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<style>
-div#wrapper {
- display: block;
- margin: 0;
- padding: 0;
- width: auto;
- height: 3em;
- vertical-align: 0;
-}
-
-meter {
- display: block;
- width: 15em;
- height: 3em;
-}
-</style>
-
-<div id="container">
- <div id="wrapper" class="meter-like">
- <div style="margin-left: 100px;">
- <span>(after)</span>
- </div>
- </div>
-</div>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-with-style.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-with-style.html
deleted file mode 100644
index 98334b0..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-with-style.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<style>
-meter {
- display: block;
- margin: 0;
- padding: 0;
- width: auto;
- height: 3em;
- vertical-align: 0;
-}
-
-meter::-webkit-meter-inner-element {
- -webkit-appearance: meter; /* We have to have this for now. Please see Bug 92455. */
- display: block;
- width: 15em;
- height: 3em;
-}
-</style>
-
-<div id="container">
- <meter id="host" min="0" max="100" value="50"></meter>
-</div>
-
-<script>
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-var shadowRoot = host.createShadowRoot();
-shadowRoot.innerHTML = "<div style='margin-left: 100px'><shadow></shadow><span>(after)</span></div>";
-</script>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-appearance-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-appearance-expected.html
deleted file mode 100644
index 52c6269..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-appearance-expected.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <link rel="stylesheet" href="resources/replaced-element-styles.css">
-</head>
-<body>
-
-<style>
-meter#meter {
- -webkit-appearance: none;
-}
-</style>
-<div id="container">
- <div class="meter-like"><span>(after)<span></div>
-</div>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-appearance.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-appearance.html
deleted file mode 100644
index d5da301..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-appearance.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <link rel="stylesheet" href="resources/replaced-element-styles.css">
-</head>
-<body>
-
-<style>
-meter {
- -webkit-appearance: none;
-}
-</style>
-
-<div id="container">
- <meter id="host" min="0" max="100" value="50"></meter>
-</div>
-
-<script>
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-var shadowRoot = host.createShadowRoot();
-shadowRoot.innerHTML = "<shadow></shadow><span>(after)</span>";
-</script>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-shadow-element-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-shadow-element-expected.html
deleted file mode 100644
index 76d2e26..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-shadow-element-expected.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <link rel="stylesheet" href="resources/replaced-element-styles.css">
-</head>
-<body>
-
-<div id="container">
- <div class="meter-like"><span>no progress</span></div>
-</div>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-shadow-element.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-shadow-element.html
deleted file mode 100644
index c26755e..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-shadow-element.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-
-<div id="container">
- <meter id="host" min="0" max="100" value="50"></meter>
-</div>
-
-<script>
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-var shadowRoot = host.createShadowRoot();
-shadowRoot.innerHTML = "<span>no progress</span>"
-</script>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter.html
deleted file mode 100644
index 9f2dbcf..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-meter.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-
-<div id="container">
- <meter id="host" min="0" max="100" value="50"></meter>
-</div>
-
-<script>
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-var shadowRoot = host.createShadowRoot();
-shadowRoot.innerHTML = "<shadow></shadow><span>(after)</span>";
-</script>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-object-only-shadow-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-object-only-shadow-expected.html
deleted file mode 100644
index a71fbbe..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-object-only-shadow-expected.html
+++ /dev/null
@@ -1,7 +0,0 @@
-<!DOCTYPE html>
-
-<p>When an author ShadowRoot has only a shadow element, this should be rendered like no content.</p>
-<form>
- <object style="width:0; height: 0; line-height: 0; display:block;"></object>
- <input id="submit" type="submit" value="Submit">
-</form>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-object-only-shadow.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-object-only-shadow.html
deleted file mode 100644
index 3173055..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-object-only-shadow.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-
-<p>When an author ShadowRoot has only a shadow element, this should be rendered like no content.</p>
-<form>
- <object id="host" data="../resources/apple.gif" type="image/gif"></object>
- <input id="submit" type="submit" value="Submit">
-</form>
-
-<script>
-document.getElementById('host').createShadowRoot().innerHTML = "<shadow></shadow>";
-</script>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-object-with-content-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-object-with-content-expected.html
deleted file mode 100644
index d773c4b..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-object-with-content-expected.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<!DOCTYPE html>
-<body>
-<span>Author Shadow <span>content</span></span>
-</body>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-object-with-content.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-object-with-content.html
deleted file mode 100644
index d2880a0..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-object-with-content.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<body>
-<object type="invalid-type" data="invalid-data">
-<div>Fallback</div> <span>content</span>
-</object>
-
-<script>
-document.querySelector('object').createShadowRoot().innerHTML = 'Author Shadow <content select="span"></content>';
-</script>
-</body>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-dynamic-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-dynamic-expected.html
deleted file mode 100644
index d8fbb86..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-dynamic-expected.html
+++ /dev/null
@@ -1,12 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <link rel="stylesheet" href="resources/replaced-element-styles.css">
-</head>
-<body>
-<div id="container">
- <div class="progress-like"><span>(after)</span></div>
-</div>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-dynamic.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-dynamic.html
deleted file mode 100644
index ed65cb75..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-dynamic.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <link rel="stylesheet" href="resources/replaced-element-styles.css">
-</head>
-<body>
-<div id="container">
- <progress id="host" min="0" max="100" value="50"></progress>
-</div>
-
-<script>
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-if (window.testRunner)
- testRunner.waitUntilDone();
-
-var shadowRoot = host.createShadowRoot();
-shadowRoot.innerHTML = "<shadow></shadow><span>(after)</span>";
-
-setTimeout(function() {
- host.setAttribute('value', 30);
- if (window.testRunner)
- testRunner.notifyDone();
-}, 0);
-</script>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-expected.html
deleted file mode 100644
index 2ee51b3..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-expected.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <link rel="stylesheet" href="resources/replaced-element-styles.css">
-</head>
-<body>
-
-<div id="container">
- <div class="progress-like"><span>(after)</span></div>
-</div>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-multiple-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-multiple-expected.html
deleted file mode 100644
index d608a61..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-multiple-expected.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <link rel="stylesheet" href="resources/replaced-element-styles.css">
-</head>
-<body>
-
-<div id="container">
- <div class="progress-like">
- <div style="margin: 0 10px 0 10px; height: 1em; width: 10em;">
- <span>(after)</span>
- </div>
- </div>
-</div>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-multiple.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-multiple.html
deleted file mode 100644
index 35c98be..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-multiple.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<style>
-/* We have to write this for now. Please see Bug 92455. */
-progress::-webkit-progress-inner-element {
- -webkit-appearance: progress-bar;
-}
-</style>
-<div id="container">
- <progress id="host" min="0" max="100" value="50"></progress>
-</div>
-
-<script>
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-var shadowRoot = host.createShadowRoot();
-shadowRoot.innerHTML = "<shadow></shadow><span>(after)</span>";
-
-var younger = host.createShadowRoot();
-younger.innerHTML = "<div style='margin: 0 10px 0 10px; height: 1em; width: 10em;'><shadow></shadow></div>";
-</script>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-redistribute-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-redistribute-expected.html
deleted file mode 100644
index 1d595f8..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-redistribute-expected.html
+++ /dev/null
@@ -1,2 +0,0 @@
-<!DOCTYPE html>
-<div>You should see no progress.</div>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-redistribute.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-redistribute.html
deleted file mode 100644
index 405246e..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-redistribute.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<style>
-progress {
- display: block;
- width: auto
-}
-</style>
-<progress id="host" min="0" max="100" value="50"></progress>
-<script>
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-document.body.offsetTop; // Force rendering with UA Shadow DOM.
-
-var root = host.createShadowRoot();
-root.innerHTML = "<div>You should see no progress.</div>";
-</script>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-with-style-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-with-style-expected.html
deleted file mode 100644
index d51a1a7..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-with-style-expected.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <link rel="stylesheet" href="resources/replaced-element-styles.css">
-</head>
-<body>
-<style>
-div#wrapper {
- display: block;
- margin: 0;
- padding: 0;
- width: auto;
- height: 3em;
- vertical-align: 0;
-}
-
-progress#with-style {
- display: block;
- width: 15em;
- height: 3em;
-}
-</style>
-
-<div id="container">
- <div id="wrapper" class="progress-like">
- <div style="margin-left: 100px;">
- <span>(after)</span>
- </div>
- </div>
-</div>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-with-style.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-with-style.html
deleted file mode 100644
index bdffac8..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-with-style.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<div id="container">
- <progress id="host" min="0" max="100" value="50"></progress>
-</div>
-
-<script>
-var style = document.createElement('style');
-style.textContent = " \
- progress { \
- display: block; \
- margin: 0; \
- padding: 0; \
- width: auto; \
- height: 3em; \
- vertical-align: 0; \
- } \
- \
- progress::-webkit-progress-inner-element { \
- -webkit-appearance: progress-bar; /* We have to write this for now. Please see Bug 92455. */ \
- display: block; \
- width: 15em; \
- height: 3em; \
- }";
-document.querySelector('head').appendChild(style);
-
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-var shadowRoot = host.createShadowRoot();
-shadowRoot.innerHTML = "<div style='margin-left: 100px'><shadow></shadow><span>(after)</span></div>";
-</script>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-appearance-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-appearance-expected.html
deleted file mode 100644
index e5dcbc3..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-appearance-expected.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <link rel="stylesheet" href="resources/replaced-element-styles.css">
-</head>
-<body>
-
-<style>
-progress#progress {
- -webkit-appearance: none;
-}
-</style>
-
-<div id="container">
- <div class="progress-like"><span>(after)</span></div>
-</div>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-appearance.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-appearance.html
deleted file mode 100644
index 238de70..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-appearance.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <link rel="stylesheet" href="resources/replaced-element-styles.css">
-</head>
-<body>
-
-<style>
-progress {
- -webkit-appearance: none;
-}
-</style>
-
-<div id="container">
- <progress id="host" min="0" max="100" value="50"></progress>
-</div>
-
-<script>
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-var shadowRoot = host.createShadowRoot();
-shadowRoot.innerHTML = "<shadow></shadow><span>(after)</span>";
-</script>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-shadow-element-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-shadow-element-expected.html
deleted file mode 100644
index 44df3ae..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-shadow-element-expected.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <link rel="stylesheet" href="resources/replaced-element-styles.css">
-</head>
-<body>
-
-<div id="container">
- <div class="progress-like"><span>no progress</span></div>
-</div>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-shadow-element.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-shadow-element.html
deleted file mode 100644
index db563bd..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-shadow-element.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <link rel="stylesheet" href="resources/replaced-element-styles.css">
-</head>
-<body>
-
-<div id="container">
- <progress id="host" min="0" max="100" value="50"></progress>
-</div>
-
-<script>
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-var shadowRoot = host.createShadowRoot();
-shadowRoot.innerHTML = "<span>no progress</span>"
-</script>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress.html
deleted file mode 100644
index 0820b2c..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <link rel="stylesheet" href="resources/replaced-element-styles.css">
-</head>
-<body>
-
-<div id="container">
- <progress id="host" min="0" max="100" value="50"></progress>
-</div>
-
-<script>
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-var shadowRoot = host.createShadowRoot();
-shadowRoot.innerHTML = "<shadow></shadow><span>(after)</span>";
-</script>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-select-only-shadow-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-select-only-shadow-expected.html
deleted file mode 100644
index 7647b1c..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-select-only-shadow-expected.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-
-<p>When the AuthorShadowDOM has only a shadow element, this should be rendered like no Shadow DOM is added.</p>
-<form>
- <select id="host">
- <option disabled>Please select</option>
- <optgroup label="Rank 1"></optgroup>
- <option value="hoge" selected>hoge</option>
- </select>
- <input id="submit" type="submit" value="Submit">
-</form>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-select-only-shadow.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-select-only-shadow.html
deleted file mode 100644
index e0ed05c..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-select-only-shadow.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-
-<p>When the AuthorShadowDOM has only a shadow element, this should be rendered like no Shadow DOM is added.</p>
-<form>
- <select id="host">
- <option disabled>Please select</option>
- <optgroup label="Rank 1"></optgroup>
- <option value="hoge" selected>hoge</option>
- </select>
- <input id="submit" type="submit" value="Submit">
-</form>
-
-<script>
-var host = document.getElementById('host');
-var shadowRoot = host.createShadowRoot();
-shadowRoot.innerHTML = "<shadow></shadow>"
-</script>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-textarea-without-shadow-expected.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-textarea-without-shadow-expected.html
deleted file mode 100644
index 0a0ac64..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-textarea-without-shadow-expected.html
+++ /dev/null
@@ -1,7 +0,0 @@
-<!DOCTYPE html>
-
-<p>When the AuthorShadowDOM does not have a shadow element, this should be rendered like div.</p>
-<form>
- <div id="host" style="display: inline-block; width: 100px; height: 50px; margin: 0; padding: 0"></div>
- <input id="submit" type="submit" value="Submit">
-</form>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-textarea-without-shadow.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-textarea-without-shadow.html
deleted file mode 100644
index b01c3c1..0000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-textarea-without-shadow.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-
-<p>When the AuthorShadowDOM does not have a shadow element, this should be rendered like div.</p>
-<form>
- <textarea id="host" style="width: 100px; height: 50px; margin: 0; padding: 0; border: 0; resize: none">Mami</textarea>
- <input id="submit" type="submit" value="Submit">
-</form>
-
-<script>
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-
-var shadowRoot = host.createShadowRoot();
-</script>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowroot-host-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowroot-host-expected.txt
index 4dbe85b..1cb80e2 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowroot-host-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowroot-host-expected.txt
@@ -1,4 +1,3 @@
-CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
Tests ShadowRoot.host property
@@ -7,7 +6,6 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS root.host is host
-PASS root.host is host
PASS roots[0].host is host
PASS roots[1].host is host
PASS roots[0].host is host
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowroot-host.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowroot-host.html
index 652d4f2..788e682 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowroot-host.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/shadowroot-host.html
@@ -20,11 +20,6 @@ var host = document.createElement('table');
var root = host.createShadowRoot();
shouldBe('root.host', 'host');
-// For elements which has UA shadow root.
-host = document.createElement('details');
-root = host.createShadowRoot();
-shouldBe('root.host', 'host');
-
// Multiple shadow roots.
host = document.createElement('div');
document.body.appendChild(host);
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/shadow-host-div-with-text.html b/third_party/WebKit/LayoutTests/fast/selectors/shadow-host-div-with-text.html
index 0b967fa..ced764e 100644
--- a/third_party/WebKit/LayoutTests/fast/selectors/shadow-host-div-with-text.html
+++ b/third_party/WebKit/LayoutTests/fast/selectors/shadow-host-div-with-text.html
@@ -2,7 +2,7 @@
<html>
<head>
<style>
- body, input {
+ body, #host {
border: 0;
margin: 0;
padding: 0;
@@ -19,11 +19,11 @@
Some hearts are diamonds some hearts are stones
</span>
</template>
- <input>
+ <div id=host></div>
<script>
- var input = document.querySelector('input');
+ var host = document.querySelector('#host');
var template = document.querySelector('template');
- var root = input.createShadowRoot();
+ var root = host.createShadowRoot();
root.appendChild(template.content);
var span = root.querySelector('span');
diff --git a/third_party/WebKit/LayoutTests/svg/dom/custom-elements-expected.html b/third_party/WebKit/LayoutTests/svg/dom/custom-elements-expected.html
index dc52f5b..355ed01 100644
--- a/third_party/WebKit/LayoutTests/svg/dom/custom-elements-expected.html
+++ b/third_party/WebKit/LayoutTests/svg/dom/custom-elements-expected.html
@@ -12,13 +12,5 @@
</svg><br>
<svg width="30px" height="30px" xmlns="http://www.w3.org/2000/svg">
- <rect width="20" height="20" fill="green"></rect>
-</svg><br>
-
-<svg width="30px" height="30px" xmlns="http://www.w3.org/2000/svg">
- <rect width="20" height="20" fill="green"></rect>
-</svg><br>
-
-<svg width="30px" height="30px" xmlns="http://www.w3.org/2000/svg">
<text font-size="10px" y="20">PASS</text>
</svg>
diff --git a/third_party/WebKit/LayoutTests/svg/dom/custom-elements.html b/third_party/WebKit/LayoutTests/svg/dom/custom-elements.html
index 9c08e0c..f1eae7f 100644
--- a/third_party/WebKit/LayoutTests/svg/dom/custom-elements.html
+++ b/third_party/WebKit/LayoutTests/svg/dom/custom-elements.html
@@ -12,18 +12,6 @@ document.registerElement("x-g", { extends: "g", prototype: {
}
});
-document.registerElement("x-use", { extends: "use", prototype: {
- __proto__: SVGUseElement.prototype,
- createdCallback: function() {
- var greenBox = document.createElementNS('http://www.w3.org/2000/svg', 'rect');
- greenBox.setAttribute('width', '20');
- greenBox.setAttribute('height', '20');
- greenBox.setAttribute('fill', 'green');
- this.createShadowRoot().appendChild(greenBox);
- }
- }
-});
-
document.registerElement("x-green", { extends: "g", prototype: {
__proto__: SVGGElement.prototype,
createdCallback: function() {
@@ -55,12 +43,6 @@ document.registerElement("x-pass", { extends: "text", prototype: {
</svg><br>
<svg width="30px" height="30px" xmlns="http://www.w3.org/2000/svg">
- <use is="x-use">
- <rect width="100" height="100" fill="red"></rect>
- </use>
-</svg><br>
-
-<svg width="30px" height="30px" xmlns="http://www.w3.org/2000/svg">
<defs>
<rect id="use-green" width="20" height="20" fill="green"></rect>
</defs>
@@ -68,13 +50,6 @@ document.registerElement("x-pass", { extends: "text", prototype: {
</svg><br>
<svg width="30px" height="30px" xmlns="http://www.w3.org/2000/svg">
- <defs>
- <rect id="use-red" width="100" height="10" fill="red"></rect>
- </defs>
- <use is="x-use" xlink:href="#use-red"></use>
-</svg><br>
-
-<svg width="30px" height="30px" xmlns="http://www.w3.org/2000/svg">
<g is="x-green">
<rect width="100" height="100" fill="red"></rect>
</g>
@@ -82,4 +57,4 @@ document.registerElement("x-pass", { extends: "text", prototype: {
<svg width="30px" height="30px" xmlns="http://www.w3.org/2000/svg">
<text is="x-pass" font-size="10px" y="20">FAIL</text>
-</svg> \ No newline at end of file
+</svg>
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 4ced396..6a13a4d 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -1900,10 +1900,15 @@ CustomElementDefinition* Element::customElementDefinition() const
PassRefPtrWillBeRawPtr<ShadowRoot> Element::createShadowRoot(const ScriptState* scriptState, ExceptionState& exceptionState)
{
OriginsUsingFeatures::countMainWorldOnly(scriptState, document(), OriginsUsingFeatures::Feature::ElementCreateShadowRoot);
- ShadowRoot* root = shadowRoot();
- if (root && (root->type() == ShadowRootType::Open || root->type() == ShadowRootType::Closed)) {
- exceptionState.throwDOMException(InvalidStateError, "Shadow root cannot be created on a host which already hosts this type of shadow tree.");
- return nullptr;
+ if (ShadowRoot* root = shadowRoot()) {
+ if (root->isV1()) {
+ exceptionState.throwDOMException(InvalidStateError, "Shadow root cannot be created on a host which already hosts a v1 shadow tree.");
+ return nullptr;
+ }
+ if (root->type() == ShadowRootType::UserAgent) {
+ exceptionState.throwDOMException(InvalidStateError, "Shadow root cannot be created on a host which already hosts an user-agent shadow tree.");
+ return nullptr;
+ }
}
return createShadowRootInternal(ShadowRootType::V0, exceptionState);
}