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

Unified Diff: Source/core/html/track/vtt/VTTCue.h

Issue 224833002: Implement DataCue interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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/html/track/vtt/VTTCue.h
diff --git a/Source/core/html/track/vtt/VTTCue.h b/Source/core/html/track/vtt/VTTCue.h
index 539800500eaf007d3328a726d3cebd7daeb810a3..f61970838368ac15be6993c68704627b28ce648c 100644
--- a/Source/core/html/track/vtt/VTTCue.h
+++ b/Source/core/html/track/vtt/VTTCue.h
@@ -131,6 +131,8 @@ public:
};
CueAlignment getAlignment() const { return m_cueAlignment; }
+ virtual CueType cueType() const OVERRIDE { return WebVTT; }
+
virtual ExecutionContext* executionContext() const OVERRIDE;
#ifndef NDEBUG
@@ -188,7 +190,7 @@ private:
};
// VTTCue is currently the only TextTrackCue subclass.
acolwell GONE FROM CHROMIUM 2014/04/04 23:25:27 nit: Please remove this comment now that it is no
-DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true);
+DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, cue->cueType() == TextTrackCue::WebVTT, cue.cueType() == TextTrackCue::WebVTT);
} // namespace WebCore
« Source/core/html/track/TextTrackCue.h ('K') | « Source/core/html/track/TextTrackCue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698