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

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

Issue 913133003: Move text track active list management to CueTimeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename to CueTimeline. 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/LoadableTextTrack.cpp
diff --git a/Source/core/html/track/LoadableTextTrack.cpp b/Source/core/html/track/LoadableTextTrack.cpp
index 84b99fe3b1fdbff2cf99af15399b290d2ad45819..82285a4c61aecb926a17d7975d6c7017b66f6ff5 100644
--- a/Source/core/html/track/LoadableTextTrack.cpp
+++ b/Source/core/html/track/LoadableTextTrack.cpp
@@ -29,6 +29,7 @@
#include "core/dom/ElementTraversal.h"
#include "core/html/HTMLMediaElement.h"
#include "core/html/HTMLTrackElement.h"
+#include "core/html/track/CueTimeline.h"
#include "core/html/track/TextTrackCueList.h"
#include "core/html/track/vtt/VTTRegionList.h"
@@ -130,8 +131,8 @@ void LoadableTextTrack::newCuesAvailable(TextTrackLoader* loader)
m_cues->add(newCues[i].release());
}
- if (mediaElement() && mode() != disabledKeyword())
- mediaElement()->textTrackAddCues(this, m_cues.get());
+ if (cueTimeline() && mode() != disabledKeyword())
+ cueTimeline()->addCues(this, m_cues.get());
}
void LoadableTextTrack::cueLoadingCompleted(TextTrackLoader* loader, bool loadingFailed)

Powered by Google App Engine
This is Rietveld 408576698