|
Implement VTTCue.region and sync the VTTRegion interface
This CL implements the VTTCue.region property, replacing 'regionId'. The
main implementation mechanism is a new map in VTTParser that tracks the
regions currently seen.
Rewrite the region parser test to be based on cues rather than the list
of regions. This will ease the removal of TextTrack.regions.
Sync the VTTRegion with the current spec by
* renaming the 'height' property to 'lines',
* adding and using the ScrollSetting IDL enumeration type and
* dropping the 'id' and 'track' properties.
Update tests as needed to match the above changes.
BUG= 690014
Review-Url: https://codereview.chromium.org/2682333002
Cr-Commit-Position: refs/heads/master@{#449589}
Committed: https://chromium.googlesource.com/chromium/src/+/037ca4bef92ddae569a757a66006d60cfcc7bdc5
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+116 lines, -185 lines) |
Patch |
|
M |
third_party/WebKit/LayoutTests/media/track/captions-webvtt/header-regions.vtt
|
View
|
|
1 chunk |
+20 lines, -9 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/LayoutTests/media/track/regions-webvtt/text-track-cue-region-attribute.html
|
View
|
|
1 chunk |
+0 lines, -29 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/media/track/regions-webvtt/vtt-region-constructor.html
|
View
|
|
2 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/media/track/regions-webvtt/vtt-region-display.html
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/media/track/regions-webvtt/vtt-region-parser.html
|
View
|
|
1 chunk |
+31 lines, -28 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt
|
View
|
|
2 chunks |
+4 lines, -7 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/track/InbandTextTrack.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/track/LoadableTextTrack.cpp
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/track/vtt/VTTCue.h
|
View
|
|
4 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/track/vtt/VTTCue.cpp
|
View
|
|
9 chunks |
+15 lines, -36 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/track/vtt/VTTCue.idl
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/track/vtt/VTTParser.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/track/vtt/VTTParser.cpp
|
View
|
|
4 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/track/vtt/VTTRegion.h
|
View
|
|
5 chunks |
+4 lines, -14 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp
|
View
|
1
|
6 chunks |
+11 lines, -32 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/track/vtt/VTTRegion.idl
|
View
|
|
1 chunk |
+4 lines, -9 lines |
0 comments
|
Download
|
Total messages: 18 (13 generated)
|