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

Side by Side 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, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/FlameChart.js ('k') | Source/devtools/front_end/profilesPanel.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 }, 299 },
300 300
301 dispose: function() 301 dispose: function()
302 { 302 {
303 WebInspector.LiveLocation.prototype.dispose.call(this); 303 WebInspector.LiveLocation.prototype.dispose.call(this);
304 this._script._locations.remove(this); 304 this._script._locations.remove(this);
305 }, 305 },
306 306
307 __proto__: WebInspector.LiveLocation.prototype 307 __proto__: WebInspector.LiveLocation.prototype
308 } 308 }
309
310 /**
311 * @param {string} scriptId
312 * @param {number} lineNumber
313 * @param {number=} columnNumber
314 */
315 WebInspector.Script.liveLocationText = function(scriptId, lineNumber, columnNumb er)
pfeldman 2014/03/26 14:13:13 This should be on a Linkifier.
316 {
317 var script = WebInspector.debuggerModel.scriptForId(scriptId);
318 if (!script)
319 return "";
320 var uiLocation = script.rawLocationToUILocation(lineNumber, columnNumber);
321 return uiLocation.linkText();
322 }
OLDNEW
« 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