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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js

Issue 1653053002: Devtools: parse variables scopes and sourcemap them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
Index: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
index 58940245aed4180c88b6e1527760689a778080cc..5d44cbaaae179e0577746d4d7f94427c2123d626 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
@@ -1339,6 +1339,8 @@ WebInspector.DebuggerModel.Scope = function(callFrame, ordinal)
this._type = this._payload.type;
this._name = this._payload.name;
this._ordinal = ordinal;
+ this._startLocation = this._payload.startLocation ? WebInspector.DebuggerModel.Location.fromPayload(callFrame.debuggerModel, this._payload.startLocation) : null;
+ this._endLocation = this._payload.endLocation ? WebInspector.DebuggerModel.Location.fromPayload(callFrame.debuggerModel, this._payload.endLocation) : null;
}
WebInspector.DebuggerModel.Scope.prototype = {
@@ -1359,6 +1361,22 @@ WebInspector.DebuggerModel.Scope.prototype = {
},
/**
+ * @return {?WebInspector.DebuggerModel.Location}
+ */
+ startLocation: function()
+ {
+ return this._startLocation;
+ },
+
+ /**
+ * @return {?WebInspector.DebuggerModel.Location}
+ */
+ endLocation: function()
+ {
+ return this._endLocation;
+ },
+
+ /**
* @return {!WebInspector.RemoteObject}
*/
object: function()
@@ -1373,7 +1391,7 @@ WebInspector.DebuggerModel.Scope.prototype = {
else
this._object = runtimeModel.createRemoteObject(this._payload.object);
- return this._callFrame.target().runtimeModel.createRemoteObject(this._payload.object);
+ return this._object;
},
/**

Powered by Google App Engine
This is Rietveld 408576698