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

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

Issue 2290983003: CSSStyleSheetResource should cache decoded text instead of raw bytes (Closed)
Patch Set: hiroshige review2 Created 4 years, 4 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.h
diff --git a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h
index 46888b5368c023d4ac7eaaf7ab802d501715c2b3..b44ce97d6a0f000b97775f800ae87f80908e54a8 100644
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h
@@ -76,8 +76,9 @@ private:
void setParsedStyleSheetCache(StyleSheetContents*);
void destroyDecodedDataIfPossible() override;
- void destroyDecodedDataForFailedRevalidation() override { destroyDecodedDataIfPossible(); }
+ void destroyDecodedDataForFailedRevalidation() override;
+ // Decoded sheet text cache is available iff loading this CSS resource is successfully complete.
String m_decodedSheetText;
Member<StyleSheetContents> m_parsedStyleSheetCache;

Powered by Google App Engine
This is Rietveld 408576698