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

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

Issue 228863002: DevTools: remove setScriptFile from UISourceCode. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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/UISourceCode.js
diff --git a/Source/devtools/front_end/UISourceCode.js b/Source/devtools/front_end/UISourceCode.js
index a03fbd63bd92a6c3e882dbd1934fb4743d4c8745..37feaab50889c0660c7725ba5e92438151cb3224 100644
--- a/Source/devtools/front_end/UISourceCode.js
+++ b/Source/devtools/front_end/UISourceCode.js
@@ -220,15 +220,11 @@ WebInspector.UISourceCode.prototype = {
*/
scriptFile: function()
{
- return this._scriptFile;
- },
-
- /**
- * @param {?WebInspector.ScriptFile} scriptFile
- */
- setScriptFile: function(scriptFile)
- {
- this._scriptFile = scriptFile;
+ if (this._sourceMapping instanceof WebInspector.SourceMappingWithScriptFile) {
+ var mapping = /** @type {!WebInspector.SourceMappingWithScriptFile} */ (this._sourceMapping);
+ return mapping.scriptFile(this);
+ }
+ return null;
},
/**
« Source/devtools/front_end/ScriptSnippetModel.js ('K') | « Source/devtools/front_end/SourceMapping.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698