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

Issue 864043002: WebVTT: Support fractional percentage values for position/line/size (Closed)

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

Description

WebVTT: Support fractional percentage values for position/line/size This updates the WebVTT (cue settings) parser to accept fractional percentage values for the 'position', 'line' and 'size' settings - per the current spec draft. Also updates spec steps and rewraps some comments. BUG=364697 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188814

Patch Set 1 #

Total comments: 9

Patch Set 2 : Moar tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -87 lines) Patch
M LayoutTests/media/track/opera/track/webvtt/parsing/support/cue-counts.json View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/media/track/opera/track/webvtt/parsing/support/settings-line.vtt View 2 chunks +6 lines, -0 lines 0 comments Download
M LayoutTests/media/track/opera/track/webvtt/parsing/support/settings-position.vtt View 1 2 chunks +23 lines, -2 lines 0 comments Download
M LayoutTests/media/track/opera/track/webvtt/parsing/support/settings-size.vtt View 1 1 chunk +15 lines, -0 lines 0 comments Download
M Source/core/html/track/vtt/VTTCue.cpp View 2 chunks +90 lines, -82 lines 0 comments Download
M Source/core/html/track/vtt/VTTScanner.h View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/html/track/vtt/VTTScanner.cpp View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
fs
5 years, 11 months ago (2015-01-21 18:00:44 UTC) #2
philipj_slow
Heading out for lunch now, but I've looked through VTTCue.cpp. https://codereview.chromium.org/864043002/diff/1/Source/core/html/track/vtt/VTTCue.cpp File Source/core/html/track/vtt/VTTCue.cpp (right): https://codereview.chromium.org/864043002/diff/1/Source/core/html/track/vtt/VTTCue.cpp#newcode1063 ...
5 years, 11 months ago (2015-01-22 10:31:03 UTC) #3
fs
https://codereview.chromium.org/864043002/diff/1/Source/core/html/track/vtt/VTTCue.cpp File Source/core/html/track/vtt/VTTCue.cpp (right): https://codereview.chromium.org/864043002/diff/1/Source/core/html/track/vtt/VTTCue.cpp#newcode1063 Source/core/html/track/vtt/VTTCue.cpp:1063: if (!input.isAt(valueRun.end())) On 2015/01/22 10:31:03, philipj wrote: > Can ...
5 years, 11 months ago (2015-01-22 11:22:38 UTC) #4
philipj_slow
That's what I get for only reading part of the CL :)
5 years, 11 months ago (2015-01-22 12:49:35 UTC) #5
philipj_slow
lgtm https://codereview.chromium.org/864043002/diff/1/LayoutTests/media/track/opera/track/webvtt/parsing/support/settings-position.vtt File LayoutTests/media/track/opera/track/webvtt/parsing/support/settings-position.vtt (right): https://codereview.chromium.org/864043002/diff/1/LayoutTests/media/track/opera/track/webvtt/parsing/support/settings-position.vtt#newcode12 LayoutTests/media/track/opera/track/webvtt/parsing/support/settings-position.vtt:12: 00:00:00.000 --> 00:00:01.000 position:1.5 Maybe test with 1.0 ...
5 years, 11 months ago (2015-01-22 12:55:44 UTC) #6
fs
https://codereview.chromium.org/864043002/diff/1/LayoutTests/media/track/opera/track/webvtt/parsing/support/settings-position.vtt File LayoutTests/media/track/opera/track/webvtt/parsing/support/settings-position.vtt (right): https://codereview.chromium.org/864043002/diff/1/LayoutTests/media/track/opera/track/webvtt/parsing/support/settings-position.vtt#newcode12 LayoutTests/media/track/opera/track/webvtt/parsing/support/settings-position.vtt:12: 00:00:00.000 --> 00:00:01.000 position:1.5 On 2015/01/22 12:55:44, philipj wrote: ...
5 years, 11 months ago (2015-01-22 13:17:07 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/864043002/20001
5 years, 11 months ago (2015-01-22 14:09:20 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://src.chromium.org/viewvc/blink?view=rev&revision=188814
5 years, 11 months ago (2015-01-22 14:26:32 UTC) #10
philipj_slow
5 years, 11 months ago (2015-01-22 15:00:22 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/864043002/diff/1/LayoutTests/media/track/oper...
File
LayoutTests/media/track/opera/track/webvtt/parsing/support/settings-size.vtt
(right):

https://codereview.chromium.org/864043002/diff/1/LayoutTests/media/track/oper...
LayoutTests/media/track/opera/track/webvtt/parsing/support/settings-size.vtt:36:
00:00:00.000 --> 00:00:01.000 size:1e1%
On 2015/01/22 13:17:06, fs wrote:
> On 2015/01/22 12:55:44, philipj wrote:
> > On the same theme "5.%" and ".5%"?
> 
> Added. (On the same theme though? Those are both valid...)

Oops, I was thinking about the syntax there:
http://dev.w3.org/html5/webvtt/#dfn-webvtt-percentage

Powered by Google App Engine
This is Rietveld 408576698