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

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

Issue 333623002: Oilpan: Prepare to move EventDispatchMediator to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/dom/Node.cpp ('k') | Source/core/events/EventDispatchMediator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/EventDispatchMediator.h
diff --git a/Source/core/events/EventDispatchMediator.h b/Source/core/events/EventDispatchMediator.h
index 5c0376653aa75433ded231a6efdcd277d621e8e5..233c442273cae6cfbafffd6648157d04485e49af 100644
--- a/Source/core/events/EventDispatchMediator.h
+++ b/Source/core/events/EventDispatchMediator.h
@@ -42,10 +42,11 @@ class Event;
class EventDispatcher;
class Node;
-class EventDispatchMediator : public RefCounted<EventDispatchMediator> {
+class EventDispatchMediator : public RefCountedWillBeGarbageCollectedFinalized<EventDispatchMediator> {
public:
- static PassRefPtr<EventDispatchMediator> create(PassRefPtrWillBeRawPtr<Event>);
+ static PassRefPtrWillBeRawPtr<EventDispatchMediator> create(PassRefPtrWillBeRawPtr<Event>);
virtual ~EventDispatchMediator() { };
+ virtual void trace(Visitor*);
virtual bool dispatchEvent(EventDispatcher*) const;
Event* event() const { return m_event.get(); };
@@ -55,7 +56,7 @@ protected:
void setEvent(PassRefPtrWillBeRawPtr<Event> event) { m_event = event; };
private:
- RefPtrWillBePersistent<Event> m_event;
+ RefPtrWillBeMember<Event> m_event;
};
} // namespace WebCore
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/events/EventDispatchMediator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698