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

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

Issue 213173002: [Oilpan]: Move StyleMedia to the oilpan heap using transition types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review feedback Created 6 years, 9 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
« no previous file with comments | « no previous file | Source/core/css/StyleMedia.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/StyleMedia.h
diff --git a/Source/core/css/StyleMedia.h b/Source/core/css/StyleMedia.h
index fb83c427185f0305133f0e5da7aa2c255275a887..5ff83865abd7cf37e3085435313b5dd8d8f82f79 100644
--- a/Source/core/css/StyleMedia.h
+++ b/Source/core/css/StyleMedia.h
@@ -28,6 +28,7 @@
#define StyleMedia_h
#include "core/frame/DOMWindowProperty.h"
+#include "heap/Handle.h"
#include "wtf/RefCounted.h"
#include "wtf/text/WTFString.h"
@@ -35,13 +36,15 @@ namespace WebCore {
class LocalFrame;
-class StyleMedia : public RefCounted<StyleMedia>, public DOMWindowProperty {
+class StyleMedia : public RefCountedWillBeGarbageCollectedFinalized<StyleMedia>, public DOMWindowProperty {
public:
- static PassRefPtr<StyleMedia> create(LocalFrame* frame) { return adoptRef(new StyleMedia(frame));}
+ static PassRefPtrWillBeRawPtr<StyleMedia> create(LocalFrame* frame) { return adoptRefWillBeNoop(new StyleMedia(frame));}
AtomicString type() const;
bool matchMedium(const String&) const;
+ void trace(Visitor*) { }
+
private:
explicit StyleMedia(LocalFrame*);
};
« no previous file with comments | « no previous file | Source/core/css/StyleMedia.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698