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

Unified Diff: Source/devtools/front_end/sources/ScriptFormatterEditorAction.js

Issue 299443016: DevTools: Decouple debugger model from UI entities (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge DebuggerScriptMapping into DebuggerWorkspaceBinding Created 6 years, 5 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/sources/ScriptFormatterEditorAction.js
diff --git a/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js b/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js
index 3585864223925657aa27f9764c9f5a454edc6736..ee7d5b8c50ef324ad2d84902ca51aa42e24561b4 100644
--- a/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js
+++ b/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js
@@ -300,7 +300,7 @@ WebInspector.ScriptFormatterEditorAction.prototype = {
this._pathsToFormatOnLoad.remove(path);
for (var i = 0; i < formatData.scripts.length; ++i) {
this._uiSourceCodes.remove(formatData.scripts[i]);
- formatData.scripts[i].popSourceMapping();
+ WebInspector.debuggerWorkspaceBinding.popSourceMapping(formatData.scripts[i]);
}
this._projectDelegate._removeFormatted(formattedUISourceCode.path());
},
@@ -421,7 +421,7 @@ WebInspector.ScriptFormatterEditorAction.prototype = {
for (var i = 0; i < scripts.length; ++i) {
this._uiSourceCodes.put(scripts[i], formattedUISourceCode);
var scriptMapping = /** @type {!WebInspector.FormatterScriptMapping} */(this._scriptMappingByTarget.get(scripts[i].target()));
- scripts[i].pushSourceMapping(scriptMapping);
+ WebInspector.debuggerWorkspaceBinding.pushSourceMapping(scripts[i], scriptMapping);
}
var targets = WebInspector.targetManager.targets();

Powered by Google App Engine
This is Rietveld 408576698