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
tree: bc37e13ab7c011b8bb04ea089d4e0fd4246fd13f
  1. third_party/