Chromium Code Reviews
Descriptionoptimize-ico-files: Automatically rebuild the AND mask of 32-bit images.
Due to a bug in Windows, icons do not display properly in some contexts
if the AND mask has transparency on a pixel that is partially (or fully)
opaque (see crbug.com/526622,
https://bugzilla.gnome.org/show_bug.cgi?id=755200). GIMP <=2.8.14 (and
possibly other icon tools) generates icons that do not satisfy this
property. This is a work-around for that issue.
The optimize-ico-files script (which is supposed to be run on all .ico
files in Chrome, according to chrome/app/theme/README) now strips out
the AND mask for any 32-bit image and rebuilds it from the alpha
channel. This ensures that it displays properly on Windows regardless of
which tool created it.
BUG=534679
Committed: https://crrev.com/196c33780897dbb87d9fb2c8cd0449096269103c
Cr-Commit-Position: refs/heads/master@{#351683}
Patch Set 1 #Patch Set 2 : Remove obsolete comment. #
Total comments: 2
Patch Set 3 : Added link to bug. #
Messages
Total messages: 9 (3 generated)
|
||||||||||||||||||||||||||||