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

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

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/CSSStyleSheetResource.h
diff --git a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h
index 51ff8d9133f57ef9d5ccdc4a76b781fe502b1672..7426b3b218a49a52d61ceed5a6129ce5934922c4 100644
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h
@@ -79,10 +79,10 @@ class CORE_EXPORT CSSStyleSheetResource final : public StyleSheetResource {
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