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

Side by Side Diff: PerformanceTests/ShadowDOM/SmallDistributionWithLayout.html

Issue 212303005: Revert of Remove prefixed Shadow DOM APIs in Element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « PerformanceTests/ShadowDOM/ShadowReprojection.html ('k') | Source/core/dom/Element.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script type="text/javascript" src="../resources/runner.js"></script> 4 <script type="text/javascript" src="../resources/runner.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 7
8 <div id="wrapper"> 8 <div id="wrapper">
9 <div id="host"></div> 9 <div id="host"></div>
10 </div> 10 </div>
11 11
12 <script> 12 <script>
13 var numDivsInHost = 10; 13 var numDivsInHost = 10;
14 var nLoops = 3000; 14 var nLoops = 3000;
15 15
16 function setup() 16 function setup()
17 { 17 {
18 var nDivs = numDivsInHost; 18 var nDivs = numDivsInHost;
19 19
20 for (var i = 0; i < nDivs; ++i) { 20 for (var i = 0; i < nDivs; ++i) {
21 var div = document.createElement('div'); 21 var div = document.createElement('div');
22 div.appendChild(document.createTextNode('div' + i)); 22 div.appendChild(document.createTextNode('div' + i));
23 host.appendChild(div); 23 host.appendChild(div);
24 } 24 }
25 25
26 var content = document.createElement('content'); 26 var content = document.createElement('content');
27 var shadowRoot = host.createShadowRoot(); 27 var shadowRoot = host.webkitCreateShadowRoot();
28 shadowRoot.appendChild(content); 28 shadowRoot.appendChild(content);
29 } 29 }
30 30
31 function run() 31 function run()
32 { 32 {
33 var host = document.getElementById('host'); 33 var host = document.getElementById('host');
34 var nLoops = window.nLoops; 34 var nLoops = window.nLoops;
35 35
36 var div = document.createElement('div'); 36 var div = document.createElement('div');
37 for (var i = 0; i < nLoops; ++i) { 37 for (var i = 0; i < nLoops; ++i) {
(...skipping 12 matching lines...) Expand all
50 setup(); 50 setup();
51 51
52 PerfTestRunner.measureTime({ 52 PerfTestRunner.measureTime({
53 description: "Measure Distribution and Layout time (with a few host children )", 53 description: "Measure Distribution and Layout time (with a few host children )",
54 run: run, 54 run: run,
55 done: done 55 done: done
56 }); 56 });
57 </script> 57 </script>
58 </body> 58 </body>
59 </html> 59 </html>
OLDNEW
« no previous file with comments | « PerformanceTests/ShadowDOM/ShadowReprojection.html ('k') | Source/core/dom/Element.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698