Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Issue 999773002: Move loading machinery out of LoadableTextTrack (Closed)

Created:
5 years, 9 months ago by fs
Modified:
5 years, 9 months ago
Reviewers:
philipj_slow
CC:
blink-reviews, nessy, philipj_slow, gasubic, fs, eric.carlson_apple.com, blink-reviews-html_chromium.org, dglazkov+blink, vcarbune.chromium
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

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 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -142 lines) Patch
M Source/core/html/HTMLTrackElement.h View 3 chunks +27 lines, -12 lines 0 comments Download
M Source/core/html/HTMLTrackElement.cpp View 1 5 chunks +97 lines, -35 lines 0 comments Download
M Source/core/html/track/LoadableTextTrack.h View 3 chunks +6 lines, -16 lines 0 comments Download
M Source/core/html/track/LoadableTextTrack.cpp View 4 chunks +2 lines, -79 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
fs
5 years, 9 months ago (2015-03-11 14:41:00 UTC) #2
philipj_slow
I like this, looks like there's not too much of LoadableTextTrack left.. https://codereview.chromium.org/999773002/diff/1/Source/core/html/HTMLTrackElement.cpp File Source/core/html/HTMLTrackElement.cpp ...
5 years, 9 months ago (2015-03-12 04:24:08 UTC) #3
fs
On 2015/03/12 04:24:08, philipj_UTC7 wrote: > I like this, looks like there's not too much ...
5 years, 9 months ago (2015-03-12 15:22:18 UTC) #4
philipj_slow
lgtm https://codereview.chromium.org/999773002/diff/1/Source/core/html/HTMLTrackElement.cpp File Source/core/html/HTMLTrackElement.cpp (right): https://codereview.chromium.org/999773002/diff/1/Source/core/html/HTMLTrackElement.cpp#newcode196 Source/core/html/HTMLTrackElement.cpp:196: // The track element might have changed its ...
5 years, 9 months ago (2015-03-13 03:27:32 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/999773002/20001
5 years, 9 months ago (2015-03-13 03:27:44 UTC) #7
commit-bot: I haz the power
5 years, 9 months ago (2015-03-13 03:30:47 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191812

Powered by Google App Engine
This is Rietveld 408576698