Bug 25856

Summary: [Qt] Notify Cache an image is painted and purging can be triggered.
Product: WebKit Reporter: Yongjun Zhang <yongjun.zhang>
Component: WebKit QtAssignee: Yongjun Zhang <yongjun.zhang>
Status: RESOLVED FIXED    
Severity: Normal CC: hausmann
Priority: P2 Keywords: Qt
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
add observer()->didDraw() to notify cache that this image is drawn. hausmann: review+

Yongjun Zhang
Reported 2009-05-18 11:10:20 PDT
The memory cache needs to be notified if an image is painted; this helps Cache to trigger an purging operation when alive resources reaches its capacity.
Attachments
add observer()->didDraw() to notify cache that this image is drawn. (1.36 KB, patch)
2009-05-18 11:16 PDT, Yongjun Zhang
hausmann: review+
Yongjun Zhang
Comment 1 2009-05-18 11:16:06 PDT
Created attachment 30450 [details] add observer()->didDraw() to notify cache that this image is drawn. This helps reducing heap consumption for sites with large number of images.
Simon Hausmann
Comment 2 2009-05-20 01:21:55 PDT
Comment on attachment 30450 [details] add observer()->didDraw() to notify cache that this image is drawn. Good catch :)
Simon Hausmann
Comment 3 2009-05-20 01:22:36 PDT
Landed in r43892
Note You need to log in before you can comment on or make changes to this bug.