Index: Source/core/html/track/TextTrackCue.h |
diff --git a/Source/core/html/track/TextTrackCue.h b/Source/core/html/track/TextTrackCue.h |
index 4faf72d6ce90ffd91e6b0bb4d1c34b09245c6d71..2f9524b6eaf666b8306ded85e8f7b3b59dff4d3a 100644 |
--- a/Source/core/html/track/TextTrackCue.h |
+++ b/Source/core/html/track/TextTrackCue.h |
@@ -34,14 +34,15 @@ |
#include "core/events/EventTarget.h" |
#include "core/html/HTMLDivElement.h" |
+#include "platform/heap/Handle.h" |
#include "wtf/RefCounted.h" |
namespace WebCore { |
class ExceptionState; |
-class TextTrackCue : public RefCounted<TextTrackCue>, public EventTargetWithInlineData { |
- REFCOUNTED_EVENT_TARGET(TextTrackCue); |
+class TextTrackCue : public RefCountedWillBeRefCountedGarbageCollected<TextTrackCue>, public EventTargetWithInlineData { |
+ DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<TextTrackCue>); |
public: |
static bool isInfiniteOrNonNumber(double value, ExceptionState&); |
@@ -96,6 +97,8 @@ public: |
DEFINE_ATTRIBUTE_EVENT_LISTENER(enter); |
DEFINE_ATTRIBUTE_EVENT_LISTENER(exit); |
+ virtual void trace(Visitor*); |
+ |
protected: |
TextTrackCue(double start, double end); |
@@ -108,7 +111,7 @@ private: |
double m_endTime; |
int m_cueIndex; |
- TextTrack* m_track; |
+ RawPtrWillBeMember<TextTrack> m_track; |
bool m_isActive : 1; |
bool m_pauseOnExit : 1; |