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; |
}, |
/** |