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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.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/DebuggerWorkspaceBinding.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js b/third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js
index f151676f328359d5fdff91e0aabecca6e1489f87..0e90c6fc8ade495e43691bbd839fd7d124e2daa5 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js
@@ -231,6 +231,18 @@ WebInspector.DebuggerWorkspaceBinding.prototype = {
},
/**
+ * @param {!WebInspector.Script} script
+ * @return {?WebInspector.SourceMap}
+ */
+ sourceMapForScript: function(script)
+ {
+ var targetData = this._targetToData.get(script.target());
+ if (!targetData)
+ return null;
+ return targetData._compilerMapping.sourceMapForScript(script);
+ },
+
+ /**
* @param {!WebInspector.Event} event
*/
_globalObjectCleared: function(event)

Powered by Google App Engine
This is Rietveld 408576698