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

Unified Diff: Source/core/html/track/TextTrackCue.h

Issue 244493002: Oilpan: add transition types to track interface objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add crbug.com/365260 crashing test + expectation Created 6 years, 8 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/html/track/TextTrack.idl ('k') | Source/core/html/track/TextTrackCue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/core/html/track/TextTrack.idl ('k') | Source/core/html/track/TextTrackCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698