Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: Source/WebCore/inspector/front-end/DebuggerPresentationModel.js

Issue 7051034: Merge 86963 - 2011-05-20 Pavel Podivilov <podivilov@chromium.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/front-end/DebuggerPresentationModel.js
===================================================================
--- Source/WebCore/inspector/front-end/DebuggerPresentationModel.js (revision 87065)
+++ Source/WebCore/inspector/front-end/DebuggerPresentationModel.js (working copy)
@@ -63,7 +63,10 @@
WebInspector.DebuggerPresentationModel.prototype = {
_debuggerWasEnabled: function()
{
+ if (this._breakpointsRestored)
+ return;
this._restoreBreakpointsFromSettings();
+ this._breakpointsRestored = true;
},
sourceFile: function(sourceFileId)
@@ -497,8 +500,15 @@
serializedBreakpoints = serializedBreakpoints.concat(this._breakpointsWithoutSourceFile[sourceFileId]);
// Sanitize debugger ids.
- for (var i = 0; i < serializedBreakpoints.length; ++i)
- delete serializedBreakpoints[i].debuggerId;
+ for (var i = 0; i < serializedBreakpoints.length; ++i) {
+ var breakpoint = serializedBreakpoints[i];
+ var breakpointCopy = {};
+ for (var property in breakpoint) {
+ if (property !== "debuggerId")
+ breakpointCopy[property] = breakpoint[property];
+ }
+ serializedBreakpoints[i] = breakpointCopy;
+ }
WebInspector.settings.breakpoints = serializedBreakpoints;
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698