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

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

Issue 330273002: Oilpan: trace Event.currentTarget. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update XMLHttpRequestProgressEventThrottle comment 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/events/Event.h ('k') | Source/core/xml/XMLHttpRequestProgressEventThrottle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/Event.cpp
diff --git a/Source/core/events/Event.cpp b/Source/core/events/Event.cpp
index aa1ea8381d8cef1748e936c3656055763cf679ea..03b8e0717e2ec66fdce3b291bd57aa51963fb00b 100644
--- a/Source/core/events/Event.cpp
+++ b/Source/core/events/Event.cpp
@@ -47,7 +47,7 @@ Event::Event()
, m_defaultHandled(false)
, m_cancelBubble(false)
, m_eventPhase(0)
- , m_currentTarget(0)
+ , m_currentTarget(nullptr)
, m_createTime(convertSecondsToDOMTimeStamp(currentTime()))
{
ScriptWrappable::init(this);
@@ -63,7 +63,7 @@ Event::Event(const AtomicString& eventType, bool canBubbleArg, bool cancelableAr
, m_defaultHandled(false)
, m_cancelBubble(false)
, m_eventPhase(0)
- , m_currentTarget(0)
+ , m_currentTarget(nullptr)
, m_createTime(convertSecondsToDOMTimeStamp(currentTime()))
{
ScriptWrappable::init(this);
@@ -79,7 +79,7 @@ Event::Event(const AtomicString& eventType, const EventInit& initializer)
, m_defaultHandled(false)
, m_cancelBubble(false)
, m_eventPhase(0)
- , m_currentTarget(0)
+ , m_currentTarget(nullptr)
, m_createTime(convertSecondsToDOMTimeStamp(currentTime()))
{
ScriptWrappable::init(this);
@@ -248,6 +248,7 @@ EventTarget* Event::currentTarget() const
void Event::trace(Visitor* visitor)
{
+ visitor->trace(m_currentTarget);
visitor->trace(m_target);
visitor->trace(m_underlyingEvent);
visitor->trace(m_eventPath);
« no previous file with comments | « Source/core/events/Event.h ('k') | Source/core/xml/XMLHttpRequestProgressEventThrottle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698