Bug 17303: Canvas crash in ImageBuffer
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Feb 2008 04:24:35 +0000 (04:24 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Feb 2008 04:24:35 +0000 (04:24 +0000)
commit3a6a002cb494411ea916b0b27d231ed94fc87eb4
tree3034e1183386a0a329854763f595943c279e1948
parentc554c8a7c8df44fc646a0af49ecdafd6592bf807
Bug 17303: Canvas crash in ImageBuffer

Reviewed by Hyatt.

We handle a null GraphicsContext everywhere, but we weren't checking for
a null ImageBuffer, which is what will result in a null GraphicsContext in
the first place.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@30452 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/canvas/access-zero-sized-canvas-expected.txt [new file with mode: 0644]
LayoutTests/fast/canvas/access-zero-sized-canvas.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLCanvasElement.cpp