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

Issue 949203002: Separate the text track container from the media controls (Closed)

Created:
5 years, 10 months ago by philipj_slow
Modified:
5 years, 9 months ago
Reviewers:
fs, rune
CC:
blink-reviews, blink-reviews-rendering, feature-media-reviews_chromium.org, gasubic, sof, eae+blinkwatch, eric.carlson_apple.com, leviw+renderwatch, Dominik Röttsches, blink-reviews-dom_chromium.org, dglazkov+blink, nessy, jchaffraix+rendering, pdr+renderingwatchlist_chromium.org, blink-reviews-html_chromium.org, zoltan1, vcarbune.chromium, rwlbuis
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Separate the text track container from the media controls Having the text track container as a part of the media controls makes it harder to show and hide the controls as a group, which would be useful. One benefit of the old approach was that the controls automatically wouldn't overlap the cues. This is now broken, and two tests are affected. This will be addressed in a follow-up: https://codereview.chromium.org/1018593004/ TextTrackContainer is never hidden, as that used MediaControlElement's show() and hide(). If it does not have any cues nothing will be rendered, it will just sit there. If an optimization of this kind is worthwhile, it should be to remove the TextTrackContainer entirely from the DOM. Some bits of mediaControls.css that should have no effect are removed. BUG=448795 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192263

Patch Set 1 #

Patch Set 2 : only one text track container thank you #

Patch Set 3 : same size as media controls #

Total comments: 35

Patch Set 4 : address feedback #

Patch Set 5 : update tests #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Patch Set 8 : remove lies in comment #

Patch Set 9 : rebase #

Total comments: 6

Patch Set 10 : address nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -70 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/media/track/track-cue-rendering-horizontal.html View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/media/track/track-cue-rendering-vertical.html View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/css/mediaControls.css View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 6 7 8 4 chunks +48 lines, -8 lines 0 comments Download
M Source/core/html/shadow/MediaControls.h View 1 2 3 4 5 6 2 chunks +0 lines, -5 lines 0 comments Download
M Source/core/html/shadow/MediaControls.cpp View 1 2 3 4 5 6 4 chunks +0 lines, -20 lines 0 comments Download
M Source/core/html/track/TextTrackContainer.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -8 lines 0 comments Download
M Source/core/layout/LayoutMedia.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +32 lines, -17 lines 0 comments Download
M Source/core/layout/LayoutTextTrackContainer.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 34 (3 generated)
philipj_slow
only one text track container thank you
5 years, 10 months ago (2015-02-26 07:04:03 UTC) #1
philipj_slow
same size as media controls
5 years, 10 months ago (2015-02-26 07:32:28 UTC) #2
philipj_slow
I was moving things around and tinkering and suddenly everything just worked. This is still ...
5 years, 10 months ago (2015-02-26 09:30:59 UTC) #4
philipj_slow
Braindump. Rune, search for your name for the bits I added you for. https://codereview.chromium.org/949203002/diff/40001/Source/core/css/mediaControls.css File ...
5 years, 10 months ago (2015-02-26 09:51:52 UTC) #5
philipj_slow
The failing tests are because cues can now be obscured by the controls. I guess ...
5 years, 10 months ago (2015-02-26 09:55:12 UTC) #6
fs
https://codereview.chromium.org/949203002/diff/40001/Source/core/css/mediaControls.css File Source/core/css/mediaControls.css (left): https://codereview.chromium.org/949203002/diff/40001/Source/core/css/mediaControls.css#oldcode349 Source/core/css/mediaControls.css:349: padding-bottom: 5px; On 2015/02/26 09:51:52, philipj_UTC7 wrote: > I ...
5 years, 10 months ago (2015-02-26 12:30:52 UTC) #7
rune
https://codereview.chromium.org/949203002/diff/40001/Source/core/layout/LayoutMedia.cpp File Source/core/layout/LayoutMedia.cpp (right): https://codereview.chromium.org/949203002/diff/40001/Source/core/layout/LayoutMedia.cpp#newcode60 Source/core/layout/LayoutMedia.cpp:60: for (LayoutObject* child = m_children.firstChild(); child; child = child->nextSibling()) ...
5 years, 10 months ago (2015-02-26 13:17:16 UTC) #8
philipj_slow
On 2015/02/26 13:17:16, rune wrote: > https://codereview.chromium.org/949203002/diff/40001/Source/core/layout/LayoutMedia.cpp > File Source/core/layout/LayoutMedia.cpp (right): > > https://codereview.chromium.org/949203002/diff/40001/Source/core/layout/LayoutMedia.cpp#newcode60 > ...
5 years, 10 months ago (2015-02-27 04:39:25 UTC) #9
philipj_slow
address feedback
5 years, 10 months ago (2015-02-27 07:04:35 UTC) #10
philipj_slow
Thanks for the careful review. With the test update I think this is ready for ...
5 years, 10 months ago (2015-02-27 07:13:52 UTC) #11
philipj_slow
update tests
5 years, 10 months ago (2015-02-27 07:14:34 UTC) #12
philipj_slow
https://codereview.chromium.org/949203002/diff/40001/Source/core/html/HTMLMediaElement.h File Source/core/html/HTMLMediaElement.h (right): https://codereview.chromium.org/949203002/diff/40001/Source/core/html/HTMLMediaElement.h#newcode418 Source/core/html/HTMLMediaElement.h:418: TextTrackContainer* textTrackContainer() const; On 2015/02/26 12:30:51, fs wrote: > ...
5 years, 10 months ago (2015-02-27 07:32:44 UTC) #13
philipj_slow
rebase
5 years, 10 months ago (2015-02-27 07:38:38 UTC) #14
fs
https://codereview.chromium.org/949203002/diff/40001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/949203002/diff/40001/Source/core/html/HTMLMediaElement.cpp#newcode3231 Source/core/html/HTMLMediaElement.cpp:3231: // FIXME: this probably doesn't hold On 2015/02/27 07:13:51, ...
5 years, 9 months ago (2015-02-27 09:50:31 UTC) #15
philipj_slow
I'll now park this review until the follow-up is done and then ask for final ...
5 years, 9 months ago (2015-02-27 10:00:01 UTC) #16
fs
On 2015/02/27 10:00:01, philipj_UTC7 wrote: > I'll now park this review until the follow-up is ...
5 years, 9 months ago (2015-02-27 10:01:29 UTC) #17
fs
On 2015/02/27 10:01:29, fs wrote: > On 2015/02/27 10:00:01, philipj_UTC7 wrote: > > I'll now ...
5 years, 9 months ago (2015-03-06 14:00:10 UTC) #18
philipj_slow
On 2015/03/06 14:00:10, fs wrote: > On 2015/02/27 10:01:29, fs wrote: > > On 2015/02/27 ...
5 years, 9 months ago (2015-03-06 16:32:39 UTC) #19
fs
On 2015/03/06 16:32:39, philipj_UTC7 wrote: > On 2015/03/06 14:00:10, fs wrote: > > On 2015/02/27 ...
5 years, 9 months ago (2015-03-06 16:34:32 UTC) #20
fs
On 2015/03/06 16:34:32, fs wrote: > On 2015/03/06 16:32:39, philipj_UTC7 wrote: > > On 2015/03/06 ...
5 years, 9 months ago (2015-03-06 17:49:12 UTC) #21
philipj_slow
rebase
5 years, 9 months ago (2015-03-11 11:00:46 UTC) #22
philipj_slow
remove lies in comment
5 years, 9 months ago (2015-03-17 05:09:08 UTC) #23
philipj_slow
rebase
5 years, 9 months ago (2015-03-20 05:43:48 UTC) #24
philipj_slow
Please also LG TM this when the follow-up is good to go.
5 years, 9 months ago (2015-03-20 07:58:52 UTC) #25
sof
drive-by-nit https://codereview.chromium.org/949203002/diff/160001/Source/core/html/track/TextTrackContainer.cpp File Source/core/html/track/TextTrackContainer.cpp (left): https://codereview.chromium.org/949203002/diff/160001/Source/core/html/track/TextTrackContainer.cpp#oldcode121 Source/core/html/track/TextTrackContainer.cpp:121: // 11. Return output. Unmoored comment.
5 years, 9 months ago (2015-03-20 08:02:14 UTC) #26
fs
https://codereview.chromium.org/949203002/diff/160001/Source/core/layout/LayoutMedia.cpp File Source/core/layout/LayoutMedia.cpp (right): https://codereview.chromium.org/949203002/diff/160001/Source/core/layout/LayoutMedia.cpp#newcode68 Source/core/layout/LayoutMedia.cpp:68: layoutBox->style()->setHeight(Length(newSize.height(), Fixed)); Should probably use "mutableStyleRef" here to avoid ...
5 years, 9 months ago (2015-03-20 09:51:01 UTC) #27
fs
LGTM w/ nits https://codereview.chromium.org/949203002/diff/160001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/949203002/diff/160001/LayoutTests/TestExpectations#newcode1713 LayoutTests/TestExpectations:1713: crbug.com/448795 media/track/track-cue-rendering-horizontal.html [ NeedsRebaseline ] I ...
5 years, 9 months ago (2015-03-20 10:01:14 UTC) #28
philipj_slow
address nits
5 years, 9 months ago (2015-03-20 15:26:02 UTC) #29
philipj_slow
Thanks for patient review! https://codereview.chromium.org/949203002/diff/160001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/949203002/diff/160001/LayoutTests/TestExpectations#newcode1713 LayoutTests/TestExpectations:1713: crbug.com/448795 media/track/track-cue-rendering-horizontal.html [ NeedsRebaseline ] ...
5 years, 9 months ago (2015-03-20 15:26:11 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/949203002/180001
5 years, 9 months ago (2015-03-20 15:26:39 UTC) #33
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 16:53:42 UTC) #34
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192263

Powered by Google App Engine
This is Rietveld 408576698