Chromium Code Reviews
Description[Mac][Material Design] Fix ghosting of cast and other extension icons.
Chrome Mac uses the ToolbarButton class to add extension buttons to the
toolbar, and calls setImage: to set the button's default image. However
under Material Design the ToolbarButton class sets images for several
states (e.g. hover, pressed) - the result is double-drawing of the
default icon. This cl changes ToolbarButton to store the setImage: icon
in an ivar, which prevents the double-drawing but also makes the icon
accessible for later use.
This cl also fixes a problem where the default icon could be drawn in
a different location for the default state than in the other states,
causing the icon to appear to shift as you mouse over the button.
R=avi@chromium.org
BUG=593796
Committed: https://crrev.com/9a51b633fca04015d122b763fd70ae216f65d30a
Cr-Commit-Position: refs/heads/master@{#392964}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|
||||||||||||||||||||||||||||