Fix by Mitz Pettel, reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Aug 2006 20:32:45 +0000 (20:32 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Aug 2006 20:32:45 +0000 (20:32 +0000)
commitb9dce69b28870cb1036c6f91870cd4a207836c70
tree0e9d7e02605fca38ab2ff0df0a204df4133d7f78
parent3034d9a85f6e4a077a3fac512ea27b1a46793b8a
    Fix by Mitz Pettel, reviewed by Darin.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=3438
          incorrect display of transparent 1x1 PNGs

        Test: fast/replaced/image-solid-color-with-alpha.html

        * platform/mac/ImageMac.mm:
        (WebCore::Image::checkForSolidColor): Changed to divide each color component
        by the alpha component. You need to do that since the bitmap context has
        premultiplied alpha but m_solidColor should be non-premultiplied.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15758 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/replaced/image-solid-color-with-alpha-expected.checksum [new file with mode: 0644]
LayoutTests/fast/replaced/image-solid-color-with-alpha-expected.png [new file with mode: 0644]
LayoutTests/fast/replaced/image-solid-color-with-alpha-expected.txt [new file with mode: 0644]
LayoutTests/fast/replaced/image-solid-color-with-alpha.html [new file with mode: 0644]
LayoutTests/fast/replaced/img-1x1-expected.checksum [deleted file]
LayoutTests/fast/replaced/img-1x1-expected.png [deleted file]
LayoutTests/fast/replaced/img-1x1-expected.txt [deleted file]
LayoutTests/fast/replaced/img-1x1.html [deleted file]
WebCore/ChangeLog
WebCore/platform/mac/ImageMac.mm