diff options
| author | Steve Block <steveblock@google.com> | 2010-07-08 12:51:48 +0100 |
|---|---|---|
| committer | Steve Block <steveblock@google.com> | 2010-07-09 15:33:40 +0100 |
| commit | ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24 (patch) | |
| tree | bb45155550ec013adc0ad10f4d7d354c6469b022 /WebCore/inspector/front-end/ScriptsPanel.js | |
| parent | d4b24d9a829ed7de70381c8b99fb75a07ab40466 (diff) | |
| download | external_webkit-ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24.zip external_webkit-ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24.tar.gz external_webkit-ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24.tar.bz2 | |
Merge WebKit at r62496: Initial merge by git
Change-Id: Ie3da0770eca22a70a632e3571f31cfabc80facb2
Diffstat (limited to 'WebCore/inspector/front-end/ScriptsPanel.js')
| -rw-r--r-- | WebCore/inspector/front-end/ScriptsPanel.js | 7 |
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)) |
