| 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 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1483 createCell: function(columnIdentifier) | 1483 createCell: function(columnIdentifier) |
| 1484 { | 1484 { |
| 1485 if (columnIdentifier !== "name") | 1485 if (columnIdentifier !== "name") |
| 1486 return this._createValueCell(columnIdentifier); | 1486 return this._createValueCell(columnIdentifier); |
| 1487 | 1487 |
| 1488 var cell = WebInspector.HeapSnapshotGridNode.prototype.createCell.call(t
his, columnIdentifier); | 1488 var cell = WebInspector.HeapSnapshotGridNode.prototype.createCell.call(t
his, columnIdentifier); |
| 1489 var allocationNode = this._allocationNode; | 1489 var allocationNode = this._allocationNode; |
| 1490 var target = this._dataGrid.target(); | 1490 var target = this._dataGrid.target(); |
| 1491 if (allocationNode.scriptId) { | 1491 if (allocationNode.scriptId) { |
| 1492 var linkifier = this._dataGrid._linkifier; | 1492 var linkifier = this._dataGrid._linkifier; |
| 1493 var urlElement = linkifier.linkifyLocationByScriptId(target, String(
allocationNode.scriptId), allocationNode.scriptName, allocationNode.line - 1, al
locationNode.column - 1, "profile-node-file"); | 1493 var urlElement = linkifier.linkifyScriptLocation(target, String(allo
cationNode.scriptId), allocationNode.scriptName, allocationNode.line - 1, alloca
tionNode.column - 1, "profile-node-file"); |
| 1494 urlElement.style.maxWidth = "75%"; | 1494 urlElement.style.maxWidth = "75%"; |
| 1495 cell.insertBefore(urlElement, cell.firstChild); | 1495 cell.insertBefore(urlElement, cell.firstChild); |
| 1496 } | 1496 } |
| 1497 return cell; | 1497 return cell; |
| 1498 }, | 1498 }, |
| 1499 | 1499 |
| 1500 /** | 1500 /** |
| 1501 * @return {number} | 1501 * @return {number} |
| 1502 */ | 1502 */ |
| 1503 allocationNodeId: function() | 1503 allocationNodeId: function() |
| 1504 { | 1504 { |
| 1505 return this._allocationNode.id; | 1505 return this._allocationNode.id; |
| 1506 }, | 1506 }, |
| 1507 | 1507 |
| 1508 __proto__: WebInspector.HeapSnapshotGridNode.prototype | 1508 __proto__: WebInspector.HeapSnapshotGridNode.prototype |
| 1509 } | 1509 } |
| OLD | NEW |