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

Unified Diff: Source/core/html/canvas/CanvasContextAttributes.h

Issue 365653002: Oilpan: move 2D Canvas and WebGL objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have Nullable<T>::trace() use TraceIfNeeded<>. Created 6 years, 5 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/html/canvas/CanvasContextAttributes.h
diff --git a/Source/core/html/canvas/CanvasContextAttributes.h b/Source/core/html/canvas/CanvasContextAttributes.h
index 912864a6123a4470e66e818603de0510bee10bda..2f4f937761c962c8d335c71da992c26bc0bc24c2 100644
--- a/Source/core/html/canvas/CanvasContextAttributes.h
+++ b/Source/core/html/canvas/CanvasContextAttributes.h
@@ -27,6 +27,7 @@
#ifndef CanvasContextAttributes_h
#define CanvasContextAttributes_h
+#include "platform/heap/Handle.h"
#include "wtf/RefCounted.h"
namespace WebCore {
@@ -34,11 +35,12 @@ namespace WebCore {
// A base class for any attributes that are needed which would affect
// the creation of the Canvas's rendering context.
-class CanvasContextAttributes : public RefCounted<CanvasContextAttributes> {
- public:
- virtual ~CanvasContextAttributes();
+class CanvasContextAttributes : public RefCountedWillBeGarbageCollectedFinalized<CanvasContextAttributes> {
+ DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(CanvasContextAttributes);
+public:
+ virtual void trace(Visitor*) { }
- protected:
+protected:
CanvasContextAttributes();
};

Powered by Google App Engine
This is Rietveld 408576698