Simplify TextTrackCue::isActive

Make it a simple getter for the m_isActive flag. The other aspects of the
current condition should be managed by TextTrack. A breakdown on the
(non-assert) usage follows.

MediaControlTextTrackContainerElement::updateDisplay
  Already explicitly checks TextTrackCue::track() and isRendered on the
  track.

TextTrackCueList::collectActiveCues
  Caller (TextTrack::activeCues) checks mode != 'disabled'.

CueTimeline::* (mostly updateActiveCues)
  This class manages the flag, and should be notified when a cue is removed
  or a track has it's mode changed to disabled.

BUG=321654

Review URL: https://codereview.chromium.org/970203005

git-svn-id: svn://svn.chromium.org/blink/trunk@191298 bbb929c8-8fbe-4397-9dbb-9b2b20218538
3 files changed
tree: 4fa1785aa0d7b96f66294dde2589645d457c91a2
  1. third_party/