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

Unified Diff: Source/core/css/StyleSheet.h

Issue 187313005: Move StyleSheet to the oilpan heap using transition types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nullptr Created 6 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: Source/core/css/StyleSheet.h
diff --git a/Source/core/css/StyleSheet.h b/Source/core/css/StyleSheet.h
index 2207b5a006c15f23969a286c369658493ea59cfe..e92a7d657aa30d54dce4dd1794b1e02b98abdbbf 100644
--- a/Source/core/css/StyleSheet.h
+++ b/Source/core/css/StyleSheet.h
@@ -22,6 +22,7 @@
#define StyleSheet_h
#include "core/css/CSSParserMode.h"
+#include "heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/RefCounted.h"
@@ -33,7 +34,7 @@ class MediaList;
class Node;
class StyleSheet;
-class StyleSheet : public RefCounted<StyleSheet> {
+class StyleSheet : public RefCountedWillBeRefCountedGarbageCollected<StyleSheet> {
public:
virtual ~StyleSheet();
@@ -51,6 +52,8 @@ public:
virtual KURL baseURL() const = 0;
virtual bool isLoading() const = 0;
virtual bool isCSSStyleSheet() const { return false; }
+
+ virtual void trace(Visitor*) = 0;
};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698