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

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

Issue 1989093003: Remove the prefinalizer of Resource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp1985033003
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 79944b497c9307516fb3714d8c57b14a215585be..7781999bbd9d7b9689fb34125c8cc3aa8f994c35 100644
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
@@ -58,18 +58,13 @@ CSSStyleSheetResource::~CSSStyleSheetResource()
{
}
-void CSSStyleSheetResource::willDestroyResourceInternal()
-{
- setParsedStyleSheetCache(nullptr);
-}
-
void CSSStyleSheetResource::setParsedStyleSheetCache(StyleSheetContents* newSheet)
{
if (m_parsedStyleSheetCache)
- m_parsedStyleSheetCache->setReferencedFromResource(false);
+ m_parsedStyleSheetCache->clearReferencedFromResource();
m_parsedStyleSheetCache = newSheet;
if (m_parsedStyleSheetCache)
- m_parsedStyleSheetCache->setReferencedFromResource(true);
+ m_parsedStyleSheetCache->setReferencedFromResource(this);
}
DEFINE_TRACE(CSSStyleSheetResource)
« no previous file with comments | « third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h ('k') | third_party/WebKit/Source/core/fetch/Resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698