BitmapImage::destroyMetadataAndNotify should clear m_checkedForSolidColor
authorpsolanki@apple.com <psolanki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Apr 2011 00:35:58 +0000 (00:35 +0000)
committerpsolanki@apple.com <psolanki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Apr 2011 00:35:58 +0000 (00:35 +0000)
commit39a697c377df11573063ba7daaca59cdef384b87
tree476bedf8039254be67bb3c215406ef2a5fd4a03a
parente04a72c045a26a8b5c2f8b250eba443053ca7098
BitmapImage::destroyMetadataAndNotify should clear m_checkedForSolidColor
https://bugs.webkit.org/show_bug.cgi?id=58926

Reviewed by Simon Fraser.

* platform/graphics/BitmapImage.cpp:
(WebCore::BitmapImage::destroyMetadataAndNotify): Set m_checkedForSolidColor to false.
* platform/graphics/BitmapImage.h:
(WebCore::BitmapImage::assertNotSolidColor):
* platform/graphics/cg/ImageCG.cpp:
(WebCore::Image::drawPattern): Add assert to make sure this is not called for a 1x1 image.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84321 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/BitmapImage.cpp
Source/WebCore/platform/graphics/BitmapImage.h
Source/WebCore/platform/graphics/cg/ImageCG.cpp