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

Issue 2682333002: Implement VTTCue.region and sync the VTTRegion interface (Closed)

Created:
3 years, 10 months ago by fs
Modified:
3 years, 10 months ago
Reviewers:
foolip
CC:
fs, blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, gasubic, mlamouri+watch-blink_chromium.org, nessy, Srirama
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add DCHECK #

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

Messages

Total messages: 18 (13 generated)
fs
In preparation of TextTrack.regions (et al) removal... turns out it's easier to add VTTCue.region before ...
3 years, 10 months ago (2017-02-09 19:08:18 UTC) #6
foolip
lgtm https://codereview.chromium.org/2682333002/diff/1/third_party/WebKit/Source/core/html/track/vtt/VTTCue.cpp File third_party/WebKit/Source/core/html/track/vtt/VTTCue.cpp (left): https://codereview.chromium.org/2682333002/diff/1/third_party/WebKit/Source/core/html/track/vtt/VTTCue.cpp#oldcode815 third_party/WebKit/Source/core/html/track/vtt/VTTCue.cpp:815: // TODO(foolip): The region identifier may be non-empty ...
3 years, 10 months ago (2017-02-09 19:37:46 UTC) #7
fs
https://codereview.chromium.org/2682333002/diff/1/third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp File third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp (right): https://codereview.chromium.org/2682333002/diff/1/third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp#newcode155 third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp:155: m_scroll = value != emptyAtom; On 2017/02/09 at 19:37:46, ...
3 years, 10 months ago (2017-02-10 08:52:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2682333002/20001
3 years, 10 months ago (2017-02-10 11:26:17 UTC) #15
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 11:31:10 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/037ca4bef92ddae569a757a66006...

Powered by Google App Engine
This is Rietveld 408576698