Simplify 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
Review URL: https://codereview.chromium.org/952493002
git-svn-id: svn://svn.chromium.org/blink/trunk@190848 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2 files changed