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

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

Issue 216523002: Oilpan: Replace most of RefPtrs for Event objects with oilpan's transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/events/EventDispatcher.h
diff --git a/Source/core/events/EventDispatcher.h b/Source/core/events/EventDispatcher.h
index 9fac66f9acb0d86efb9464e9bce5e2a436367a9c..7f672eff67e5f23c4a239d1f5f0d8013615f9ac0 100644
--- a/Source/core/events/EventDispatcher.h
+++ b/Source/core/events/EventDispatcher.h
@@ -27,6 +27,7 @@
#define EventDispatcher_h
#include "core/dom/SimulatedClickOptions.h"
+#include "heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
@@ -56,7 +57,7 @@ public:
Event* event() const { return m_event.get(); }
private:
- EventDispatcher(Node*, PassRefPtr<Event>);
+ EventDispatcher(Node*, PassRefPtrWillBeRawPtr<Event>);
const NodeEventContext* topNodeEventContext();
EventDispatchContinuation dispatchEventPreProcess(void*& preDispatchEventHandlerResult);
@@ -66,7 +67,7 @@ private:
void dispatchEventPostProcess(void* preDispatchEventHandlerResult);
RefPtr<Node> m_node;
- RefPtr<Event> m_event;
+ RefPtrWillBePersistent<Event> m_event;
RefPtr<FrameView> m_view;
#ifndef NDEBUG
bool m_eventDispatched;

Powered by Google App Engine
This is Rietveld 408576698