Fixes for "show LabelButtons as disabled in inactive widgets".
* Update the visual state when getting added to the widget. Otherwise the state may be incorrect until the first time GetVisualState() is called for some other reason (e.g. the button is hovered). * Don't consider widgets "inactive" for this purpose if they can't be activated to begin with (e.g. menus). Bug: 1106631 Change-Id: I9238498d91e515b03b6c04bc22014e84aff7057c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2325273 Auto-Submit: Peter Kasting <pkasting@chromium.org> Reviewed-by:Peter Boström <pbos@chromium.org> Commit-Queue: Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#793062}
Showing
Please register or sign in to comment