OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |