| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 280 North Inc. All Rights Reserved. | 2 * Copyright (C) 2009 280 North 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 if (this._deoptReason) | 101 if (this._deoptReason) |
| 102 cell.classList.add("not-optimized"); | 102 cell.classList.add("not-optimized"); |
| 103 | 103 |
| 104 if (this.profileNode._searchMatchedFunctionColumn) | 104 if (this.profileNode._searchMatchedFunctionColumn) |
| 105 cell.classList.add("highlight"); | 105 cell.classList.add("highlight"); |
| 106 | 106 |
| 107 if (this.profileNode.scriptId !== "0") { | 107 if (this.profileNode.scriptId !== "0") { |
| 108 var lineNumber = this.profileNode.lineNumber ? this.profileNode.line
Number - 1 : 0; | 108 var lineNumber = this.profileNode.lineNumber ? this.profileNode.line
Number - 1 : 0; |
| 109 var columnNumber = this.profileNode.columnNumber ? this.profileNode.
columnNumber - 1 : 0; | 109 var columnNumber = this.profileNode.columnNumber ? this.profileNode.
columnNumber - 1 : 0; |
| 110 var location = new WebInspector.DebuggerModel.Location(this.profileN
ode.scriptId, lineNumber, columnNumber); | 110 var location = new WebInspector.DebuggerModel.Location(/** @type {!W
ebInspector.Target} */ (WebInspector.targetManager.activeTarget()), this.profile
Node.scriptId, lineNumber, columnNumber); |
| 111 var urlElement = this.tree.profileView._linkifier.linkifyRawLocation
(location, "profile-node-file"); | 111 var urlElement = this.tree.profileView._linkifier.linkifyRawLocation
(location, "profile-node-file"); |
| 112 if (!urlElement) | 112 if (!urlElement) |
| 113 urlElement = this.tree.profileView._linkifier.linkifyLocation(th
is.profileNode.url, lineNumber, columnNumber, "profile-node-file"); | 113 urlElement = this.tree.profileView._linkifier.linkifyLocation(th
is.profileNode.url, lineNumber, columnNumber, "profile-node-file"); |
| 114 urlElement.style.maxWidth = "75%"; | 114 urlElement.style.maxWidth = "75%"; |
| 115 cell.insertBefore(urlElement, cell.firstChild); | 115 cell.insertBefore(urlElement, cell.firstChild); |
| 116 } | 116 } |
| 117 | 117 |
| 118 return cell; | 118 return cell; |
| 119 }, | 119 }, |
| 120 | 120 |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 | 413 |
| 414 return 0; | 414 return 0; |
| 415 } | 415 } |
| 416 } | 416 } |
| 417 | 417 |
| 418 WebInspector.ProfileDataGridTree.propertyComparators[(isAscending ? 1 :
0)][property] = comparator; | 418 WebInspector.ProfileDataGridTree.propertyComparators[(isAscending ? 1 :
0)][property] = comparator; |
| 419 } | 419 } |
| 420 | 420 |
| 421 return comparator; | 421 return comparator; |
| 422 } | 422 } |
| OLD | NEW |