| Index: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
|
| index 05418f815f887ceb79897de28f999820b5f58745..e8afd85d4dc6180eaf8e9aa5f7f84a9d65687c4f 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
|
| @@ -94,8 +94,6 @@ Sources.JavaScriptSourceFrame = class extends SourceFrame.UISourceCodeFrame {
|
| /** @type {!Map.<number, !Element>} */
|
| this._valueWidgets = new Map();
|
| this.onBindingChanged();
|
| - Bindings.debuggerWorkspaceBinding.addEventListener(
|
| - Bindings.DebuggerWorkspaceBinding.Events.SourceMappingChanged, this._onSourceMappingChanged, this);
|
| /** @type {?Map<!Object, !Function>} */
|
| this._continueToLocationDecorations = null;
|
| }
|
| @@ -1351,21 +1349,13 @@ Sources.JavaScriptSourceFrame = class extends SourceFrame.UISourceCodeFrame {
|
| this._debuggerSourceCode = binding ? binding.network : this.uiSourceCode();
|
| }
|
|
|
| - /**
|
| - * @param {!Common.Event} event
|
| - */
|
| - _onSourceMappingChanged(event) {
|
| - var data = /** @type {{debuggerModel: !SDK.DebuggerModel, uiSourceCode: !Workspace.UISourceCode}} */ (event.data);
|
| - if (this._debuggerSourceCode !== data.uiSourceCode)
|
| - return;
|
| - this._updateScriptFile(data.debuggerModel);
|
| - this._updateLinesWithoutMappingHighlight();
|
| - }
|
| -
|
| _updateLinesWithoutMappingHighlight() {
|
| + var isSourceMapSource = !!Bindings.CompilerScriptMapping.uiSourceCodeOrigin(this._debuggerSourceCode);
|
| + if (!isSourceMapSource)
|
| + return;
|
| var linesCount = this.textEditor.linesCount;
|
| for (var i = 0; i < linesCount; ++i) {
|
| - var lineHasMapping = Bindings.debuggerWorkspaceBinding.uiLineHasMapping(this._debuggerSourceCode, i);
|
| + var lineHasMapping = Bindings.CompilerScriptMapping.uiLineHasMapping(this._debuggerSourceCode, i);
|
| if (!lineHasMapping)
|
| this._hasLineWithoutMapping = true;
|
| if (this._hasLineWithoutMapping)
|
| @@ -1590,7 +1580,7 @@ Sources.JavaScriptSourceFrame = class extends SourceFrame.UISourceCodeFrame {
|
| * @param {boolean} enabled
|
| */
|
| _setBreakpoint(lineNumber, columnNumber, condition, enabled) {
|
| - if (!Bindings.debuggerWorkspaceBinding.uiLineHasMapping(this._debuggerSourceCode, lineNumber))
|
| + if (!Bindings.CompilerScriptMapping.uiLineHasMapping(this._debuggerSourceCode, lineNumber))
|
| return;
|
|
|
| this._breakpointManager.setBreakpoint(this._debuggerSourceCode, lineNumber, columnNumber, condition, enabled);
|
| @@ -1610,8 +1600,6 @@ Sources.JavaScriptSourceFrame = class extends SourceFrame.UISourceCodeFrame {
|
| * @override
|
| */
|
| dispose() {
|
| - Bindings.debuggerWorkspaceBinding.removeEventListener(
|
| - Bindings.DebuggerWorkspaceBinding.Events.SourceMappingChanged, this._onSourceMappingChanged, this);
|
| this._breakpointManager.removeEventListener(
|
| Bindings.BreakpointManager.Events.BreakpointAdded, this._breakpointAdded, this);
|
| this._breakpointManager.removeEventListener(
|
|
|