On Feb 1, 2006, at 7:37 PM, David Hyatt wrote:

> While reworking images I ran into something that really concerns me. WebElementImageKey is a key added to the elementAtPoint dictionary and the key's value is an NSImage. Unfortunately we use CGImageRef now. What this means is that as you move the mouse around a web page we are aggressively mallocing NSImages that then move into our image cache and stay around until the CGImageRef goes away (which could be a long time).
> I think this is terrible but am not sure how to fix it. I assume this key is public API. Could we change the key's value to be a CGImageRef instead? Could we just eliminate the key in favor of a DOM extension method for accessing an NSImage?
> dave
> (hyatt@apple.com)