Chromium Code Reviews
DescriptionMedia 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}
(cherry picked from commit e5399d9f871fab1ea1e7b061125106199ee0545a)
Review-Url: https://codereview.chromium.org/2708193002 .
Cr-Commit-Position: refs/branch-heads/2987@{#623}
Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943}
Committed: https://chromium.googlesource.com/chromium/src/+/b5715d877525dce29848b72e309692d7ab735417
Patch Set 1 #
Messages
Total messages: 2 (1 generated)
|
|||||||||||||||||||||||||||||||||||||