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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sass/ASTSourceMap.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/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 2fe549168f98dcb774da28e7597bc404aed910e2..f3ed11eeb1ea5e5d98cda44b3d8db55803aa7555 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(contentType, sourceContent, sourceURL);
+ return new WebInspector.StaticContentProvider(sourceURL, contentType, Promise.resolve(sourceContent));
},
/**

Powered by Google App Engine
This is Rietveld 408576698