Bug 1509446 - part6 : update cues display without checking whether cue is active or not. r=jya

We should update cue display everytime when the cues list changed.

In addition, we shouldn't check whether cue is active when we update display, because it's always inactive when the cue has been removed from `TextTrack::RemoveCue()`.

Differential Revision: https://phabricator.services.mozilla.com/D21143
This commit is contained in:
Alastor Wu
2019-03-05 19:48:31 +00:00
parent fe7579fb18
commit 7c3833ba6a

View File

@@ -295,10 +295,7 @@ void TextTrackManager::NotifyCueRemoved(TextTrackCue& aCue) {
mNewCues->RemoveCue(aCue);
}
TimeMarchesOn();
if (aCue.GetActive()) {
// We remove an active cue, need to update the display.
DispatchUpdateCueDisplay();
}
DispatchUpdateCueDisplay();
}
void TextTrackManager::PopulatePendingList() {