Changeset 86835 in webkit
- Timestamp:
- May 19, 2011 4:09:24 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r86832 r86835 1 2011-05-19 Pavel Feldman <pfeldman@google.com> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: make "this" a part of callFrame, not scope in the protocol. 6 https://bugs.webkit.org/show_bug.cgi?id=61057 7 8 * inspector/InjectedScriptSource.js: 9 * inspector/Inspector.json: 10 * inspector/front-end/ScopeChainSidebarPane.js: 11 (WebInspector.ScopeChainSidebarPane.prototype.update): 12 1 13 2011-05-19 Kent Tamura <tkent@chromium.org> 2 14 -
trunk/Source/WebCore/inspector/InjectedScriptSource.js
r86752 r86835 457 457 this.location = { sourceId: String(callFrame.sourceID), lineNumber: callFrame.line, columnNumber: callFrame.column }; 458 458 this.scopeChain = this._wrapScopeChain(callFrame); 459 this.this = injectedScript._wrapObject(callFrame.thisObject, "backtrace"); 459 460 } 460 461 … … 484 485 var scopeType = callFrame.scopeType(i); 485 486 scope.type = scopeTypeNames[scopeType]; 486 487 if (scopeType === LOCAL_SCOPE)488 scope.this = injectedScript._wrapObject(callFrame.thisObject, "backtrace");489 490 487 scopeChainProxy.push(scope); 491 488 } -
trunk/Source/WebCore/inspector/Inspector.json
r86760 r86835 1355 1355 { "name": "functionName", "type": "string", "description": "Name of the function called on this frame." }, 1356 1356 { "name": "location", "$ref": "Location", "description": "Location in the source code." }, 1357 { "name": "scopeChain", "type": "array", "items": { "$ref": "Scope" }, "description": "Scope chain for given call frame." } 1357 { "name": "scopeChain", "type": "array", "items": { "$ref": "Scope" }, "description": "Scope chain for given call frame." }, 1358 { "name": "this", "$ref": "Runtime.RemoteObject", "description": "<code>this</code> object for this call frame." } 1358 1359 ], 1359 1360 "description": "Debugger call frame. Array of call frames form call stack." … … 1364 1365 "properties": [ 1365 1366 { "name": "type", "type": "string", "enum": ["global", "local", "with", "closure", "catch"], "description": "Scope type." }, 1366 { "name": "object", "$ref": "Runtime.RemoteObject", "description": "Object representing the scope." }, 1367 { "name": "this", "$ref": "Runtime.RemoteObject", "optional": true, "description": "<code>this</code> object for local scope." } 1367 { "name": "object", "$ref": "Runtime.RemoteObject", "description": "Object representing the scope." } 1368 1368 ], 1369 1369 "description": "Debugger call frame. Array of call frames form call stack." -
trunk/Source/WebCore/inspector/front-end/DebuggerPresentationModel.js
r86752 r86835 685 685 }, 686 686 687 get this() 688 { 689 return this._callFrame.this; 690 }, 691 687 692 get index() 688 693 { -
trunk/Source/WebCore/inspector/front-end/ScopeChainSidebarPane.js
r85042 r86835 73 73 emptyPlaceholder = WebInspector.UIString("No Variables"); 74 74 subtitle = null; 75 if ( scope.this)76 extraProperties = [ new WebInspector.RemoteObjectProperty("this", WebInspector.RemoteObject.fromPayload( scope.this)) ];75 if (callFrame.this) 76 extraProperties = [ new WebInspector.RemoteObjectProperty("this", WebInspector.RemoteObject.fromPayload(callFrame.this)) ]; 77 77 if (i == 0) { 78 78 var exception = WebInspector.debuggerModel.debuggerPausedDetails.exception;
Note: See TracChangeset
for help on using the changeset viewer.