| 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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 var parent = constructorNodes[i]; | 762 var parent = constructorNodes[i]; |
| 763 if (parent._name === className) { | 763 if (parent._name === className) { |
| 764 parent.revealNodeBySnapshotObjectId(parseInt(id, 10), callba
ck); | 764 parent.revealNodeBySnapshotObjectId(parseInt(id, 10), callba
ck); |
| 765 return; | 765 return; |
| 766 } | 766 } |
| 767 } | 767 } |
| 768 } | 768 } |
| 769 this.snapshot.nodeClassName(parseInt(id, 10), didGetClassName.bind(this)
); | 769 this.snapshot.nodeClassName(parseInt(id, 10), didGetClassName.bind(this)
); |
| 770 }, | 770 }, |
| 771 | 771 |
| 772 clear: function() |
| 773 { |
| 774 this._nextRequestedFilter = null; |
| 775 this._lastFilter = null; |
| 776 this.removeTopLevelNodes(); |
| 777 }, |
| 778 |
| 772 setDataSource: function(snapshot) | 779 setDataSource: function(snapshot) |
| 773 { | 780 { |
| 774 this.snapshot = snapshot; | 781 this.snapshot = snapshot; |
| 775 if (this._profileIndex === -1) | 782 if (this._profileIndex === -1) |
| 776 this._populateChildren(); | 783 this._populateChildren(); |
| 777 | 784 |
| 778 if (this._objectIdToSelect) { | 785 if (this._objectIdToSelect) { |
| 779 this.highlightObjectByHeapSnapshotId(this._objectIdToSelect, functio
n(found) {}); | 786 this.highlightObjectByHeapSnapshotId(this._objectIdToSelect, functio
n(found) {}); |
| 780 this._objectIdToSelect = null; | 787 this._objectIdToSelect = null; |
| 781 } | 788 } |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1204 * @return {number} | 1211 * @return {number} |
| 1205 */ | 1212 */ |
| 1206 allocationNodeId: function() | 1213 allocationNodeId: function() |
| 1207 { | 1214 { |
| 1208 return this.data.id; | 1215 return this.data.id; |
| 1209 }, | 1216 }, |
| 1210 | 1217 |
| 1211 __proto__: WebInspector.DataGridNode.prototype | 1218 __proto__: WebInspector.DataGridNode.prototype |
| 1212 } | 1219 } |
| 1213 | 1220 |
| OLD | NEW |