Commit 8c5a5506 authored by hayato@chromium.org's avatar hayato@chromium.org

Use element.webkitCreateShadowRoot instead of WebKitShadowRoot in PerformanceTests.

https://bugs.webkit.org/show_bug.cgi?id=105256

Reviewed by Dimitri Glazkov.

WebKitShadowRoot constructor was deleted in favor of element.webkitCreateShadowRoot().

* ShadowDOM/ChangingClassNameShadowDOM.html:
* ShadowDOM/ChangingSelect.html:
* ShadowDOM/ContentReprojection.html:
* ShadowDOM/DistributionWithMultipleShadowRoots.html:
* ShadowDOM/LargeDistributionWithLayout.html:
* ShadowDOM/MultipleInsertionPoints.html:
* ShadowDOM/ShadowReprojection.html:
* ShadowDOM/SmallDistributionWithLayout.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138108 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d5e0b705
2012-12-18 Hayato Ito <hayato@chromium.org>
Use element.webkitCreateShadowRoot instead of WebKitShadowRoot in PerformanceTests.
https://bugs.webkit.org/show_bug.cgi?id=105256
Reviewed by Dimitri Glazkov.
WebKitShadowRoot constructor was deleted in favor of element.webkitCreateShadowRoot().
* ShadowDOM/ChangingClassNameShadowDOM.html:
* ShadowDOM/ChangingSelect.html:
* ShadowDOM/ContentReprojection.html:
* ShadowDOM/DistributionWithMultipleShadowRoots.html:
* ShadowDOM/LargeDistributionWithLayout.html:
* ShadowDOM/MultipleInsertionPoints.html:
* ShadowDOM/ShadowReprojection.html:
* ShadowDOM/SmallDistributionWithLayout.html:
2012-12-17 Shinya Kawanaka <shinyak@chromium.org>
[Shadow] LargeDistributionWithLayout.html should be updated
......
......@@ -17,7 +17,7 @@ function setup()
{
var nDivs = numDivsInHost;
window.shadowRoot = new WebKitShadowRoot(host);
window.shadowRoot = host.webkitCreateShadowRoot();
shadowRoot.innerHTML = '<h2>Selected</h2><div id="selected"><content select=".selected"></content></div><h2>NonSelected</h2><div id="nonselected"><content></content></div>';
for (var i = 0; i < nDivs; ++i) {
......
......@@ -18,7 +18,7 @@ function setup()
{
var nDivs = numDivsInHost;
window.shadowRoot = new WebKitShadowRoot(host);
window.shadowRoot = host.webkitCreateShadowRoot();
shadowRoot.innerHTML = '<h2>Selected</h2><div id="selected"><content select=".selected"></content></div><h2>NonSelected</h2><div id="nonselected"><content></content></div>';
for (var i = 0; i < nDivs; ++i) {
......
......@@ -25,11 +25,11 @@ function setup()
host.appendChild(div);
}
var shadowRoot = new WebKitShadowRoot(host);
var shadowRoot = host.webkitCreateShadowRoot();
shadowRoot.innerHTML = '<div id="host2"><content></content></div>';
var host2 = shadowRoot.getElementById('host2');
var shadowRoot2 = new WebKitShadowRoot(host2);
var shadowRoot2 = host2.webkitCreateShadowRoot();
shadowRoot2.innerHTML = '<content select=".selected"></content>';
}
......
......@@ -26,7 +26,7 @@ function setup()
for (var i = 0; i < numShadowRoots; ++i) {
var content = document.createElement('shadow');
var shadowRoot = new WebKitShadowRoot(host);
var shadowRoot = host.webkitCreateShadowRoot();
shadowRoot.appendChild(content);
}
}
......
......@@ -32,7 +32,7 @@ function setup()
host.appendChild(div);
}
var shadowRoot = new WebKitShadowRoot(host);
var shadowRoot = host.webkitCreateShadowRoot();
for (var i = 0; i < classNames.length; ++i) {
var content = document.createElement('content');
content.setAttribute('select', '.' + classNames[i]);
......
......@@ -25,11 +25,11 @@ function setup()
host.appendChild(div);
}
var shadowRoot = new WebKitShadowRoot(host);
var shadowRoot = host.webkitCreateShadowRoot();
shadowRoot.innerHTML = '<div id="host2"><shadow></shadow></div>';
var host2 = shadowRoot.getElementById('host2');
var shadowRoot2 = new WebKitShadowRoot(host2);
var shadowRoot2 = host2.webkitCreateShadowRoot();
shadowRoot2.innerHTML = '<content select=".selected"></content>';
}
......
......@@ -24,7 +24,7 @@ function setup()
}
var content = document.createElement('content');
var shadowRoot = new WebKitShadowRoot(host);
var shadowRoot = host.webkitCreateShadowRoot();
shadowRoot.appendChild(content);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment