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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sass/SASSSourceMapFactory.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/SASSSourceMapFactory.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sass/SASSSourceMapFactory.js b/third_party/WebKit/Source/devtools/front_end/sass/SASSSourceMapFactory.js
index b619a15e78f1d7f7437ee5f39990e5c68e55f0c3..4071fd1c193d4ec0b61c5d413383982bf6177f90 100644
--- a/third_party/WebKit/Source/devtools/front_end/sass/SASSSourceMapFactory.js
+++ b/third_party/WebKit/Source/devtools/front_end/sass/SASSSourceMapFactory.js
@@ -40,7 +40,7 @@ WebInspector.SASSSourceMapFactory.prototype = {
promises.push(sassPromise);
}
var cssURL = sourceMap.compiledURL();
- var cssPromise = header.requestContent()
+ var cssPromise = header.originalContentProvider().requestContent()
.then(text => this._astService.parseCSS(cssURL, text || ""))
.then(ast => models.set(ast.document.url, ast));
promises.push(cssPromise);

Powered by Google App Engine
This is Rietveld 408576698