Use element.webkitCreateShadowRoot instead of WebKitShadowRoot in PerformanceTests.
authorhayato@chromium.org <hayato@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Dec 2012 04:18:43 +0000 (04:18 +0000)
committerhayato@chromium.org <hayato@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Dec 2012 04:18:43 +0000 (04:18 +0000)
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: https://svn.webkit.org/repository/webkit/trunk@138108 268f45cc-cd09-0410-ab3c-d52691b4dbfc

PerformanceTests/ChangeLog
PerformanceTests/ShadowDOM/ChangingClassNameShadowDOM.html
PerformanceTests/ShadowDOM/ChangingSelect.html
PerformanceTests/ShadowDOM/ContentReprojection.html
PerformanceTests/ShadowDOM/DistributionWithMultipleShadowRoots.html
PerformanceTests/ShadowDOM/MultipleInsertionPoints.html
PerformanceTests/ShadowDOM/ShadowReprojection.html
PerformanceTests/ShadowDOM/SmallDistributionWithLayout.html

index df377b8..739b9df 100644 (file)
@@ -1,3 +1,21 @@
+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
index 128c92d..5561b56 100644 (file)
@@ -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) {
index 246d4df..7d0ea42 100644 (file)
@@ -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) {
index 6e13d67..dd88b0e 100644 (file)
@@ -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>';
 }
 
index 96d6f73..20958da 100644 (file)
@@ -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);
     }
 }
index 5c4e65e..bc683d0 100644 (file)
@@ -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]);
index 2663aff..dcc1294 100644 (file)
@@ -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>';
 }
 
index c76a70f..6d22703 100644 (file)
@@ -24,7 +24,7 @@ function setup()
     }
 
     var content = document.createElement('content');
-    var shadowRoot = new WebKitShadowRoot(host);
+    var shadowRoot = host.webkitCreateShadowRoot();
     shadowRoot.appendChild(content);
 }