|Summary:||Clean up color-correction code on Windows|
|Product:||WebKit||Reporter:||Beth Dakin <firstname.lastname@example.org>|
|Version:||528+ (Nightly build)|
|OS:||Mac OS X 10.5|
I just committed a patch making -webkit-color-correction work for CSS Colors <https://bugs.webkit.org/show_bug.cgi?id=31196>. It broke with Windows build, and I got bweinstein to help me fix it <http://trac.webkit.org/changeset/50764>. Since we were primarily concerned with getting the build working again, I told him just to send DeviceColorSpace to setFillColor() and setStrokeColor(). All of the call sites he modified need to be revisited because that is probably not the correct solution.
In addition to fixing the aforementioned call-sites, we also need to re-enable the feature! Unfortunately we had to disable it because of a CG bug. Once the bug is fixed, we need to re-enable and fix these call sites. See <https://bugs.webkit.org/show_bug.cgi?id=31363> for details of disabling.
<rdar://problem/7387791> Make -webkit-color-correction correct color on Windows
Turns out Windows renders in sRGB all the time! So this feature would be a no-op on Windows even if it was properly implemented. No work needs to be done for this to work, but we should still clean up the code and adjust all of the FIXMEs to reflect the new information that we have.