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}
Committed: https://chromium.googlesource.com/chromium/src/+/e5399d9f871fab1ea1e7b061125106199ee0545a
Patch Set 1 #
Total comments: 2
Messages
Total messages: 13 (7 generated)
|