Hello,
I just disabled the Alpha-trick for IE7 and newer and now my app is no
longer leaking - and is consuming a lot less!
I used this in my gwt.xml file (the ie7 detection is very amateuristic and
looks like a copy-paste, but I could not use conditional comments).
<define-property name=*"ie7"* values=*"true,false"*/>
<property-provider name=*"ie7"*><![CDATA[
var ua = navigator.userAgent.toLowerCase();
var makeVersion = function(result) {
return (parseInt(result[1]) * 1000) + parseInt(result[2]);
};
if (ua.indexOf("opera") == -1 && ua.indexOf("webkit") == -1 &&
ua.indexOf("msie") != -1) {
var result = /msie ([0-9]+)\.([0-9]+)/.exec(ua);
if (result && result.length == 3) {
if (makeVersion(result) >= 7000) {
return true;
}
}
}
return false;
]]></property-provider>
<replace-with
class=*"com.google.gwt.user.client.ui.impl.ClippedImageImpl"*>
<when-type-is
class=*"com.google.gwt.user.client.ui.impl.ClippedImageImpl"* />
<when-property-is name=*"ie7"* value=*"true"* />
</replace-with>
David
On Mon, Apr 20, 2009 at 10:19 AM, stuckagain <[email protected]> wrote:
>
> Dear GWT-contributors,
>
> I create a bug report on ImageBundle here.
> http://code.google.com/p/google-web-toolkit/issues/detail?id=3573&sort=-id
>
> After doing some extra investigation I noticed 2 things:
> 1) When I use Image(<url>) instead of an ImageBundle my example app
> leaks as well.
> 2) If I use Image.prefetch(<url>) then the Image(<url>) does not leak
> anymore
>
> I read about the memory leak and memory usage blaming the Alpha
> blending technique in IE6/IE7 and also the clipping settings. But how
> come that the Image.prefetch which loads the same PNG with alpha
> channel does not leak... and why does ImageBundle and Image without
> prefetch not use the same tricks as done in prefetch ? No need to
> start using VML or other tricks then.
>
> David
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---