Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2022)

Unified Diff: Source/devtools/front_end/Script.js

Issue 205563007: CPUProfiler: convert Flame Chart into Icicle Chart (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: liveLocationText static method was added for text Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/FlameChart.js ('k') | Source/devtools/front_end/profilesPanel.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/Script.js
diff --git a/Source/devtools/front_end/Script.js b/Source/devtools/front_end/Script.js
index 0aba66624ca288314ff867fe64972bec3938ac52..cc75aa0d00886bdb0c55c95fe0f875f869d2ad8c 100644
--- a/Source/devtools/front_end/Script.js
+++ b/Source/devtools/front_end/Script.js
@@ -306,3 +306,17 @@ WebInspector.Script.Location.prototype = {
__proto__: WebInspector.LiveLocation.prototype
}
+
+/**
+ * @param {string} scriptId
+ * @param {number} lineNumber
+ * @param {number=} columnNumber
+ */
+WebInspector.Script.liveLocationText = function(scriptId, lineNumber, columnNumber)
pfeldman 2014/03/26 14:13:13 This should be on a Linkifier.
+{
+ var script = WebInspector.debuggerModel.scriptForId(scriptId);
+ if (!script)
+ return "";
+ var uiLocation = script.rawLocationToUILocation(lineNumber, columnNumber);
+ return uiLocation.linkText();
+}
« no previous file with comments | « Source/devtools/front_end/FlameChart.js ('k') | Source/devtools/front_end/profilesPanel.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698