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

Unified Diff: third_party/WebKit/Source/core/css/StyleRuleImport.h

Issue 1667843003: Make Resource RefCountedWillBeGarbageCollectedFinalized, attempt #2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + address review comments Created 4 years, 10 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/css/StyleRuleImport.h
diff --git a/third_party/WebKit/Source/core/css/StyleRuleImport.h b/third_party/WebKit/Source/core/css/StyleRuleImport.h
index 2c795e15548eeec8d7cf02707dfcb83e4ddec64e..d7cb9d153b33566617755918c99b1b9a415d4353 100644
--- a/third_party/WebKit/Source/core/css/StyleRuleImport.h
+++ b/third_party/WebKit/Source/core/css/StyleRuleImport.h
@@ -23,7 +23,6 @@
#define StyleRuleImport_h
#include "core/css/StyleRule.h"
-#include "core/fetch/ResourcePtr.h"
#include "core/fetch/StyleSheetResourceClient.h"
#include "platform/heap/Handle.h"
@@ -35,6 +34,7 @@ class StyleSheetContents;
class StyleRuleImport : public StyleRuleBase {
USING_FAST_MALLOC_WILL_BE_REMOVED(StyleRuleImport);
+ WILL_BE_USING_PRE_FINALIZER(StyleRuleImport, dispose);
public:
static PassRefPtrWillBeRawPtr<StyleRuleImport> create(const String& href, PassRefPtrWillBeRawPtr<MediaQuerySet>);
@@ -83,13 +83,15 @@ private:
StyleRuleImport(const String& href, PassRefPtrWillBeRawPtr<MediaQuerySet>);
+ void dispose();
+
RawPtrWillBeMember<StyleSheetContents> m_parentStyleSheet;
ImportedStyleSheetClient m_styleSheetClient;
String m_strHref;
RefPtrWillBeMember<MediaQuerySet> m_mediaQueries;
RefPtrWillBeMember<StyleSheetContents> m_styleSheet;
- ResourcePtr<CSSStyleSheetResource> m_resource;
+ RefPtrWillBeMember<CSSStyleSheetResource> m_resource;
bool m_loading;
};
« no previous file with comments | « third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp ('k') | third_party/WebKit/Source/core/css/StyleRuleImport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698