DescriptionSimplify HTMLMediaElement::textTrackModeChanged
The if-"cascade" that dominates this method does two things:
* Schedules (adds) cues to the cue timeline
* Marks tracks originating from HTMLTrackElement as 'configured'.
If these two are separated, the former can be moved to the caller of
textTrackModeChanged (TextTrack::setMode) - and simplified
significantly.
With this HTMLMediaElement no longer calls CueTimeline::addCues itself.
BUG=321654
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190848
Patch Set 1 #
Total comments: 4
Messages
Total messages: 8 (2 generated)
|