Skip to content
  • vsevik@chromium.org's avatar
    Web Inspector: Distinguish breakpoints and breakpoint locations in BreakpointManager API · ccde99ef
    vsevik@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=113311
    
    Reviewed by Pavel Feldman.
    
    Source/WebCore:
    
    Made independent handling of breakpoints and breakpoint location in breakpoint manager consistent.
    JavaScriptSourceFrame now removes breakpoints originally set in it based on primary UI location.
    
    * inspector/front-end/BreakpointManager.js:
    (WebInspector.BreakpointManager.prototype.breakpointsForUISourceCode):
    (WebInspector.BreakpointManager.prototype.allBreakpoints):
    (WebInspector.BreakpointManager.prototype.breakpointLocationsForUISourceCode):
    (WebInspector.BreakpointManager.prototype.allBreakpointLocations):
    (WebInspector.BreakpointManager.prototype._projectWillReset.get for):
    (WebInspector.BreakpointManager.prototype._projectWillReset):
    * inspector/front-end/JavaScriptSourceFrame.js:
    (WebInspector.JavaScriptSourceFrame.prototype.onUISourceCodeContentChanged):
    (WebInspector.JavaScriptSourceFrame.prototype._restoreBreakpointsAfterEditing):
    (WebInspector.JavaScriptSourceFrame.prototype._removeAllBreakpoints):
    
    LayoutTests:
    
    * inspector/debugger/live-edit-breakpoints-expected.txt:
    * inspector/debugger/live-edit-breakpoints.html:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146903 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    ccde99ef