Index: third_party/WebKit/Source/devtools/front_end/profiler/HeapProfileView.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/HeapProfileView.js b/third_party/WebKit/Source/devtools/front_end/profiler/HeapProfileView.js |
index f1774126b7de0b574f5343ea7e5abd233159eb7d..73c1f06bf9d5c703bc1c6c4476c4758e7b66d3fa 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/profiler/HeapProfileView.js |
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/HeapProfileView.js |
@@ -308,11 +308,11 @@ WebInspector.HeapProfileView.NodeFormatter.prototype = { |
/** |
* @override |
* @param {!WebInspector.ProfileDataGridNode} node |
- * @return {!Element} |
+ * @return {?Element} |
*/ |
linkifyNode: function(node) |
{ |
- return this._profileView.linkifier().linkifyConsoleCallFrame(this._profileView.target(), node.profileNode.callFrame, "profile-node-file"); |
+ return this._profileView.linkifier().maybeLinkifyConsoleCallFrame(this._profileView.target(), node.profileNode.callFrame, "profile-node-file"); |
} |
} |
@@ -432,9 +432,10 @@ WebInspector.HeapFlameChartDataProvider.prototype = { |
pushEntryInfoRow(WebInspector.UIString("Self size"), Number.bytesToString(node.self)); |
pushEntryInfoRow(WebInspector.UIString("Total size"), Number.bytesToString(node.total)); |
var linkifier = new WebInspector.Linkifier(); |
- var text = (new WebInspector.Linkifier()).linkifyConsoleCallFrame(this._target, node.callFrame).textContent; |
+ var link = linkifier.maybeLinkifyConsoleCallFrame(this._target, node.callFrame); |
+ if (link) |
+ pushEntryInfoRow(WebInspector.UIString("URL"), link.textContent); |
linkifier.dispose(); |
- pushEntryInfoRow(WebInspector.UIString("URL"), text); |
return entryInfo; |
}, |