12011-05-27 Simon Fraser <simon.fraser@apple.com>
2
3 Reviewed by NOBODY (OOPS!).
4
5 CG BitmapImage needs to check for valid CGImage in a couple of places
6 https://bugs.webkit.org/show_bug.cgi?id=61684
7 <rdar://problem/9519348>
8
9 BitmapImage::getCGImageArray() can throw an exception if frameAtIndex()
10 returns null, which it may do if the image is corrupted or still
11 loading. Protect against that here and in getFirstCGImageRefOfSize().
12
13 * platform/graphics/cg/ImageCG.cpp:
14 (WebCore::BitmapImage::getFirstCGImageRefOfSize):
15 (WebCore::BitmapImage::getCGImageArray):
16