2009-09-25 Simon Fraser <simon.fraser@apple.com>
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Sep 2009 22:01:43 +0000 (22:01 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Sep 2009 22:01:43 +0000 (22:01 +0000)
commitef548e339b49c79a23e193aec0da9688db7a7013
tree7a832e1761964581576d7916fe0a7a6f6ff401f0
parent93427bae4147e4a6d872ff7592160ae981e404eb
2009-09-25  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Darin Adler.

        Crash with hardware accelerated rotation of a PDF image in a data URL
        <rdar://problem/7250378>

        PDF images don't return a color space from CGImageGetColorSpace(),
        so we need to null-check the return value before use.

        Test: compositing/color-matching/pdf-image-match.html

        * platform/graphics/mac/GraphicsLayerCA.mm:
        (WebCore::GraphicsLayerCA::setContentsToImage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/compositing/color-matching/pdf-image-match.html [new file with mode: 0644]
LayoutTests/platform/mac/compositing/color-matching/pdf-image-match-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/compositing/color-matching/pdf-image-match-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/compositing/color-matching/pdf-image-match-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/platform/graphics/mac/GraphicsLayerCA.mm