Index: Source/devtools/front_end/CPUProfileView.js |
diff --git a/Source/devtools/front_end/CPUProfileView.js b/Source/devtools/front_end/CPUProfileView.js |
index 46ae079c13c74cda0071e6f19ecc782a1ecf078e..5f947ee96b50f0a875c6eadeaa7bee7747861880 100644 |
--- a/Source/devtools/front_end/CPUProfileView.js |
+++ b/Source/devtools/front_end/CPUProfileView.js |
@@ -680,7 +680,7 @@ WebInspector.CPUProfileType.prototype = { |
/** |
* @param {string} id |
- * @param {!DebuggerAgent.Location} scriptLocation |
+ * @param {!WebInspector.DebuggerModel.Location} scriptLocation |
* @param {string=} title |
*/ |
consoleProfileStarted: function(id, scriptLocation, title) |
@@ -695,7 +695,7 @@ WebInspector.CPUProfileType.prototype = { |
/** |
* @param {string} protocolId |
- * @param {!DebuggerAgent.Location} scriptLocation |
+ * @param {!WebInspector.DebuggerModel.Location} scriptLocation |
* @param {!ProfilerAgent.CPUProfile} cpuProfile |
* @param {string=} title |
*/ |
@@ -715,12 +715,12 @@ WebInspector.CPUProfileType.prototype = { |
/** |
* @param {string} type |
- * @param {!DebuggerAgent.Location} scriptLocation |
+ * @param {!WebInspector.DebuggerModel.Location} scriptLocation |
* @param {string} messageText |
*/ |
_addMessageToConsole: function(type, scriptLocation, messageText) |
{ |
- var script = WebInspector.debuggerModel.scriptForId(scriptLocation.scriptId); |
+ var script = scriptLocation.script(); |
var message = new WebInspector.ConsoleMessage( |
WebInspector.ConsoleMessage.MessageSource.ConsoleAPI, |
WebInspector.ConsoleMessage.MessageLevel.Debug, |