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

Issue 851933003: WebVTT: Support 'auto' text position (Closed)

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

Description

WebVTT: Support 'auto' text position This changes the behavior of the VTTCue.position attribute to match the current spec. draft. It also changes the default of the same value when parsed from a VTT file or created via the VTTCue constructor. A number of tests where updated to reflect the new behavior (50 -> 'auto'). BUG=448000 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188753

Patch Set 1 #

Patch Set 2 : Drop questionmark. #

Total comments: 24

Patch Set 3 : Updated after some previous CLs. Rebased. #

Total comments: 6

Patch Set 4 : Fix test nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -91 lines) Patch
A + LayoutTests/media/track/opera/interfaces/VTTCue/position.html View 1 2 3 1 chunk +25 lines, -26 lines 0 comments Download
M LayoutTests/media/track/opera/track/webvtt/parsing/001.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/media/track/track-add-remove-cue.html View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/media/track/track-add-remove-cue-expected.txt View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/media/track/track-cue-mutable.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/media/track/track-cue-mutable-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/media/track/track-cue-rendering-position-auto.html View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
A LayoutTests/media/track/track-cue-rendering-position-auto-expected.html View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
M LayoutTests/media/track/track-webvtt-tc013-settings.html View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/media/track/track-webvtt-tc013-settings-expected.txt View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/media/track/track-webvtt-tc015-positioning.html View 3 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/media/track/track-webvtt-tc015-positioning-expected.txt View 1 chunk +10 lines, -10 lines 0 comments Download
M LayoutTests/media/track/track-webvtt-tc016-align-positioning.html View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/media/track/track-webvtt-tc016-align-positioning-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/media/track/track-webvtt-tc018-align-text-line-position.html View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/media/track/track-webvtt-tc018-align-text-line-position-expected.txt View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/media/track/track-webvtt-tc021-valign.html View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/media/track/track-webvtt-tc021-valign-expected.txt View 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/track/vtt/VTTCue.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M Source/core/html/track/vtt/VTTCue.cpp View 1 2 8 chunks +80 lines, -23 lines 0 comments Download
M Source/core/html/track/vtt/VTTCue.idl View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (2 generated)
fs
https://codereview.chromium.org/851933003/diff/20001/Source/core/html/track/vtt/VTTCue.cpp File Source/core/html/track/vtt/VTTCue.cpp (right): https://codereview.chromium.org/851933003/diff/20001/Source/core/html/track/vtt/VTTCue.cpp#newcode860 Source/core/html/track/vtt/VTTCue.cpp:860: if (textPositionIsAuto()) Changed this on the assumption that we ...
5 years, 11 months ago (2015-01-14 13:13:40 UTC) #2
philipj_slow
This is great, a few nits, and maybe split it differently. https://codereview.chromium.org/851933003/diff/20001/Source/core/html/track/vtt/VTTCue.cpp File Source/core/html/track/vtt/VTTCue.cpp (right): ...
5 years, 11 months ago (2015-01-15 09:08:58 UTC) #3
fs
https://codereview.chromium.org/851933003/diff/20001/Source/core/html/track/vtt/VTTCue.cpp File Source/core/html/track/vtt/VTTCue.cpp (right): https://codereview.chromium.org/851933003/diff/20001/Source/core/html/track/vtt/VTTCue.cpp#newcode355 Source/core/html/track/vtt/VTTCue.cpp:355: if (position.getAsString() != autoKeyword()) On 2015/01/15 09:08:57, philipj wrote: ...
5 years, 11 months ago (2015-01-15 10:07:16 UTC) #4
philipj_slow
Some more rambling. I haven't looked at the tests yet, but have to leave early ...
5 years, 11 months ago (2015-01-19 14:44:26 UTC) #5
fs
https://codereview.chromium.org/851933003/diff/20001/Source/core/html/track/vtt/VTTCue.cpp File Source/core/html/track/vtt/VTTCue.cpp (right): https://codereview.chromium.org/851933003/diff/20001/Source/core/html/track/vtt/VTTCue.cpp#newcode600 Source/core/html/track/vtt/VTTCue.cpp:600: return static_cast<int>(m_textPosition); On 2015/01/19 14:44:26, philipj wrote: > On ...
5 years, 11 months ago (2015-01-19 15:09:06 UTC) #6
fs
https://codereview.chromium.org/851933003/diff/20001/Source/core/html/track/vtt/VTTCue.cpp File Source/core/html/track/vtt/VTTCue.cpp (right): https://codereview.chromium.org/851933003/diff/20001/Source/core/html/track/vtt/VTTCue.cpp#newcode355 Source/core/html/track/vtt/VTTCue.cpp:355: if (position.getAsString() != autoKeyword()) On 2015/01/19 14:44:26, philipj wrote: ...
5 years, 11 months ago (2015-01-19 18:10:40 UTC) #7
fs
Back here again after the interlude. PTAL (this now looks very similar to the .line ...
5 years, 11 months ago (2015-01-21 12:35:08 UTC) #8
philipj_slow
LGTM, minor nits only. Do you also plan to make the parser changes? And in ...
5 years, 11 months ago (2015-01-21 15:02:14 UTC) #9
fs
On 2015/01/21 15:02:14, philipj wrote: > Do you also plan to make the parser changes? ...
5 years, 11 months ago (2015-01-21 15:28:24 UTC) #10
philipj_slow
Even more LGTM
5 years, 11 months ago (2015-01-21 15:45:50 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/851933003/60001
5 years, 11 months ago (2015-01-21 16:07:01 UTC) #13
commit-bot: I haz the power
5 years, 11 months ago (2015-01-21 16:35:59 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188753

Powered by Google App Engine
This is Rietveld 408576698