Skip to content
  • vsevik@chromium.org's avatar
    Web Inspector: Introduce ScriptBound/ScriptUnbound events in ScriptMapping. · f62e26cd
    vsevik@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=81904
    
    Reviewed by Pavel Feldman.
    
    This is another step on the way to cleaner BreakpointManager logic.
    Here we extract ScriptBound/ScriptUnbound events from UISourceCodeListChanged event.
    This allows us to handle script-uiSourceCode binding separately from
    uiSourceCode creation/deletion and to handle unbinding that was not
    possible at all before.
    
    * inspector/front-end/CompilerScriptMapping.js:
    (WebInspector.CompilerScriptMapping.prototype._uiSourceCodesForSourceMap):
    (WebInspector.CompilerScriptMapping.prototype.addScript.get this):
    (WebInspector.CompilerScriptMapping.prototype.addScript):
    (WebInspector.CompilerScriptMapping.prototype.reset):
    * inspector/front-end/ResourceScriptMapping.js:
    (WebInspector.ResourceScriptMapping.prototype._uiSourceCodeChanged):
    * inspector/front-end/ScriptMapping.js:
    (WebInspector.MainScriptMapping):
    (WebInspector.MainScriptMapping.prototype._updateLiveLocation):
    (WebInspector.MainScriptMapping.prototype._handleUISourceCodeListChanged):
    (WebInspector.MainScriptMapping.prototype._handleScriptBound):
    (WebInspector.MainScriptMapping.prototype._handleScriptUnbound):
    * inspector/front-end/SnippetsModel.js:
    (WebInspector.SnippetsScriptMapping.prototype.addScript.get this):
    (WebInspector.SnippetsScriptMapping.prototype._snippetAdded):
    (WebInspector.SnippetsScriptMapping.prototype._createUISourceCodeForScript):
    (WebInspector.SnippetsScriptMapping.prototype._snippetRemoved.get this):
    (WebInspector.SnippetsScriptMapping.prototype._snippetRemoved):
    (WebInspector.SnippetsScriptMapping.prototype.reset):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111694 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f62e26cd