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

Side by Side Diff: PerformanceTests/ShadowDOM/MultipleInsertionPoints.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
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>
(...skipping 14 matching lines...) Expand all
25 var names = new Array(); 25 var names = new Array();
26 for (var j = 0; j < classNames.length; ++j) { 26 for (var j = 0; j < classNames.length; ++j) {
27 if (i & (1 << j)) 27 if (i & (1 << j))
28 names.push(classNames[j]); 28 names.push(classNames[j]);
29 } 29 }
30 div.className = names.join(' '); 30 div.className = names.join(' ');
31 31
32 host.appendChild(div); 32 host.appendChild(div);
33 } 33 }
34 34
35 var shadowRoot = host.createShadowRoot(); 35 var shadowRoot = host.webkitCreateShadowRoot();
36 for (var i = 0; i < classNames.length; ++i) { 36 for (var i = 0; i < classNames.length; ++i) {
37 var content = document.createElement('content'); 37 var content = document.createElement('content');
38 content.setAttribute('select', '.' + classNames[i]); 38 content.setAttribute('select', '.' + classNames[i]);
39 shadowRoot.appendChild(content); 39 shadowRoot.appendChild(content);
40 } 40 }
41 shadowRoot.appendChild(document.createElement('content')); 41 shadowRoot.appendChild(document.createElement('content'));
42 } 42 }
43 43
44 function run() 44 function run()
45 { 45 {
(...skipping 17 matching lines...) Expand all
63 setup(); 63 setup();
64 64
65 PerfTestRunner.measureTime({ 65 PerfTestRunner.measureTime({
66 description: "Measure Distribution and Layout time in a case there are multi ple InsertionPoints", 66 description: "Measure Distribution and Layout time in a case there are multi ple InsertionPoints",
67 run: run, 67 run: run,
68 done: done 68 done: done
69 }); 69 });
70 </script> 70 </script>
71 </body> 71 </body>
72 </html> 72 </html>
OLDNEW
« no previous file with comments | « PerformanceTests/ShadowDOM/LargeDistributionWithoutLayout.html ('k') | PerformanceTests/ShadowDOM/ShadowReprojection.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698