Bug 148570 - Error rendering image when changing contemporary src, width and height
Summary: Error rendering image when changing contemporary src, width and height
Status: RESOLVED NOT A BUG
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-06 12:42 UTC by Enrico Oltolina
Modified: 2011-06-26 16:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enrico Oltolina 2007-08-06 12:42:59 UTC
Version:            (using KDE KDE 3.5.7)
Installed from:    Unspecified Linux
OS:                Linux

I defined an img in my page like this:
<img src="img/trasp.gif" width="110" height="82" id="imgPreviewId">
If using javascript an image is loaded, and inserted in imgPreviewId with 
the following commands, all it works:
imgPreviewObj = document.getElementById("imgPreviewId");
imgPreviewObj.src = "...";
imgPreviewObj.width=...;
imgPreviewObj.height=...;

Warning: the width and height set are different from original image size, the idea is to obtain a preview, so the image is resized.

After that another image is loaded, with different src and size: the image doesn't change! It seems that the new image is not loaded. But all it works if only the src is changed, while width and height are not changed.
I tried to change the render_image.cpp file, and I cleaned the resizeCache when a needLayout is set to true, and so it works.
Comment 1 Martin Koller 2011-06-26 16:31:37 UTC
If you can reproduce with current KDE (>= 4.6.4), please reopen and attach a complete testcase.