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

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

Issue 1961173003: Corrected assert for cacheable stylesheets. (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/core/fetch/CSSStyleSheetResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
index 66090f422ccc49ad3c753a8f3c679cc740772035..79944b497c9307516fb3714d8c57b14a215585be 100644
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
@@ -158,7 +158,7 @@ StyleSheetContents* CSSStyleSheetResource::restoreParsedStyleSheet(const CSSPars
return nullptr;
}
- ASSERT(m_parsedStyleSheetCache->isCacheable());
+ ASSERT(m_parsedStyleSheetCache->isCacheableForResource());
ASSERT(m_parsedStyleSheetCache->isReferencedFromResource());
// Contexts must be identical so we know we would get the same exact result if we parsed again.
@@ -172,7 +172,7 @@ StyleSheetContents* CSSStyleSheetResource::restoreParsedStyleSheet(const CSSPars
void CSSStyleSheetResource::saveParsedStyleSheet(StyleSheetContents* sheet)
{
- ASSERT(sheet && sheet->isCacheable());
+ ASSERT(sheet && sheet->isCacheableForResource());
if (!memoryCache()->contains(this)) {
// This stylesheet resource did conflict with another resource and was
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | third_party/WebKit/Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698