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

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

Issue 1974543002: DevTools: do not pro-actively query all StyleSheets for their content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 9442063aabc26d17eea0d88c32a5e4a3dccbcc4e..127f624aafd5d07182f5c729d0063c8c2d47fd93 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(sourceURL, contentType, Promise.resolve(sourceContent));
+ return WebInspector.StaticContentProvider.fromString(sourceURL, contentType, sourceContent);
return new WebInspector.CompilerSourceMappingContentProvider(sourceURL, contentType);
},

Powered by Google App Engine
This is Rietveld 408576698