Index: Source/core/html/track/TextTrackContainer.cpp |
diff --git a/Source/core/html/track/TextTrackContainer.cpp b/Source/core/html/track/TextTrackContainer.cpp |
index 099502d33485bbcaee883c728c4a2bf6c5287e5e..2d303d395c2fe2f1d2a2345b0e336627d1801f60 100644 |
--- a/Source/core/html/track/TextTrackContainer.cpp |
+++ b/Source/core/html/track/TextTrackContainer.cpp |
@@ -106,6 +106,7 @@ void TextTrackContainer::updateDisplay(HTMLMediaElement& mediaElement) |
// 10. For each text track cue cue in cues that has not yet had |
// corresponding CSS boxes added to output, in text track cue order, run the |
// following substeps: |
+ double movieTime = video.currentTime(); |
for (size_t i = 0; i < activeCues.size(); ++i) { |
TextTrackCue* cue = activeCues[i].data(); |
@@ -114,6 +115,7 @@ void TextTrackContainer::updateDisplay(HTMLMediaElement& mediaElement) |
continue; |
cue->updateDisplay(*this); |
+ cue->updatePastAndFutureNodes(movieTime); |
} |
// 11. Return output. |