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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.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/CSSModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js
index fe993b267d1e3697daffaa49a05240f3ead32494..2ca9b2f6eb0c05eb2c9de31011e8ee4b1d04eb95 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js
@@ -814,12 +814,18 @@ WebInspector.CSSModel.prototype = {
if (!promise) {
promise = this.getStyleSheetText(header.id);
this._originalStyleSheetText.set(header, promise);
+ this._originalContentRequestedForTest(header);
}
return promise;
},
/**
* @param {!WebInspector.CSSStyleSheetHeader} header
+ */
+ _originalContentRequestedForTest: function(header) { },
+
+ /**
+ * @param {!WebInspector.CSSStyleSheetHeader} header
* @return {!Promise<string>}
*/
originalStyleSheetText: function(header)

Powered by Google App Engine
This is Rietveld 408576698