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

Side by Side Diff: Source/devtools/front_end/HeapSnapshotDataGrids.js

Issue 222253002: DevTools: hide padding rows by default in datagrid viewport. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 __proto__: WebInspector.HeapSnapshotSortableDataGrid.prototype 573 __proto__: WebInspector.HeapSnapshotSortableDataGrid.prototype
574 } 574 }
575 575
576 /** 576 /**
577 * @constructor 577 * @constructor
578 */ 578 */
579 WebInspector.HeapSnapshotPaddingNode = function() 579 WebInspector.HeapSnapshotPaddingNode = function()
580 { 580 {
581 this.element = document.createElement("tr"); 581 this.element = document.createElement("tr");
582 this.element.classList.add("revealed"); 582 this.element.classList.add("revealed");
583 this.setHeight(0);
583 } 584 }
584 585
585 WebInspector.HeapSnapshotPaddingNode.prototype = { 586 WebInspector.HeapSnapshotPaddingNode.prototype = {
586 setHeight: function(height) 587 setHeight: function(height)
587 { 588 {
588 this.element.style.height = height + "px"; 589 this.element.style.height = height + "px";
589 }, 590 },
590 removeFromTable: function() 591 removeFromTable: function()
591 { 592 {
592 var parent = this.element.parentNode; 593 var parent = this.element.parentNode;
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 return compareResult; 1123 return compareResult;
1123 if (a[fieldName] < b[fieldName]) 1124 if (a[fieldName] < b[fieldName])
1124 return -compareResult; 1125 return -compareResult;
1125 return 0; 1126 return 0;
1126 } 1127 }
1127 return compare; 1128 return compare;
1128 }, 1129 },
1129 1130
1130 __proto__: WebInspector.HeapSnapshotViewportDataGrid.prototype 1131 __proto__: WebInspector.HeapSnapshotViewportDataGrid.prototype
1131 } 1132 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698