Changeset 66989 in webkit
- Timestamp:
- Sep 8, 2010 9:11:12 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r66988 r66989 1 2010-09-08 Pavel Podivilov <podivilov@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: add breakpoints to source frame after content is loaded. 6 https://bugs.webkit.org/show_bug.cgi?id=43056 7 8 * inspector/front-end/ScriptsPanel.js: 9 (WebInspector.ScriptsPanel.prototype._resourceLoadingFinished): 10 (WebInspector.ScriptsPanel.prototype._showScriptOrResource): 11 * inspector/front-end/SourceView.js: 12 (WebInspector.SourceView.prototype._contentLoaded): 13 1 14 2010-09-08 Andreas Kling <andreas.kling@nokia.com> 2 15 -
trunk/WebCore/inspector/front-end/ScriptsPanel.js
r66087 r66989 277 277 // Remove script from the files list. 278 278 script.filesSelectOption.parentElement.removeChild(script.filesSelectOption); 279 280 // Move breakpoints to the resource's frame.281 if (script._scriptView) {282 var sourceFrame = script._scriptView.sourceFrame;283 var resourceFrame = this._sourceFrameForScriptOrResource(resource);284 for (var j = 0; j < sourceFrame.breakpoints; ++j)285 resourceFrame.addBreakpoint(sourceFrame.breakpoints[j]);286 }287 279 } 288 280 // Adding first script will add resource. … … 600 592 view = WebInspector.panels.resources.resourceViewForResource(scriptOrResource); 601 593 view.headersVisible = false; 602 var sourceFrame = this._sourceFrameForScriptOrResource(scriptOrResource);603 var breakpoints = WebInspector.breakpointManager.breakpointsForURL(scriptOrResource.url);604 for (var i = 0; i < breakpoints.length; ++i)605 sourceFrame.addBreakpoint(breakpoints[i]);606 594 } else if (scriptOrResource instanceof WebInspector.Script) 607 595 view = this.scriptViewForScript(scriptOrResource); -
trunk/WebCore/inspector/front-end/SourceView.js
r65939 r66989 100 100 this.sourceFrame.setContent(mimeType, content, this.resource.url); 101 101 this._sourceFrameSetupFinished(); 102 var breakpoints = WebInspector.breakpointManager.breakpointsForURL(this.resource.url); 103 for (var i = 0; i < breakpoints.length; ++i) 104 this.sourceFrame.addBreakpoint(breakpoints[i]); 102 105 }, 103 106
Note: See TracChangeset
for help on using the changeset viewer.