|
|
Created:
4 years, 3 months ago by Elly Fong-Jones Modified:
4 years, 3 months ago CC:
chromium-reviews, tfarina Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Descriptioncombobox: don't animate state changes in TransparentButton
TransparentButton has state-change animations enabled despite being invisible,
which causes a bunch of spurious repaints of the combobox on mouse enter/exit.
BUG=645266
Committed: https://crrev.com/9469d57224252e71f21394f17a30929ec3fd102e
Cr-Commit-Position: refs/heads/master@{#418824}
Patch Set 1 #
Total comments: 3
Patch Set 2 : do animate for action comboboxes #
Total comments: 1
Patch Set 3 : conditional SetAnimationDuration #Messages
Total messages: 22 (9 generated)
Description was changed from ========== combobox: don't animate state changes in TransparentButton TransparentButton has state-change animations enabled despite being invisible, which causes a bunch of spurious repaints of the combobox on mouse enter/exit. BUG=645266 ========== to ========== combobox: don't animate state changes in TransparentButton TransparentButton has state-change animations enabled despite being invisible, which causes a bunch of spurious repaints of the combobox on mouse enter/exit. BUG=645266 ==========
ellyjones@chromium.org changed reviewers: + estade@chromium.org
estade: ptal? :)
good find. I wonder if this is why the ripples that were added recently for harmony can look janky when clicking on the combobox? https://codereview.chromium.org/2327673003/diff/1/ui/views/controls/combobox/... File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2327673003/diff/1/ui/views/controls/combobox/... ui/views/controls/combobox/combobox.cc:119: SetAnimationDuration(LabelButton::kHoverAnimationDurationMs); why is this here?
https://codereview.chromium.org/2327673003/diff/1/ui/views/controls/combobox/... File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2327673003/diff/1/ui/views/controls/combobox/... ui/views/controls/combobox/combobox.cc:119: SetAnimationDuration(LabelButton::kHoverAnimationDurationMs); On 2016/09/09 18:37:13, Evan Stade wrote: > why is this here? Your guess is as good as mine. It was added in the implementation of "action style" comboboxes in https://codereview.chromium.org/59383003 and it seems like this specific line was copied verbatim from LabelButton's constructor. I would rather like to remove this entire class.
https://codereview.chromium.org/2327673003/diff/1/ui/views/controls/combobox/... File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2327673003/diff/1/ui/views/controls/combobox/... ui/views/controls/combobox/combobox.cc:119: SetAnimationDuration(LabelButton::kHoverAnimationDurationMs); On 2016/09/12 11:46:40, Elly Jones wrote: > On 2016/09/09 18:37:13, Evan Stade wrote: > > why is this here? > > Your guess is as good as mine. It was added in the implementation of "action > style" comboboxes in https://codereview.chromium.org/59383003 and it seems like > this specific line was copied verbatim from LabelButton's constructor. I would > rather like to remove this entire class. It seems the line you're adding defeats the purpose of SetAnimationDuration. I think you're breaking PaintButtons below (only used for action style comboboxes, but one of those still exists for now). You should probably either set the animation duration or set animate false depending on the style of combobox.
On 2016/09/12 14:51:17, Evan Stade wrote: > https://codereview.chromium.org/2327673003/diff/1/ui/views/controls/combobox/... > File ui/views/controls/combobox/combobox.cc (right): > > https://codereview.chromium.org/2327673003/diff/1/ui/views/controls/combobox/... > ui/views/controls/combobox/combobox.cc:119: > SetAnimationDuration(LabelButton::kHoverAnimationDurationMs); > On 2016/09/12 11:46:40, Elly Jones wrote: > > On 2016/09/09 18:37:13, Evan Stade wrote: > > > why is this here? > > > > Your guess is as good as mine. It was added in the implementation of "action > > style" comboboxes in https://codereview.chromium.org/59383003 and it seems > like > > this specific line was copied verbatim from LabelButton's constructor. I would > > rather like to remove this entire class. > > It seems the line you're adding defeats the purpose of SetAnimationDuration. I > think you're breaking PaintButtons below (only used for action style comboboxes, > but one of those still exists for now). You should probably either set the > animation duration or set animate false depending on the style of combobox. Hm, that is a good point. There, I added a constructor argument for whether to do animations or not. I can't wait to get rid of STYLE_ACTION, heh...
lgtm https://codereview.chromium.org/2327673003/diff/20001/ui/views/controls/combo... File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2327673003/diff/20001/ui/views/controls/combo... ui/views/controls/combobox/combobox.cc:119: SetAnimationDuration(LabelButton::kHoverAnimationDurationMs); could you make this conditional on the new parameter as well, if only to make it harder to miss the fact that we can remove it when style_action is no more?
The CQ bit was checked by ellyjones@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from estade@chromium.org Link to the patchset: https://codereview.chromium.org/2327673003/#ps40001 (title: "conditional SetAnimationDuration")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
ellyjones@chromium.org changed reviewers: + sky@chromium.org
sky: ptal? :)
LGTM
The CQ bit was checked by ellyjones@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== combobox: don't animate state changes in TransparentButton TransparentButton has state-change animations enabled despite being invisible, which causes a bunch of spurious repaints of the combobox on mouse enter/exit. BUG=645266 ========== to ========== combobox: don't animate state changes in TransparentButton TransparentButton has state-change animations enabled despite being invisible, which causes a bunch of spurious repaints of the combobox on mouse enter/exit. BUG=645266 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== combobox: don't animate state changes in TransparentButton TransparentButton has state-change animations enabled despite being invisible, which causes a bunch of spurious repaints of the combobox on mouse enter/exit. BUG=645266 ========== to ========== combobox: don't animate state changes in TransparentButton TransparentButton has state-change animations enabled despite being invisible, which causes a bunch of spurious repaints of the combobox on mouse enter/exit. BUG=645266 Committed: https://crrev.com/9469d57224252e71f21394f17a30929ec3fd102e Cr-Commit-Position: refs/heads/master@{#418824} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/9469d57224252e71f21394f17a30929ec3fd102e Cr-Commit-Position: refs/heads/master@{#418824} |