Changeset 109560 in webkit
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/inspector/debugger/callstack-placards-discarded-expected.txt
r108971 r109560 8 8 Received DebuggerPaused event. 9 9 Function name: testFunction 10 Listeners length: 210 Listeners length: 3 11 11 Script execution paused. 12 12 Script execution resumed. … … 14 14 Received DebuggerPaused event. 15 15 Function name: testFunction 16 Listeners length: 216 Listeners length: 3 17 17 Script execution paused. 18 18 Script execution resumed. -
trunk/Source/WebCore/ChangeLog
r109559 r109560 1 2012-03-02 Pavel Podivilov <podivilov@chromium.org> 2 3 Web Inspector: update execution line using LiveLocation. 4 https://bugs.webkit.org/show_bug.cgi?id=80143 5 6 Reviewed by Vsevolod Vlasov. 7 8 * inspector/front-end/DebuggerPresentationModel.js: 9 (WebInspector.DebuggerPresentationModel.prototype._uiSourceCodeListChanged): 10 (WebInspector.DebuggerPresentationModel.prototype._debuggerResumed): 11 (WebInspector.DebuggerPresentationModel.prototype.set selectedCallFrame.updateExecutionLine): 12 (WebInspector.DebuggerPresentationModel.prototype.set selectedCallFrame): 13 1 14 2012-03-02 Leo Yang <leo.yang@torchmobile.com.cn> 2 15 -
trunk/Source/WebCore/inspector/front-end/DebuggerPresentationModel.js
r109351 r109560 211 211 212 212 this._restoreBreakpoints(rawSourceCode); 213 this._restoreExecutionLine(rawSourceCode);214 213 215 214 var uiSourceCodeList = rawSourceCode.uiSourceCodeList(); … … 236 235 this._breakpointAdded(breakpoints[lineNumber]); 237 236 } 238 },239 240 /**241 * @param {WebInspector.RawSourceCode} rawSourceCode242 */243 _restoreExecutionLine: function(rawSourceCode)244 {245 if (!this._selectedCallFrame || this._selectedCallFrame.rawSourceCode !== rawSourceCode)246 return;247 248 var uiLocation = rawSourceCode.rawLocationToUILocation(this._selectedCallFrame._callFrame.location);249 this.dispatchEventToListeners(WebInspector.DebuggerPresentationModel.Events.ExecutionLineChanged, uiLocation);250 237 }, 251 238 … … 568 555 set selectedCallFrame(callFrame) 569 556 { 557 if (this._executionLineLiveLocation) 558 this._executionLineLiveLocation.dispose(); 559 delete this._executionLineLiveLocation; 560 570 561 this._selectedCallFrame = callFrame; 571 562 if (!this._selectedCallFrame) … … 575 566 this.dispatchEventToListeners(WebInspector.DebuggerPresentationModel.Events.CallFrameSelected, callFrame); 576 567 577 var uiLocation = callFrame.rawSourceCode.rawLocationToUILocation(callFrame._callFrame.location);578 if (uiLocation)568 function updateExecutionLine(uiLocation) 569 { 579 570 this.dispatchEventToListeners(WebInspector.DebuggerPresentationModel.Events.ExecutionLineChanged, uiLocation); 571 } 572 this._executionLineLiveLocation = this._selectedCallFrame.rawSourceCode.createLiveLocation(callFrame._callFrame.location, updateExecutionLine.bind(this)); 573 this._executionLineLiveLocation.init(); 580 574 }, 581 575
Note: See TracChangeset
for help on using the changeset viewer.