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

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

Issue 1807323002: [WeakMemoryCache 1a] Make Reference from Inspector to Resource weak, remove removedFromMemoryCache() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: auto-Rebase 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.h
diff --git a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h
index 0e60508c9e103a2676b49f0be6934c0d421595ea..e8890cd8fb09262764bcdda5346caf6f8d49131b 100644
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h
@@ -74,11 +74,14 @@ private:
CSSStyleSheetResource(const ResourceRequest&, const ResourceLoaderOptions&, const String& charset);
bool canUseSheet(MIMETypeCheck) const;
- void removedFromMemoryCache() override;
void checkNotify() override;
+ void willDestroyResourceInternal() override;
+
+ void setParsedStyleSheetCache(StyleSheetContents*);
String m_decodedSheetText;
+ // Call setParsedStyleSheetCache() to set/clear.
rune 2016/05/09 07:32:47 I don't think this comment adds much value.
hiroshige 2016/05/10 06:32:55 Done.
Member<StyleSheetContents> m_parsedStyleSheetCache;
};

Powered by Google App Engine
This is Rietveld 408576698