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

Unified Diff: Source/devtools/front_end/sdk/DefaultScriptMapping.js

Issue 464963002: DevTools: Make UISourceCode Target-agnostic (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/sdk/DefaultScriptMapping.js
diff --git a/Source/devtools/front_end/sdk/DefaultScriptMapping.js b/Source/devtools/front_end/sdk/DefaultScriptMapping.js
index 5e88320fdab8e9d57ecbfdd5a85ab8559b6146c9..0331b5cecb04df9eaadcee75b4a1d7c2937d7c74 100644
--- a/Source/devtools/front_end/sdk/DefaultScriptMapping.js
+++ b/Source/devtools/front_end/sdk/DefaultScriptMapping.js
@@ -87,7 +87,7 @@ WebInspector.DefaultScriptMapping.prototype = {
}
this._uiSourceCodeForScriptId[script.scriptId] = uiSourceCode;
this._scriptIdForUISourceCode.put(uiSourceCode, script.scriptId);
- uiSourceCode.setSourceMappingForTarget(this._debuggerModel.target(), this);
+ this._debuggerWorkspaceBinding.setSourceMapping(this._debuggerModel.target(), uiSourceCode, this);
this._debuggerWorkspaceBinding.pushSourceMapping(script, this);
script.addEventListener(WebInspector.Script.Events.ScriptEdited, this._scriptEdited.bind(this, script.scriptId));
},

Powered by Google App Engine
This is Rietveld 408576698