Update a cue's insertion order when reinserting it with addCue()

TextTrack.addCue is specified to always remove the cue from any list it
currently resides in, but the implementation would only do that if it
was currently in a different track's list.
Also update spec. prose snippets and merge the two exception-conditions
in the removeCue-implementation. The "!m_cues || !m_cues->remove(cue)"
part should never be true unless state has been corrupted, and the spec.
only says to throw NotFoundError in any case.

BUG=460476

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

git-svn-id: svn://svn.chromium.org/blink/trunk@190655 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2 files changed
tree: dd3316d6c3d8b2759346c29251ec142ab3c99807
  1. third_party/