Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Issue 16370006: Make the favicons look visually the same after refreshing (Closed)

Created:
7 years, 6 months ago by pkotwicz
Modified:
7 years, 6 months ago
CC:
chromium-reviews, rsesek+watch_chromium.org, erikwright+watch_chromium.org, browser-components-watch_chromium.org, sail+watch_chromium.org
Visibility:
Public.

Description

This CL fixes two bugs: 1) Makes the favicons (tab, bookmarks) look the same in the browser UI as they do in the renderer). This fixes a regression (probably by one of my CLs) since https://codereview.chromium.org/6117006 2) Make the favicons in the tab strip look the same after refreshing. The difference is due to the conversions PNG -> NSImage and PNG -> SkBitmap -> NSImage producing visually different NSImages. In particular, the result is different when the input PNG data has no colorspace information specified. Cocoa defaults to the device colorspace when decoding PNG data with no colorspace information. The generic RGB colorspace is used for converting from SkBitmap to NSImage. BUG=242877 TEST=Manual, see bug Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207990

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed avi@'s comments #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : Rebased #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -5 lines) Patch
M base/mac/mac_util.h View 1 chunk +4 lines, -0 lines 0 comments Download
M base/mac/mac_util.mm View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/favicon/favicon_handler.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/favicon/favicon_service.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/favicon/favicon_util.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/favicon/favicon_util.cc View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M ui/gfx/image/image.h View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M ui/gfx/image/image.cc View 1 2 3 4 6 chunks +36 lines, -3 lines 0 comments Download
M ui/gfx/image/image_mac.mm View 1 2 chunks +19 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
pkotwicz
rsesek@ can you please take a look at the changes in ui/gfx/image. I decided against ...
7 years, 6 months ago (2013-06-12 01:26:19 UTC) #1
Avi (use Gerrit)
https://codereview.chromium.org/16370006/diff/1/ui/gfx/image/image_mac.mm File ui/gfx/image/image_mac.mm (right): https://codereview.chromium.org/16370006/diff/1/ui/gfx/image/image_mac.mm#newcode83 ui/gfx/image/image_mac.mm:83: [[NSColorSpace alloc] initWithCGColorSpace: color_space]); drive by: no space after ...
7 years, 6 months ago (2013-06-12 01:35:29 UTC) #2
Robert Sesek
On 2013/06/12 01:26:19, pkotwicz wrote: > rsesek@ can you please take a look at the ...
7 years, 6 months ago (2013-06-12 16:12:24 UTC) #3
Robert Sesek
Oh and LGTM
7 years, 6 months ago (2013-06-12 16:12:30 UTC) #4
pkotwicz
Nico, can you please take a look at the changes to base/mac and chrome/browser ?
7 years, 6 months ago (2013-06-12 20:22:56 UTC) #5
Nico
lgtm with below comment addressed https://codereview.chromium.org/16370006/diff/8001/ui/gfx/image/image.h File ui/gfx/image/image.h (right): https://codereview.chromium.org/16370006/diff/8001/ui/gfx/image/image.h#newcode32 ui/gfx/image/image.h:32: #include <Carbon/Carbon.h> Carbon? Does ...
7 years, 6 months ago (2013-06-13 00:12:44 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/16370006/16001
7 years, 6 months ago (2013-06-16 18:39:29 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-16 18:55:13 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/16370006/16001
7 years, 6 months ago (2013-06-16 19:11:42 UTC) #9
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-16 19:21:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/16370006/33001
7 years, 6 months ago (2013-06-17 15:53:26 UTC) #11
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-17 16:12:18 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/16370006/33001
7 years, 6 months ago (2013-06-18 05:32:45 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/16370006/59001
7 years, 6 months ago (2013-06-21 20:11:44 UTC) #14
commit-bot: I haz the power
7 years, 6 months ago (2013-06-22 01:55:28 UTC) #15
Message was sent while issue was closed.
Change committed as 207990

Powered by Google App Engine
This is Rietveld 408576698