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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.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/bindings/NetworkProject.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js b/third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js
index 50f8a545a04dc54c45a3c6b68af603406c9f3b77..6adf7e31a578bbc5d979d662f98fe60959fbdd9b 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js
@@ -308,10 +308,11 @@ WebInspector.NetworkProject.prototype = {
if (header.isInline && !header.hasSourceURL && header.origin !== "inspector")
return;
- var uiSourceCode = this._createFile(header, WebInspector.ResourceTreeFrame.fromStyleSheet(header), false);
+ var originalContentProvider = header.originalContentProvider();
+ var uiSourceCode = this._createFile(originalContentProvider, WebInspector.ResourceTreeFrame.fromStyleSheet(header), false);
if (uiSourceCode) {
uiSourceCode[WebInspector.NetworkProject._styleSheetSymbol] = header;
- this._addUISourceCodeWithProvider(uiSourceCode, header);
+ this._addUISourceCodeWithProvider(uiSourceCode, originalContentProvider);
}
},

Powered by Google App Engine
This is Rietveld 408576698