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

Unified Diff: Source/core/events/NodeEventContext.cpp

Issue 316443004: Oilpan: Remove ref counting from EventTarget and all uses of Pass/RefPtr<EventTarget>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/NodeEventContext.cpp
diff --git a/Source/core/events/NodeEventContext.cpp b/Source/core/events/NodeEventContext.cpp
index f520f5ae4e7eb3940f8df9b4a251995a232e3d86..2716c376aa942d1672cffcb66af6f782107ab740 100644
--- a/Source/core/events/NodeEventContext.cpp
+++ b/Source/core/events/NodeEventContext.cpp
@@ -35,7 +35,7 @@
namespace WebCore {
-NodeEventContext::NodeEventContext(PassRefPtrWillBeRawPtr<Node> node, PassRefPtr<EventTarget> currentTarget)
+NodeEventContext::NodeEventContext(PassRefPtrWillBeRawPtr<Node> node, PassRefPtrWillBeRawPtr<EventTarget> currentTarget)
: m_node(node)
, m_currentTarget(currentTarget)
{
@@ -49,6 +49,7 @@ NodeEventContext::~NodeEventContext()
void NodeEventContext::trace(Visitor* visitor)
{
visitor->trace(m_node);
+ visitor->trace(m_currentTarget);
}
void NodeEventContext::handleLocalEvents(Event* event) const

Powered by Google App Engine
This is Rietveld 408576698