Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js b/third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js |
| index 0e90c6fc8ade495e43691bbd839fd7d124e2daa5..f5d2edb9bea29b5d5e7d1b6924b8ce96d8a207e2 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js |
| @@ -469,20 +469,22 @@ WebInspector.DebuggerWorkspaceBinding.ScriptInfo.prototype = { |
| }, |
| /** |
| - * @param {!WebInspector.LiveLocation} location |
| + * @param {!WebInspector.DebuggerWorkspaceBinding.Location} location |
| */ |
| _addLocation: function(location) |
| { |
| this._locations.add(location); |
| + WebInspector.blackboxManager.addLiveLocation(location); |
| location.update(); |
| }, |
| /** |
| - * @param {!WebInspector.LiveLocation} location |
| + * @param {!WebInspector.DebuggerWorkspaceBinding.Location} location |
| */ |
| _removeLocation: function(location) |
| { |
| this._locations.delete(location); |
| + WebInspector.blackboxManager.removeLiveLocation(location); |
| }, |
| _updateLocations: function() |
| @@ -530,7 +532,10 @@ WebInspector.DebuggerWorkspaceBinding.Location.prototype = { |
| uiLocation: function() |
| { |
| var debuggerModelLocation = this._rawLocation; |
| - return this._binding.rawLocationToUILocation(debuggerModelLocation); |
| + var isBlackboxed = WebInspector.blackboxManager.isBlackboxedRawLocation(debuggerModelLocation); |
| + var uiLocation = this._binding.rawLocationToUILocation(debuggerModelLocation); |
| + uiLocation.setBlackboxed(isBlackboxed); |
|
dgozman
2016/02/17 22:46:22
Please add LiveLocation.isBlackboxed() and make cl
kozy
2016/02/18 01:52:24
Done.
|
| + return uiLocation; |
| }, |
| dispose: function() |
| @@ -539,6 +544,14 @@ WebInspector.DebuggerWorkspaceBinding.Location.prototype = { |
| this._binding._removeLiveLocation(this); |
| }, |
| + /** |
| + * @return {!WebInspector.Script} |
| + */ |
| + script: function() |
| + { |
| + return this._script; |
| + }, |
| + |
| __proto__: WebInspector.LiveLocation.prototype |
| } |