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

Issue 2704013002: Media Controls: cache the minimum width in order to reduce incorrect width usage. (Closed)

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

Description

Media Controls: cache the minimum width in order to reduce incorrect width usage. The width of media controls buttons depends on the platform (Android vs desktop) and is known by looking at the layout of the play button or the overflow menu button. This technique has limitations because it requires one layout to happen which might take a long time depending on when the controls have been toggled. The new solution consist of saving the minimum width so that as soon as the controls discovered the right value, they should no longer appear broken. BUG=663931 R=zqzhang@chromium.org Review-Url: https://codereview.chromium.org/2704013002 Cr-Commit-Position: refs/heads/master@{#451611} Committed: https://chromium.googlesource.com/chromium/src/+/e5399d9f871fab1ea1e7b061125106199ee0545a

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -19 lines) Patch
A third_party/WebKit/LayoutTests/media/controls/buttons-after-reset.html View 1 chunk +26 lines, -0 lines 2 comments Download
A third_party/WebKit/LayoutTests/media/controls/buttons-after-reset-expected.html View 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControls.cpp View 2 chunks +16 lines, -19 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
mlamouri (slow - plz ping)
PTAL
3 years, 10 months ago (2017-02-18 13:31:08 UTC) #1
Zhiqiang Zhang (Slow)
The idea sounds good but is there a better way to solve the bug? Does ...
3 years, 10 months ago (2017-02-18 15:04:37 UTC) #4
mlamouri (slow - plz ping)
https://codereview.chromium.org/2704013002/diff/1/third_party/WebKit/LayoutTests/media/controls/buttons-after-reset.html File third_party/WebKit/LayoutTests/media/controls/buttons-after-reset.html (right): https://codereview.chromium.org/2704013002/diff/1/third_party/WebKit/LayoutTests/media/controls/buttons-after-reset.html#newcode15 third_party/WebKit/LayoutTests/media/controls/buttons-after-reset.html:15: video.addEventListener('loadedmetadata', () => { On 2017/02/18 at 15:04:37, Zhiqiang ...
3 years, 10 months ago (2017-02-19 10:33:57 UTC) #7
Zhiqiang Zhang (Slow)
lgtm
3 years, 10 months ago (2017-02-19 23:44:52 UTC) #8
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/2704013002/1
3 years, 10 months ago (2017-02-20 11:02:53 UTC) #10
commit-bot: I haz the power
3 years, 10 months ago (2017-02-20 13:04:07 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/e5399d9f871fab1ea1e7b0611251...

Powered by Google App Engine
This is Rietveld 408576698