commit | 60de1ee93d6c07564f88762974bef721e0a9019f | [log] [tgz] |
---|---|---|
author | hausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Wed May 20 08:22:23 2009 +0000 |
committer | hausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Wed May 20 08:22:23 2009 +0000 |
tree | a319aa9b5c317e56bb4917ed98f6d06b7299e531 | |
parent | d6f35dfc64ba8f51e31f574baeb42f7b5abd2174 [diff] [blame] |
2009-05-20 Yongjun Zhang <yongjun.zhang@nokia.com> Reviewed by Simon Hausmann. https://bugs.webkit.org/show_bug.cgi?id=25856 [Qt] notify an image has been drawn, to help Cache purge alive decoded data. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43892 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/platform/graphics/qt/ImageQt.cpp b/WebCore/platform/graphics/qt/ImageQt.cpp index a9cf05a..6d28638 100644 --- a/WebCore/platform/graphics/qt/ImageQt.cpp +++ b/WebCore/platform/graphics/qt/ImageQt.cpp
@@ -116,6 +116,9 @@ p->setBrushOrigin(phase); p->fillRect(destRect, b); ctxt->restore(); + + if (imageObserver()) + imageObserver()->didDraw(this); } void BitmapImage::initPlatformData() @@ -158,6 +161,9 @@ painter->drawPixmap(dst, *image, src); ctxt->restore(); + + if (imageObserver()) + imageObserver()->didDraw(this); } void BitmapImage::checkForSolidColor()