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

Unified Diff: Source/core/html/track/TextTrack.cpp

Issue 952493002: Simplify HTMLMediaElement::textTrackModeChanged (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/TextTrack.cpp
diff --git a/Source/core/html/track/TextTrack.cpp b/Source/core/html/track/TextTrack.cpp
index 54f2cbdec176b2a2c6a4aefe59f6fb5adc5abd34..bd9076360484d3b41f1fe89464e06d50ecae20ea 100644
--- a/Source/core/html/track/TextTrack.cpp
+++ b/Source/core/html/track/TextTrack.cpp
@@ -180,6 +180,11 @@ void TextTrack::setMode(const AtomicString& mode)
m_mode = mode;
+ if (mode != disabledKeyword() && readinessState() == Loaded) {
philipj_slow 2015/02/25 15:52:14 This was just copied, but is there any reason Read
fs 2015/02/25 16:26:11 If Loading, then cues will make their way to the t
+ if (m_cues && cueTimeline())
+ cueTimeline()->addCues(this, m_cues.get());
+ }
+
if (mediaElement())
mediaElement()->textTrackModeChanged(this);
}
« Source/core/html/HTMLMediaElement.cpp ('K') | « Source/core/html/HTMLMediaElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698