Changeset 66989 in webkit


Ignore:
Timestamp:
Sep 8, 2010 9:11:12 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-09-08 Pavel Podivilov <podivilov@chromium.org>

Reviewed by Yury Semikhatsky.

Web Inspector: add breakpoints to source frame after content is loaded.
https://bugs.webkit.org/show_bug.cgi?id=43056

  • inspector/front-end/ScriptsPanel.js: (WebInspector.ScriptsPanel.prototype._resourceLoadingFinished): (WebInspector.ScriptsPanel.prototype._showScriptOrResource):
  • inspector/front-end/SourceView.js: (WebInspector.SourceView.prototype._contentLoaded):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r66988 r66989  
     12010-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
    1142010-09-08  Andreas Kling  <andreas.kling@nokia.com>
    215
  • trunk/WebCore/inspector/front-end/ScriptsPanel.js

    r66087 r66989  
    277277            // Remove script from the files list.
    278278            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             }
    287279        }
    288280        // Adding first script will add resource.
     
    600592            view = WebInspector.panels.resources.resourceViewForResource(scriptOrResource);
    601593            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]);
    606594        } else if (scriptOrResource instanceof WebInspector.Script)
    607595            view = this.scriptViewForScript(scriptOrResource);
  • trunk/WebCore/inspector/front-end/SourceView.js

    r65939 r66989  
    100100        this.sourceFrame.setContent(mimeType, content, this.resource.url);
    101101        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]);
    102105    },
    103106
Note: See TracChangeset for help on using the changeset viewer.