summaryrefslogtreecommitdiffstats
path: root/WebCore/inspector/front-end/ScriptsPanel.js
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/inspector/front-end/ScriptsPanel.js')
-rw-r--r--WebCore/inspector/front-end/ScriptsPanel.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/WebCore/inspector/front-end/ScriptsPanel.js b/WebCore/inspector/front-end/ScriptsPanel.js
index c23db14..5563b93 100644
--- a/WebCore/inspector/front-end/ScriptsPanel.js
+++ b/WebCore/inspector/front-end/ScriptsPanel.js
@@ -224,9 +224,9 @@ WebInspector.ScriptsPanel.prototype = {
hide: function()
{
- WebInspector.Panel.prototype.hide.call(this);
if (this.visibleView)
this.visibleView.hide();
+ WebInspector.Panel.prototype.hide.call(this);
},
get searchableViews()
@@ -364,9 +364,10 @@ WebInspector.ScriptsPanel.prototype = {
}
for (var i = 0; i < breakpoints.length; ++i) {
var breakpoint = breakpoints[i];
+ var newLine = breakpoint.line;
if (success && breakpoint.line >= line)
- breakpoint.line += linesCountToShift;
- WebInspector.breakpointManager.addBreakpoint(breakpoint);
+ newLine += linesCountToShift;
+ WebInspector.breakpointManager.setBreakpoint(sourceID, breakpoint.url, newLine, breakpoint.enabled, breakpoint.condition);
}
};
var callbackId = WebInspector.Callback.wrap(mycallback.bind(this))