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

Side by Side Diff: third_party/WebKit/PerformanceTests/Layout/latin-complex-text.html

Issue 1557953002: Revert unfinished work of "full-frame-measurement" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PerfPaint
Patch Set: Created 4 years, 11 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/runner.js"></script> 4 <script src="../resources/runner.js"></script>
5 <style> 5 <style>
6 p { text-rendering: optimizeLegibility; } 6 p { text-rendering: optimizeLegibility; }
7 </style> 7 </style>
8 </head> 8 </head>
9 <body> 9 <body>
10 <article id="textContainer"> 10 <article id="textContainer">
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 var textContainer = document.getElementById('textContainer'); 89 var textContainer = document.getElementById('textContainer');
90 var textNode = textContainer.getElementsByTagName('p')[0]. 90 var textNode = textContainer.getElementsByTagName('p')[0].
91 firstChild; 91 firstChild;
92 // Use Array.join to repeat string 20 times. 92 // Use Array.join to repeat string 20 times.
93 textNode.nodeValue = Array(21).join(textNode.nodeValue); 93 textNode.nodeValue = Array(21).join(textNode.nodeValue);
94 docFragment = document.createDocumentFragment(); 94 docFragment = document.createDocumentFragment();
95 docFragment.appendChild(textContainer); 95 docFragment.appendChild(textContainer);
96 }; 96 };
97 97
98 function runTest() { 98 function runTest() {
99 PerfTestRunner.forceLayoutOrFullFrame(); 99 PerfTestRunner.forceLayout();
100 var now = PerfTestRunner.now(); 100 var now = PerfTestRunner.now();
101 document.body.appendChild(docFragment.cloneNode(true)); 101 document.body.appendChild(docFragment.cloneNode(true));
102 PerfTestRunner.forceLayoutOrFullFrame(); 102 PerfTestRunner.forceLayout();
103 var resultTime = PerfTestRunner.now() - now; 103 var resultTime = PerfTestRunner.now() - now;
104 document.body.removeChild(document.body.lastChild); 104 document.body.removeChild(document.body.lastChild);
105 return resultTime; 105 return resultTime;
106 } 106 }
107 107
108 window.requestAnimationFrame(function () { 108 window.requestAnimationFrame(function () {
109 setupTest(); 109 setupTest();
110 PerfTestRunner.measureTime({ 110 PerfTestRunner.measureTime({
111 description: "Measures performance of processing a large amo unt of latin text, rendered using the complex text path.", 111 description: "Measures performance of processing a large amo unt of latin text, rendered using the complex text path.",
112 run: runTest 112 run: runTest
113 }); 113 });
114 }); 114 });
115 </script> 115 </script>
116 </body> 116 </body>
117 </html> 117 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698