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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user