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

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

Issue 211243006: DevTools: fix pretty-print functionality for VM scripts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ScriptFormatterEditorAction.js
diff --git a/Source/devtools/front_end/ScriptFormatterEditorAction.js b/Source/devtools/front_end/ScriptFormatterEditorAction.js
index 3dd22eab61ef2bf3cb139a107c282bd4871f212c..f3da63660536f0d2023726b79991105ba3bbd4ca 100644
--- a/Source/devtools/front_end/ScriptFormatterEditorAction.js
+++ b/Source/devtools/front_end/ScriptFormatterEditorAction.js
@@ -84,6 +84,11 @@ WebInspector.FormatterScriptMapping.prototype = {
default:
return [];
}
+ if (!uiSourceCode.url) {
+ var scriptId = uiSourceCode._sourceMapping._scriptIdForUISourceCode.get(uiSourceCode);
pfeldman 2014/03/25 18:31:10 Too much private field access for one line.
lushnikov 2014/03/25 18:58:42 Done.
+ var script = this._debuggerModel.scriptForId(scriptId);
+ return [ script ];
+ }
var scripts = this._debuggerModel.scriptsForSourceURL(uiSourceCode.url);
function filterOutIncorrectInlineType(script)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698