[Shadow DOM] Kill ShadowRoot constructor
https://bugs.webkit.org/show_bug.cgi?id=102913

Reviewed by Dimitri Glazkov.

Source/WebCore:

Remove ShadowRoot constructor in favor of Element.webkitCreateShadowRoot().

No new tests. Update existing tests.

* dom/ShadowRoot.idl:
* page/DOMWindow.idl:
* testing/Internals.cpp:
(WebCore::Internals::createShadowRoot):
(WebCore):
* testing/Internals.h:
(Internals):
* testing/Internals.idl:

LayoutTests:

* editing/pasteboard/copy-paste-float.html:
* editing/shadow/adjusting-editing-boundary-with-table-in-shadow.html:
* editing/shadow/bold-twice-in-shadow.html:
* editing/shadow/breaking-editing-boundaries-2.html:
* editing/shadow/breaking-editing-boundaries.html:
* editing/shadow/breaking-editing-boundary-with-table.html:
* editing/shadow/compare-positions-in-nested-shadow.html:
* editing/shadow/contenteditable-propagation-at-shadow-boundary.html:
* editing/shadow/delete-characters-in-distributed-node-crash.html:
* editing/shadow/delete-list-in-shadow.html:
* editing/shadow/doubleclick-on-meter-in-shadow-crash.html:
* editing/shadow/execcommand-indent-in-shadow.html:
* editing/shadow/insertorderedlist-crash.html:
* editing/shadow/pressing-enter-on-list.html:
* editing/shadow/rightclick-on-meter-in-shadow-crash.html:
* editing/shadow/select-contenteditable-shadowhost.html:
* editing/shadow/selection-of-orphan-shadowroot.html:
* editing/shadow/selection-of-shadowroot.html:
* editing/shadow/shadow-selection-not-exported.html:
* fast/css/style-scoped/style-scoped-apply-author-styles-expected.txt:
* fast/css/style-scoped/style-scoped-apply-author-styles.html:
* fast/css/style-scoped/style-scoped-change-scoped-in-shadow-expected.txt:
* fast/css/style-scoped/style-scoped-change-scoped-in-shadow.html:
* fast/css/style-scoped/style-scoped-in-shadow-expected.txt:
* fast/css/style-scoped/style-scoped-in-shadow.html:
* fast/dom/shadow/adopt-node-with-shadow-root.html:
* fast/dom/shadow/athost-atrules.html:
* fast/dom/shadow/base-in-shadow-tree.html:
* fast/dom/shadow/caret-range-from-point-in-nested-shadow.html:
* fast/dom/shadow/content-after-style.html:
* fast/dom/shadow/content-element-in-media-element.html:
* fast/dom/shadow/content-element-in-meter-element.html:
* fast/dom/shadow/content-element-in-progress-element.html:
* fast/dom/shadow/content-element-in-select-element.html:
* fast/dom/shadow/content-element-outside-shadow-style.html:
* fast/dom/shadow/content-reprojection-complex.html:
* fast/dom/shadow/content-reprojection-dynamic.html:
* fast/dom/shadow/content-reprojection-fallback-crash.html:
* fast/dom/shadow/content-reprojection-fallback-reprojection.html:
* fast/dom/shadow/content-reprojection-fallback.html:
* fast/dom/shadow/content-reprojection-order.html:
* fast/dom/shadow/content-reprojection-shadow.html:
* fast/dom/shadow/cppevent-in-shadow.html:
* fast/dom/shadow/cppevent-input-in-shadow.html:
* fast/dom/shadow/distribution-attribute-modified.html:
* fast/dom/shadow/distribution-className-modified.html:
* fast/dom/shadow/distribution-id-modified.html:
* fast/dom/shadow/drag-to-meter-in-shadow-crash.html:
* fast/dom/shadow/drop-event-for-input-in-shadow.html:
* fast/dom/shadow/drop-event-in-shadow.html:
* fast/dom/shadow/element-from-point-in-nested-shadow.html:
* fast/dom/shadow/form-in-shadow.html:
* fast/dom/shadow/get-element-by-id-in-shadow-mutation.html:
* fast/dom/shadow/has-content-elements.html:
* fast/dom/shadow/has-elementshadow.html:
* fast/dom/shadow/has-shadow-insertion-point.html:
* fast/dom/shadow/host-wrapper-reclaimed.html:
* fast/dom/shadow/iframe-shadow.html:
* fast/dom/shadow/input-with-validation-without-shadow.html:
* fast/dom/shadow/input-with-validation.html:
* fast/dom/shadow/insertion-point-list-menu-crash.html:
* fast/dom/shadow/insertion-point-resetStyleInheritance.html:
* fast/dom/shadow/insertion-point-shadow-crash.html:
* fast/dom/shadow/insertion-point-video-crash.html:
* fast/dom/shadow/invalidate-distribution.html:
* fast/dom/shadow/link-in-shadow-tree.html:
* fast/dom/shadow/multiple-shadowroot-adopt.html:
* fast/dom/shadow/multiple-shadowroot-rendering.html:
* fast/dom/shadow/multiple-shadowroot.html:
* fast/dom/shadow/parent-tree-scope-in-shadow.html:
* fast/dom/shadow/pseudo-attribute-dynamic.html:
* fast/dom/shadow/pseudo-attribute-rendering.html:
* fast/dom/shadow/pseudoclass-update-checked-input.html:
* fast/dom/shadow/pseudoclass-update-checked-option.html:
* fast/dom/shadow/pseudoclass-update-disabled-button.html:
* fast/dom/shadow/pseudoclass-update-disabled-fieldset.html:
* fast/dom/shadow/pseudoclass-update-disabled-input.html:
* fast/dom/shadow/pseudoclass-update-disabled-optgroup.html:
* fast/dom/shadow/pseudoclass-update-disabled-option.html:
* fast/dom/shadow/pseudoclass-update-disabled-select.html:
* fast/dom/shadow/pseudoclass-update-disabled-textarea.html:
* fast/dom/shadow/pseudoclass-update-enabled-anchor.html:
* fast/dom/shadow/pseudoclass-update-enabled-area.html:
* fast/dom/shadow/pseudoclass-update-enabled-button.html:
* fast/dom/shadow/pseudoclass-update-enabled-fieldset.html:
* fast/dom/shadow/pseudoclass-update-enabled-input.html:
* fast/dom/shadow/pseudoclass-update-enabled-optgroup.html:
* fast/dom/shadow/pseudoclass-update-enabled-option.html:
* fast/dom/shadow/pseudoclass-update-enabled-select.html:
* fast/dom/shadow/pseudoclass-update-enabled-textarea.html:
* fast/dom/shadow/pseudoclass-update-indeterminate-input.html:
* fast/dom/shadow/pseudoclass-update-indeterminate-progress.html:
* fast/dom/shadow/pseudoclass-update-link-anchor.html:
* fast/dom/shadow/pseudoclass-update-link-area.html:
* fast/dom/shadow/pseudoclass-update-target.html:
* fast/dom/shadow/pseudoclass-update-visited-anchor.html:
* fast/dom/shadow/pseudoclass-update-visited-area.html:
* fast/dom/shadow/remove-styles-in-shadow-crash.html:
* fast/dom/shadow/reprojection-attribute-modified.html:
* fast/dom/shadow/reprojection-className-modified.html:
* fast/dom/shadow/reprojection-id-modified.html:
* fast/dom/shadow/resize-in-shadow-dom.html:
* fast/dom/shadow/resources/polyfill.js:
(.Element.prototype.webkitCreateShadowRoot):
* fast/dom/shadow/resources/shadow-dom.js:
(createDOM):
* fast/dom/shadow/select-image-with-shadow.html:
* fast/dom/shadow/selection-shouldnt-expose-shadow-dom.html:
* fast/dom/shadow/selections-in-shadow.html:
* fast/dom/shadow/shadow-and-list-elements.html:
* fast/dom/shadow/shadow-aware-create-shadow-root-expected.txt:
* fast/dom/shadow/shadow-aware-create-shadow-root.html:
* fast/dom/shadow/shadow-content-crash.html:
* fast/dom/shadow/shadow-disable-expected.txt:
* fast/dom/shadow/shadow-disable.html:
* fast/dom/shadow/shadow-div-reflow.html:
* fast/dom/shadow/shadow-dynamic-style-change-via-mutation-and-selector.html:
* fast/dom/shadow/shadow-element-rendering-multiple.html:
* fast/dom/shadow/shadow-element-rendering-single.html:
* fast/dom/shadow/shadow-nested-pseudo-id.html:
* fast/dom/shadow/shadow-on-image.html:
* fast/dom/shadow/shadow-pseudo-id.html:
* fast/dom/shadow/shadow-removechild-and-blur-event.html:
* fast/dom/shadow/shadow-reprojection-click.html:
* fast/dom/shadow/shadow-reprojection-dynamic.html:
* fast/dom/shadow/shadow-reprojection-fallback.html:
* fast/dom/shadow/shadow-reprojection.html:
* fast/dom/shadow/shadow-reprojection2.html:
* fast/dom/shadow/shadow-root-append.html:
* fast/dom/shadow/shadow-root-applyAuthorStyles.html:
* fast/dom/shadow/shadow-root-attached.html:
* fast/dom/shadow/shadow-root-innerHTML.html:
* fast/dom/shadow/shadow-root-js-api-expected.txt:
* fast/dom/shadow/shadow-root-js-api.html:
* fast/dom/shadow/shadow-root-new-expected.txt:
* fast/dom/shadow/shadow-root-new.html:
* fast/dom/shadow/shadow-root-resetStyleInheritance.html:
* fast/dom/shadow/shadow-select-attribute-featureset.html:
* fast/dom/shadow/shadow-ul-li.html:
* fast/dom/shadow/shadowdom-dynamic-styling.html:
* fast/dom/shadow/shadowdom-for-button-complex-shadow.html:
* fast/dom/shadow/shadowdom-for-button-only-shadow.html:
* fast/dom/shadow/shadowdom-for-button-without-shadow.html:
* fast/dom/shadow/shadowdom-for-button.html:
* fast/dom/shadow/shadowdom-for-fieldset-complex-shadow.html:
* fast/dom/shadow/shadowdom-for-fieldset-only-shadow.html:
* fast/dom/shadow/shadowdom-for-fieldset-without-shadow.html:
* fast/dom/shadow/shadowdom-for-form-associated-element-useragent.html:
* fast/dom/shadow/shadowdom-for-image-alt-update.html:
* fast/dom/shadow/shadowdom-for-image-alt.html:
* fast/dom/shadow/shadowdom-for-image-content.html:
* fast/dom/shadow/shadowdom-for-image-dynamic.html:
* fast/dom/shadow/shadowdom-for-image-event-click.html:
* fast/dom/shadow/shadowdom-for-image-event.html:
* fast/dom/shadow/shadowdom-for-image-in-shadowdom.html:
* fast/dom/shadow/shadowdom-for-image-map.html:
* fast/dom/shadow/shadowdom-for-image-style.html:
* fast/dom/shadow/shadowdom-for-image-with-multiple-shadow.html:
* fast/dom/shadow/shadowdom-for-image-with-pseudo-id.html:
* fast/dom/shadow/shadowdom-for-image-with-width-and-height.html:
* fast/dom/shadow/shadowdom-for-image.html:
* fast/dom/shadow/shadowdom-for-keygen-complex-shadow.html:
* fast/dom/shadow/shadowdom-for-keygen-only-shadow.html:
* fast/dom/shadow/shadowdom-for-keygen-without-shadow.html:
* fast/dom/shadow/shadowdom-for-media.html:
* fast/dom/shadow/shadowdom-for-meter-dynamic.html:
* fast/dom/shadow/shadowdom-for-meter-multiple.html:
* fast/dom/shadow/shadowdom-for-meter-with-style.html:
* fast/dom/shadow/shadowdom-for-meter-without-appearance.html:
* fast/dom/shadow/shadowdom-for-meter-without-shadow-element.html:
* fast/dom/shadow/shadowdom-for-meter.html:
* fast/dom/shadow/shadowdom-for-object-complex-shadow.html:
* fast/dom/shadow/shadowdom-for-object-only-shadow.html:
* fast/dom/shadow/shadowdom-for-object-without-shadow.html:
* fast/dom/shadow/shadowdom-for-output-complex-shadow.html:
* fast/dom/shadow/shadowdom-for-output-only-shadow.html:
* fast/dom/shadow/shadowdom-for-output-without-shadow.html:
* fast/dom/shadow/shadowdom-for-progress-dynamic.html:
* fast/dom/shadow/shadowdom-for-progress-multiple.html:
* fast/dom/shadow/shadowdom-for-progress-with-style.html:
* fast/dom/shadow/shadowdom-for-progress-without-appearance.html:
* fast/dom/shadow/shadowdom-for-progress-without-shadow-element.html:
* fast/dom/shadow/shadowdom-for-progress.html:
* fast/dom/shadow/shadowdom-for-select-complex-shadow.html:
* fast/dom/shadow/shadowdom-for-select-only-shadow.html:
* fast/dom/shadow/shadowdom-for-select-without-shadow.html:
* fast/dom/shadow/shadowdom-for-textarea-complex-shadow.html:
* fast/dom/shadow/shadowdom-for-textarea-only-shadow.html:
* fast/dom/shadow/shadowdom-for-textarea-with-attribute.html:
* fast/dom/shadow/shadowdom-for-textarea-with-placeholder.html:
* fast/dom/shadow/shadowdom-for-textarea-with-style.html:
* fast/dom/shadow/shadowdom-for-textarea-without-shadow.html:
* fast/dom/shadow/shadowdom-for-textarea.html:
* fast/dom/shadow/shadowroot-clonenode.html:
* fast/dom/shadow/shadowroot-of-insertionpoint.html:
* fast/dom/shadow/shadowroot-type.html:
* fast/dom/shadow/style-of-distributed-node.html:
* fast/dom/shadow/style-scoped-not-enabled.html:
* fast/dom/shadow/styling-pseudo-attribute.html:
* fast/dom/shadow/suppress-mutation-events-in-shadow-characterdata.html:
* fast/dom/shadow/transition-on-shadow-host-with-distributed-node.html:
* fast/dom/shadow/user-modify-inheritance.html:
* fast/dom/shadow/wheel-event-in-shadow-dom.html:
* fast/dom/shadow/wheel-event-on-input-in-shadow-dom.html:
* fast/frames/detached-shadow-frame.html:
* fast/js/global-constructors-expected.txt:
* inspector/elements/shadow-root.html:
* inspector/elements/update-shadowdom.html:
* platform/efl/fast/js/global-constructors-expected.txt:
* platform/gtk/fast/js/global-constructors-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137408 268f45cc-cd09-0410-ab3c-d52691b4dbfc