| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 function didLoadBaseSnaphot(baseSnapshotProxy) | 856 function didLoadBaseSnaphot(baseSnapshotProxy) |
| 857 { | 857 { |
| 858 if (this._diffDataGrid.baseSnapshot !== baseSnapshotProxy) | 858 if (this._diffDataGrid.baseSnapshot !== baseSnapshotProxy) |
| 859 this._diffDataGrid.setBaseDataSource(baseSnapshotProxy); | 859 this._diffDataGrid.setBaseDataSource(baseSnapshotProxy); |
| 860 } | 860 } |
| 861 }, | 861 }, |
| 862 | 862 |
| 863 _onSelectedPerspectiveChanged: function(event) | 863 _onSelectedPerspectiveChanged: function(event) |
| 864 { | 864 { |
| 865 this._changePerspective(event.target.selectedIndex); | 865 this._changePerspective(event.target.selectedIndex); |
| 866 // FIXME: This is needed by CodeSchool extension. |
| 867 this._onSelectedViewChanged(event); |
| 868 }, |
| 869 |
| 870 _onSelectedViewChanged: function(event) |
| 871 { |
| 866 }, | 872 }, |
| 867 | 873 |
| 868 _changePerspective: function(selectedIndex) | 874 _changePerspective: function(selectedIndex) |
| 869 { | 875 { |
| 870 if (selectedIndex === this._currentPerspectiveIndex) | 876 if (selectedIndex === this._currentPerspectiveIndex) |
| 871 return; | 877 return; |
| 872 | 878 |
| 873 if (this._dataGrid) | 879 if (this._dataGrid) |
| 874 this._dataGrid.removeEventListener(WebInspector.HeapSnapshotSortable
DataGrid.Events.ResetFilter, this._onResetClassNameFilter, this); | 880 this._dataGrid.removeEventListener(WebInspector.HeapSnapshotSortable
DataGrid.Events.ResetFilter, this._onResetClassNameFilter, this); |
| 875 | 881 |
| (...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2167 if (color) | 2173 if (color) |
| 2168 swatchDiv.style.backgroundColor = color; | 2174 swatchDiv.style.backgroundColor = color; |
| 2169 else | 2175 else |
| 2170 swatchDiv.classList.add("heap-snapshot-stats-empty-swatch"); | 2176 swatchDiv.classList.add("heap-snapshot-stats-empty-swatch"); |
| 2171 nameDiv.textContent = name; | 2177 nameDiv.textContent = name; |
| 2172 sizeDiv.textContent = WebInspector.UIString("%s KB", Number.withThousand
sSeparator(Math.round(value / 1024))); | 2178 sizeDiv.textContent = WebInspector.UIString("%s KB", Number.withThousand
sSeparator(Math.round(value / 1024))); |
| 2173 }, | 2179 }, |
| 2174 | 2180 |
| 2175 __proto__: WebInspector.VBox.prototype | 2181 __proto__: WebInspector.VBox.prototype |
| 2176 } | 2182 } |
| OLD | NEW |