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

Unified Diff: Source/core/events/Event.h

Issue 181153003: Make Event RefCountedGarbageCollected and implement trace() methods to the Event hierarcy (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/core/events/ErrorEvent.cpp ('k') | Source/core/events/Event.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/Event.h
diff --git a/Source/core/events/Event.h b/Source/core/events/Event.h
index bc7ce5d83ad7b8ede6e8fb7f0d321d16b7e83b3e..d63cea615a7019095c310d16f23a3e9cbbb86fc6 100644
--- a/Source/core/events/Event.h
+++ b/Source/core/events/Event.h
@@ -44,7 +44,7 @@ struct EventInit {
bool cancelable;
};
-class Event : public ScriptWrappable, public RefCounted<Event> {
+class Event : public RefCountedWillBeRefCountedGarbageCollected<Event>, public ScriptWrappable {
public:
enum PhaseType {
NONE = 0,
@@ -179,6 +179,8 @@ public:
bool isBeingDispatched() const { return eventPhase(); }
+ virtual void trace(Visitor*);
+
protected:
Event();
Event(const AtomicString& type, bool canBubble, bool cancelable);
« no previous file with comments | « Source/core/events/ErrorEvent.cpp ('k') | Source/core/events/Event.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698