Fix bug in browser action icon scaling for non-1x scale factors.
skia::ImageOperations::Resize needs pixels, and we were passing dp. Also, ignore the icon size key and just use the icon size itself. This fixes a bug (evidenced again by Shoptagr) where an icon size such as "19": "icons/19.png" // 19.png is actually 50x50 would be scaled incorrectly. At this point, the API should take a list rather than a dict, but it's probably not possible to change that and maintain backcompat. BUG=581232 TBR=benwells@chromium.org Review URL: https://codereview.chromium.org/1637763002 Cr-Commit-Position: refs/heads/master@{#371904}
Showing
Please register or sign in to comment