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

Side by Side Diff: third_party/WebKit/PerformanceTests/Layout/resources/large-table-with-collapsed-borders.js

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 (function() { 1 (function() {
2 function createElement(tag, parent, className, id) { 2 function createElement(tag, parent, className, id) {
3 var el = document.createElement(tag); 3 var el = document.createElement(tag);
4 el.className = className; 4 el.className = className;
5 if (id) 5 if (id)
6 el.id = id; 6 el.id = id;
7 parent.appendChild(el); 7 parent.appendChild(el);
8 return el; 8 return el;
9 } 9 }
10 10
11 function createTable(width, height, colspan) { 11 function createTable(width, height, colspan) {
12 var table = createElement("table", document.body, "table"); 12 var table = createElement("table", document.body, "table");
13 for (var y = 0; y < height; ++y) { 13 for (var y = 0; y < height; ++y) {
14 var tr = createElement("tr", table, "tr"); 14 var tr = createElement("tr", table, "tr");
15 for (var x = 0; x < width; ++x) { 15 for (var x = 0; x < width; ++x) {
16 var td = createElement("td", tr, "td"); 16 var td = createElement("td", tr, "td");
17 if (colspan > 0 && x==10 && y==0) 17 if (colspan > 0 && x==10 && y==0)
18 table.rows[y].cells[x].colSpan = colspan; 18 table.rows[y].cells[x].colSpan = colspan;
19 } 19 }
20 } 20 }
21 return table; 21 return table;
22 } 22 }
23 23
24 function createTestFunction(width, height, colspan) { 24 function createTestFunction(width, height, colspan) {
25 return function() { 25 return function() {
26 var table = createTable(width, height, colspan); 26 var table = createTable(width, height, colspan);
27 PerfTestRunner.forceLayoutOrFullFrame(); 27 PerfTestRunner.forceLayout();
28 } 28 }
29 } 29 }
30 30
31 window.createTableTestFunction = createTestFunction; 31 window.createTableTestFunction = createTestFunction;
32 })(); 32 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698