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

Unified Diff: Source/devtools/front_end/BreakpointManager.js

Issue 220903002: DevTools: wrap DebuggerAgent.Location with DebuggerModel.Location. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: All tests!!! Created 6 years, 9 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
Index: Source/devtools/front_end/BreakpointManager.js
diff --git a/Source/devtools/front_end/BreakpointManager.js b/Source/devtools/front_end/BreakpointManager.js
index 39dc41b9e6915d31d310d2133137e7fac09c3301..d7ea3665fcde8d47afafb960bd371278e6c5df01 100644
--- a/Source/devtools/front_end/BreakpointManager.js
+++ b/Source/devtools/front_end/BreakpointManager.js
@@ -487,7 +487,7 @@ WebInspector.BreakpointManager.Breakpoint.prototype = {
*/
_addResolvedLocation: function(location)
{
- this._liveLocations.push(this._breakpointManager._debuggerModel.createLiveLocation(location, this._locationUpdated.bind(this, location)));
+ this._liveLocations.push(location.createLiveLocation(this._locationUpdated.bind(this, location)));
},
/**
@@ -614,7 +614,7 @@ WebInspector.BreakpointManager.Breakpoint.prototype = {
this._resetLocations();
for (var i = 0; i < locations.length; ++i) {
- var script = this._breakpointManager._debuggerModel.scriptForId(locations[i].scriptId);
+ var script = locations[i].script();
var uiLocation = script.rawLocationToUILocation(locations[i].lineNumber, locations[i].columnNumber);
if (this._breakpointManager.findBreakpoint(uiLocation.uiSourceCode, uiLocation.lineNumber, uiLocation.columnNumber)) {
// location clash

Powered by Google App Engine
This is Rietveld 408576698