Commit 32e2f789 authored by sergeyv@chromium.org's avatar sergeyv@chromium.org

Devtools: Update breakpoints only in one specific target on UiSourceCodeMappingChanged

BUG=

Review URL: https://codereview.chromium.org/332203002

git-svn-id: svn://svn.chromium.org/blink/trunk@176208 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent ddb8b99f
......@@ -155,11 +155,12 @@ WebInspector.BreakpointManager.prototype = {
{
var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (event.target);
var isIdentity = /** @type {boolean} */ (event.data.isIdentity);
var target = /** @type {!WebInspector.Target} */ (event.data.target);
if (isIdentity)
return;
var breakpoints = this._breakpointsForPrimaryUISourceCode.get(uiSourceCode) || [];
for (var i = 0; i < breakpoints.length; ++i)
breakpoints[i]._updateInDebugger();
breakpoints[i]._updateInDebuggerForTarget(target);
},
/**
......@@ -584,7 +585,9 @@ WebInspector.BreakpointManager.Breakpoint.prototype = {
{
this._removeFakeBreakpointAtPrimaryLocation();
this._fakeBreakpointAtPrimaryLocation();
this._updateInDebugger();
var targetBreakpoints = this._targetBreakpoints.values();
for (var i = 0; i < targetBreakpoints.length; ++i)
targetBreakpoints[i]._updateInDebugger();
},
/**
......@@ -605,11 +608,12 @@ WebInspector.BreakpointManager.Breakpoint.prototype = {
this._breakpointManager._targetManager.unobserveTargets(this);
},
_updateInDebugger: function()
/**
* @param {!WebInspector.Target} target
*/
_updateInDebuggerForTarget: function(target)
{
var targetBreakpoints = this._targetBreakpoints.values();
for (var i = 0; i < targetBreakpoints.length; ++i)
targetBreakpoints[i]._updateInDebugger();
this._targetBreakpoints.get(target)._updateInDebugger();
},
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment