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

Issue 774103002: Color-correct PNG images that have an sRGB chunk (Closed)

Created:
6 years ago by Noel Gordon
Modified:
5 years, 11 months ago
CC:
blink-reviews, junov1, Ken Russell (Google), senorblanco, firefrog_gmail.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Color-correct PNG images that have an sRGB chunk When a PNG has an sRGB chunk, the color space of the image RGB pixels is sRGB (per the PNG spec) and gAMA and cHRM chunks should be ignored in systems that support image color-correction. Such images should be color-corrected so do that, and gain compat with other browsers. Note: per the spec, a PNG image should have an sRGB chunk, or an iCCP chunk, but never both. Changes in color behaviour here (obviously). Add TestExpectations for layout test results needing rebaselines, ref-test fixes, etc. BUG=354883 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187101

Patch Set 1 : Initial pass, test failures. #

Total comments: 9

Patch Set 2 : Next pass, test failures. #

Patch Set 3 : Sync up, test failures. #

Patch Set 4 : Add test expectation rebaselines #

Patch Set 5 : Adjust scrolling-embedded-svg-file-image-repaint-problem.html on Mac. #

Patch Set 6 : Adjust tables/mozilla/marvin/backgr_* Mac and Win. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -9 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 2 chunks +112 lines, -1 line 0 comments Download
M Source/platform/image-decoders/png/PNGImageDecoder.cpp View 1 2 3 4 chunks +18 lines, -8 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
Ken Russell (switch to Gerrit)
+pdr. Philip, can you suggest other people who should review this change to colorspace handling? ...
6 years ago (2014-12-03 23:50:03 UTC) #2
pdr.
On 2014/12/03 at 23:54:26, pdr wrote: > pdr@chromium.org changed reviewers: > + senorblanco@chromium.org, skyostil@chromium.org @Sami, ...
6 years ago (2014-12-03 23:55:21 UTC) #4
Sami
https://codereview.chromium.org/774103002/diff/1/Source/platform/image-decoders/png/PNGImageDecoder.cpp File Source/platform/image-decoders/png/PNGImageDecoder.cpp (right): https://codereview.chromium.org/774103002/diff/1/Source/platform/image-decoders/png/PNGImageDecoder.cpp#newcode283 Source/platform/image-decoders/png/PNGImageDecoder.cpp:283: static void readColorProfile(png_structp png, png_infop info, ColorProfile& colorProfile, bool& ...
6 years ago (2014-12-04 12:51:24 UTC) #5
Noel Gordon
https://codereview.chromium.org/774103002/diff/1/Source/platform/image-decoders/png/PNGImageDecoder.cpp File Source/platform/image-decoders/png/PNGImageDecoder.cpp (right): https://codereview.chromium.org/774103002/diff/1/Source/platform/image-decoders/png/PNGImageDecoder.cpp#newcode202 Source/platform/image-decoders/png/PNGImageDecoder.cpp:202: if (!colorProfile.isEmpty()) On 2014/12/03 23:50:02, Ken Russell wrote: > ...
6 years ago (2014-12-05 04:12:43 UTC) #6
Sami
https://codereview.chromium.org/774103002/diff/1/Source/platform/image-decoders/png/PNGImageDecoder.cpp File Source/platform/image-decoders/png/PNGImageDecoder.cpp (right): https://codereview.chromium.org/774103002/diff/1/Source/platform/image-decoders/png/PNGImageDecoder.cpp#newcode283 Source/platform/image-decoders/png/PNGImageDecoder.cpp:283: static void readColorProfile(png_structp png, png_infop info, ColorProfile& colorProfile, bool& ...
6 years ago (2014-12-05 11:50:43 UTC) #7
Ken Russell (switch to Gerrit)
LGTM from my standpoint. https://codereview.chromium.org/774103002/diff/1/Source/platform/image-decoders/png/PNGImageDecoder.cpp File Source/platform/image-decoders/png/PNGImageDecoder.cpp (right): https://codereview.chromium.org/774103002/diff/1/Source/platform/image-decoders/png/PNGImageDecoder.cpp#newcode202 Source/platform/image-decoders/png/PNGImageDecoder.cpp:202: if (!colorProfile.isEmpty()) On 2014/12/05 04:12:43, ...
6 years ago (2014-12-05 19:24:53 UTC) #8
Noel Gordon
Syncing up, to run try jobs and gather layout failures.
6 years ago (2014-12-13 06:57:22 UTC) #9
Noel Gordon
Green bubbles at last (hard to come by). Ken, assuming #8 holds, wrote change log ...
6 years ago (2014-12-14 04:17:57 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/774103002/120001
6 years ago (2014-12-14 04:19:07 UTC) #13
commit-bot: I haz the power
6 years ago (2014-12-14 04:21:11 UTC) #14
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=187101

Powered by Google App Engine
This is Rietveld 408576698