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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.cpp

Issue 2290983003: CSSStyleSheetResource should cache decoded text instead of raw bytes (Closed)
Patch Set: rebased Created 4 years, 2 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/core/fetch/Resource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp
index bbbd21cb1516b4429b89819dc92ab7a23a14f075..01ce75df29d537f8b830bdb70a6bd5dac4334f64 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -455,7 +455,7 @@ bool Resource::isEligibleForIntegrityCheck(
void Resource::setIntegrityDisposition(
ResourceIntegrityDisposition disposition) {
DCHECK_NE(disposition, ResourceIntegrityDisposition::NotChecked);
- DCHECK(m_type == Resource::Script);
+ DCHECK(m_type == Resource::Script || m_type == Resource::CSSStyleSheet);
m_integrityDisposition = disposition;
}
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.h ('k') | third_party/WebKit/Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698