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

Issue 2499013003: Media Controls: don't "cut" controls if fully hidden. (Closed)

Created:
4 years, 1 month ago by mlamouri (slow - plz ping)
Modified:
4 years, 1 month ago
Reviewers:
eae, ojan
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, eric.carlson_apple.com, feature-media-reviews_chromium.org, jchaffraix+rendering, leviw+renderwatch, mlamouri+watch-blink_chromium.org, pdr+renderingwatchlist_chromium.org, Srirama, szager+layoutwatch_chromium.org, zoltan1, Zhiqiang Zhang (Slow)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Media Controls: don't "cut" controls if fully hidden. A media element might be outside of the page and can't be accessed and for some reasons would have the controls enabled. Instead of having a DCHECK, we should early return and use the default value. BUG=664097 R=eae@chromium.org Committed: https://crrev.com/467481c23e2c416c34e5d4a34766d59a5aeefcf2 Cr-Commit-Position: refs/heads/master@{#433219}

Patch Set 1 #

Patch Set 2 : add tests #

Total comments: 4

Patch Set 3 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/media/controls/overflow-fully-hidden.html View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMedia.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 24 (14 generated)
mlamouri (slow - plz ping)
-zqzhang@ (to CC) +ojan@ (I don't own this file, neither does zqzhang@)
4 years, 1 month ago (2016-11-15 02:18:03 UTC) #3
ojan
Probably best if someone from the layout team reviews this. +eae, to route to the ...
4 years, 1 month ago (2016-11-15 03:59:49 UTC) #6
mlamouri (slow - plz ping)
I wasn't able to write a test for this. I usually don't do layout changes ...
4 years, 1 month ago (2016-11-15 06:59:50 UTC) #10
eae
Change itself looks good but this needs a test, please see https://chromium.googlesource.com/chromium/src/+/master/docs/testing/layout_tests.md for testing instructions.
4 years, 1 month ago (2016-11-15 16:48:46 UTC) #11
mlamouri (slow - plz ping)
So sorry about not having a test. PTAL.
4 years, 1 month ago (2016-11-17 02:08:47 UTC) #12
eae
This is great, thanks for adding the test! I have a couple of suggestions for ...
4 years, 1 month ago (2016-11-17 16:40:33 UTC) #17
mlamouri (slow - plz ping)
https://codereview.chromium.org/2499013003/diff/20001/third_party/WebKit/LayoutTests/media/controls/overflow-fully-hidden.html File third_party/WebKit/LayoutTests/media/controls/overflow-fully-hidden.html (right): https://codereview.chromium.org/2499013003/diff/20001/third_party/WebKit/LayoutTests/media/controls/overflow-fully-hidden.html#newcode35 third_party/WebKit/LayoutTests/media/controls/overflow-fully-hidden.html:35: var videos = document.querySelectorAll('video'); On 2016/11/17 at 16:40:33, eae ...
4 years, 1 month ago (2016-11-18 14:53:50 UTC) #20
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/2499013003/40001
4 years, 1 month ago (2016-11-18 14:54:13 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-18 16:54:42 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 16:56:24 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/467481c23e2c416c34e5d4a34766d59a5aeefcf2
Cr-Commit-Position: refs/heads/master@{#433219}

Powered by Google App Engine
This is Rietveld 408576698