Move loading machinery out of LoadableTextTrack

Currently, the code to load a text track is spread between
HTMLTrackElement, LoadableTextTrack and TextTrackLoader - where the former
two create the loader and respond to events from it. It's not obvious what
the responsibilities are for each of HTMLTrackElement and
LoadableTextTrack.
To clear this up a bit, move the shared loading responsibilities into
HTMLTrackElement only. This makes the code-flow more clear and even reduces
the amount of state involved.
Also update the spec prose comments and attempt to simplify the code
somewhat.

BUG=466083

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

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