DescriptionMove 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
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191812
Patch Set 1 #
Total comments: 7
Patch Set 2 : Comments; Use switch for same-url case. #
Messages
Total messages: 8 (2 generated)
|