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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sass/ASTSourceMap.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/sass/ASTSourceMap.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sass/ASTSourceMap.js b/third_party/WebKit/Source/devtools/front_end/sass/ASTSourceMap.js
index f3ed11eeb1ea5e5d98cda44b3d8db55803aa7555..1793906970da15867359dcac81ea5bb5554f2c1d 100644
--- a/third_party/WebKit/Source/devtools/front_end/sass/ASTSourceMap.js
+++ b/third_party/WebKit/Source/devtools/front_end/sass/ASTSourceMap.js
@@ -61,7 +61,7 @@ WebInspector.ASTSourceMap.prototype = {
{
var model = this.modelForURL(sourceURL);
var sourceContent = model ? model.document.text.value() : "";
- return new WebInspector.StaticContentProvider(sourceURL, contentType, Promise.resolve(sourceContent));
+ return WebInspector.StaticContentProvider.fromString(sourceURL, contentType, sourceContent);
},
/**

Powered by Google App Engine
This is Rietveld 408576698