WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
9276
Quirksmode: Image swap resize bug
https://bugs.webkit.org/show_bug.cgi?id=9276
Summary
Quirksmode: Image swap resize bug
Adele Peterson
Reported
2006-06-02 15:05:57 PDT
http://www.quirksmode.org/bugreports/archives/safari/index.html
"When swapping images with javascript Safari will stretch the new image to the size of the previous image, unless the previous and new images have different widths AND heights. Test page
http://www.fiddlyio.com/safaribug/
Workaround is not included Reported by: Justin Heideman."
Attachments
Dirty pref widths before calcWidth()
(29.65 KB, patch)
2007-05-02 00:21 PDT
,
mitz
hyatt
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joost de Valk (AlthA)
Comment 1
2006-06-24 14:12:51 PDT
Weird bug, probably in the DOM?
jørgen nørgaard
Comment 2
2007-04-30 09:26:16 PDT
***
Bug 13528
has been marked as a duplicate of this bug. ***
mitz
Comment 3
2007-05-01 07:51:24 PDT
RenderImage::imageChanged does a fake calcWidth() but doesn't invalidate the preferred min/max widths before doing it, so it ends up stretching to the old min pref width. I don't think there's any harm in dirtying the pref widths before the fake calcWidth().
Dave Hyatt
Comment 4
2007-05-01 13:31:11 PDT
None at all. I do this with tables in places too (and with counters).
mitz
Comment 5
2007-05-02 00:21:36 PDT
Created
attachment 14305
[details]
Dirty pref widths before calcWidth()
Dave Hyatt
Comment 6
2007-05-02 00:31:24 PDT
Comment on
attachment 14305
[details]
Dirty pref widths before calcWidth() r=me
Mark Rowe (bdash)
Comment 7
2007-05-02 02:38:40 PDT
Landed in
r21218
.
Alexey Proskuryakov
Comment 8
2007-07-05 03:50:31 PDT
***
Bug 11319
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug