| Index: Source/core/html/track/CueTimeline.cpp
|
| diff --git a/Source/core/html/track/CueTimeline.cpp b/Source/core/html/track/CueTimeline.cpp
|
| index 6c1d7e3dd6f19c1aa9b8af95f042d9e559bd24e6..796dd6e83ffb625b85e9cbcff0493f9fa4b954f9 100644
|
| --- a/Source/core/html/track/CueTimeline.cpp
|
| +++ b/Source/core/html/track/CueTimeline.cpp
|
| @@ -206,9 +206,13 @@ void CueTimeline::updateActiveCues(double movieTime)
|
| }
|
|
|
| for (CueInterval currentCue : currentCues) {
|
| - currentCue.data()->updateDisplayTree(movieTime);
|
| -
|
| - if (!currentCue.data()->isActive())
|
| + // Notify any cues that are already active of the current time to mark
|
| + // past and future nodes. Any inactive cues have an empty display state;
|
| + // they will be notified of the current time when the display state is
|
| + // updated.
|
| + if (currentCue.data()->isActive())
|
| + currentCue.data()->updatePastAndFutureNodes(movieTime);
|
| + else
|
| activeSetChanged = true;
|
| }
|
|
|
|
|