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

Issue 1018593004: Implement <video controls> dodging for text track layout (Closed)

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

Description

Implement <video controls> dodging for text track layout This is a follow-up to "Separate the text track container from the media controls": https://codereview.chromium.org/949203002/ Previously, we got this behavior for free because the text track container was part of the media controls. BUG=448795 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192281

Patch Set 1 #

Total comments: 1

Patch Set 2 : take TextTrackContainer out of the loop #

Total comments: 8

Patch Set 3 : cleanup #

Patch Set 4 : ready for review #

Total comments: 6

Patch Set 5 : braces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -42 lines) Patch
A + LayoutTests/media/track/track-cue-rendering-after-controls-added.html View 1 2 3 2 chunks +11 lines, -7 lines 0 comments Download
A + LayoutTests/media/track/track-cue-rendering-after-controls-added-expected.html View 1 2 3 1 chunk +10 lines, -4 lines 0 comments Download
A + LayoutTests/media/track/track-cue-rendering-after-controls-removed.html View 1 2 3 2 chunks +12 lines, -8 lines 0 comments Download
A + LayoutTests/media/track/track-cue-rendering-after-controls-removed-expected.html View 1 2 3 1 chunk +9 lines, -3 lines 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 1 chunk +12 lines, -1 line 0 comments Download
M Source/core/html/shadow/MediaControlElements.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/html/shadow/MediaControlElements.cpp View 1 2 3 4 3 chunks +14 lines, -1 line 0 comments Download
M Source/core/html/shadow/MediaControls.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/html/shadow/MediaControls.cpp View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M Source/core/html/track/TextTrackContainer.h View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download
M Source/core/html/track/TextTrackContainer.cpp View 1 2 3 4 3 chunks +12 lines, -8 lines 0 comments Download
M Source/core/layout/LayoutMedia.cpp View 1 2 3 4 1 chunk +16 lines, -2 lines 0 comments Download
M Source/core/layout/LayoutVTTCue.cpp View 1 2 6 chunks +23 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (3 generated)
philipj_slow
This kind of works, but look how naughty I had to be, using MediaControls inside ...
5 years, 9 months ago (2015-03-17 09:10:32 UTC) #2
philipj_slow
After putting it all together I think one might just as well have LayoutVTTCue go ...
5 years, 9 months ago (2015-03-17 09:12:34 UTC) #3
philipj_slow
Spec: "If the last time these rules were run, the user agent was not exposing ...
5 years, 9 months ago (2015-03-17 09:18:44 UTC) #4
fs
On 2015/03/17 09:12:34, philipj_UTC7 wrote: > After putting it all together I think one might ...
5 years, 9 months ago (2015-03-17 10:27:56 UTC) #5
philipj_slow
take TextTrackContainer out of the loop
5 years, 9 months ago (2015-03-17 15:43:49 UTC) #6
philipj_slow
OK, with TextTrackContainer out of the way this is less unsightly. Testing this I notice ...
5 years, 9 months ago (2015-03-17 16:15:43 UTC) #7
fs
https://codereview.chromium.org/1018593004/diff/20001/Source/core/layout/LayoutVTTCue.cpp File Source/core/layout/LayoutVTTCue.cpp (right): https://codereview.chromium.org/1018593004/diff/20001/Source/core/layout/LayoutVTTCue.cpp#newcode33 Source/core/layout/LayoutVTTCue.cpp:33: #include "core/layout/LayoutTextTrackContainer.h" No longer needed? https://codereview.chromium.org/1018593004/diff/20001/Source/core/layout/LayoutVTTCue.cpp#newcode46 Source/core/layout/LayoutVTTCue.cpp:46: SnapToLinesLayouter(LayoutVTTCue& cueBox, ...
5 years, 9 months ago (2015-03-17 16:46:48 UTC) #8
philipj_slow
cleanup
5 years, 9 months ago (2015-03-17 17:44:11 UTC) #9
philipj_slow
https://codereview.chromium.org/1018593004/diff/20001/Source/core/layout/LayoutVTTCue.cpp File Source/core/layout/LayoutVTTCue.cpp (right): https://codereview.chromium.org/1018593004/diff/20001/Source/core/layout/LayoutVTTCue.cpp#newcode33 Source/core/layout/LayoutVTTCue.cpp:33: #include "core/layout/LayoutTextTrackContainer.h" On 2015/03/17 16:46:48, fs wrote: > No ...
5 years, 9 months ago (2015-03-17 17:44:55 UTC) #10
fs
https://codereview.chromium.org/1018593004/diff/20001/Source/core/layout/LayoutVTTCue.cpp File Source/core/layout/LayoutVTTCue.cpp (right): https://codereview.chromium.org/1018593004/diff/20001/Source/core/layout/LayoutVTTCue.cpp#newcode131 Source/core/layout/LayoutVTTCue.cpp:131: ASSERT(!m_cueBox.nextSibling()); On 2015/03/17 17:44:54, philipj_UTC7 wrote: > On 2015/03/17 ...
5 years, 9 months ago (2015-03-17 17:53:30 UTC) #11
philipj_slow
https://codereview.chromium.org/1018593004/diff/20001/Source/core/layout/LayoutVTTCue.cpp File Source/core/layout/LayoutVTTCue.cpp (right): https://codereview.chromium.org/1018593004/diff/20001/Source/core/layout/LayoutVTTCue.cpp#newcode131 Source/core/layout/LayoutVTTCue.cpp:131: ASSERT(!m_cueBox.nextSibling()); On 2015/03/17 17:53:30, fs wrote: > On 2015/03/17 ...
5 years, 9 months ago (2015-03-18 08:19:45 UTC) #12
philipj_slow
I make an un-delightful discovery about how marking past and future nodes also causes the ...
5 years, 9 months ago (2015-03-18 09:59:52 UTC) #13
fs
On 2015/03/18 09:59:52, philipj_UTC7 wrote: > I make an un-delightful discovery about how marking past ...
5 years, 9 months ago (2015-03-18 10:05:01 UTC) #14
philipj_slow
ready for review
5 years, 9 months ago (2015-03-20 05:50:38 UTC) #15
philipj_slow
PTAL, with the constant invalidation gone it seems to just work. https://codereview.chromium.org/1018593004/diff/60001/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): ...
5 years, 9 months ago (2015-03-20 05:58:19 UTC) #16
fs
lgtm https://codereview.chromium.org/1018593004/diff/60001/Source/core/html/shadow/MediaControlElements.cpp File Source/core/html/shadow/MediaControlElements.cpp (right): https://codereview.chromium.org/1018593004/diff/60001/Source/core/html/shadow/MediaControlElements.cpp#newcode171 Source/core/html/shadow/MediaControlElements.cpp:171: if (m_isDisplayed && m_opaque) { Nit: Unneeded {} ...
5 years, 9 months ago (2015-03-20 09:58:54 UTC) #17
philipj_slow
https://codereview.chromium.org/1018593004/diff/60001/Source/core/html/shadow/MediaControlElements.cpp File Source/core/html/shadow/MediaControlElements.cpp (right): https://codereview.chromium.org/1018593004/diff/60001/Source/core/html/shadow/MediaControlElements.cpp#newcode171 Source/core/html/shadow/MediaControlElements.cpp:171: if (m_isDisplayed && m_opaque) { On 2015/03/20 09:58:54, fs ...
5 years, 9 months ago (2015-03-20 16:46:33 UTC) #18
philipj_slow
braces
5 years, 9 months ago (2015-03-20 16:46:59 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1018593004/80001
5 years, 9 months ago (2015-03-20 17:00:30 UTC) #22
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 19:46:13 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192281

Powered by Google App Engine
This is Rietveld 408576698