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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js

Issue 1663723002: [DevTools] Add sourceMap support for blackboxing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@call-set-blackboxed-ranges-on-script-parsed
Patch Set: Created 4 years, 10 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: third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js
index 6584ca8213350e12216a1ca331fcaa21ef8079c4..e116c9f7670c2fb67f363e424df174b4cc633994 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js
@@ -157,6 +157,15 @@ WebInspector.CompilerScriptMapping.prototype = {
},
/**
+ * @param {!WebInspector.Script} script
+ * @return {?WebInspector.SourceMap}
+ */
+ sourceMapForScript: function(script)
+ {
+ return this._sourceMapForScriptId[script.scriptId];
+ },
+
+ /**
* @param {!WebInspector.Event} event
*/
_sourceMapURLAdded: function(event)
@@ -187,6 +196,8 @@ WebInspector.CompilerScriptMapping.prototype = {
*/
_sourceMapLoaded: function(script, uiSourceCodePath, sourceMap)
{
+ WebInspector.blackboxManager.sourceMapLoaded(script, sourceMap);
+
this._stubUISourceCodes.delete(script.scriptId);
this._stubProject.removeFile(uiSourceCodePath);

Powered by Google App Engine
This is Rietveld 408576698