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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js

Issue 1954423002: DevTools: introduce CSSStyleSheetHeader.originalContentProvider() method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simplify-network-project
Patch Set: address comments Created 4 years, 7 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/sdk/SourceMap.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
index 7e70894719b74a7c1fb5f0ae306555f95e3b4c9f..9442063aabc26d17eea0d88c32a5e4a3dccbcc4e 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
@@ -259,7 +259,7 @@ WebInspector.TextSourceMap.prototype = {
{
var sourceContent = this._sourceContentByURL[sourceURL];
if (sourceContent)
- return new WebInspector.StaticContentProvider(contentType, sourceContent, sourceURL);
+ return new WebInspector.StaticContentProvider(sourceURL, contentType, Promise.resolve(sourceContent));
return new WebInspector.CompilerSourceMappingContentProvider(sourceURL, contentType);
},

Powered by Google App Engine
This is Rietveld 408576698