Closed
Bug 101674
Opened 23 years ago
Closed 23 years ago
Images not wrapping in table cell in HTML document
Categories
(Core :: Layout, defect, P2)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla0.9.5
People
(Reporter: attinasi, Assigned: attinasi)
References
()
Details
(Keywords: regression, topembed, Whiteboard: ETA:9/28/2001 [have review and super-review] [PDT+])
Attachments
(2 files, 1 obsolete file)
(deleted),
text/html
|
Details | |
(deleted),
patch
|
attinasi
:
review+
attinasi
:
superreview+
|
Details | Diff | Splinter Review |
The images in the left hand frame of the URL are not wrapping. They should.
Assignee | ||
Comment 1•23 years ago
|
||
Accepting and cc'ing original reporter, Jonas.
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•23 years ago
|
||
I think we need to detect when the text between the images is whitespace only
and then NOT accumulate the image widths since that keeps them from wrapping.
Assignee | ||
Comment 3•23 years ago
|
||
Assignee | ||
Comment 4•23 years ago
|
||
Assignee | ||
Comment 5•23 years ago
|
||
I attached a patch to fix this problem, and also correct a couple of mistakes in
the prior implementation. Now we just check if the current frame is or has an
image, or is a non-whitespace text frame and an element with a combined width
equal to the maxelemement width. This covers the cases of spaces and newlines
between the images, and also text with whitespace inside the text.
The testcase attached is fixed, but I still need to check the older tests and
URLs (I did test some URLs, like newport-news.com, and they are still OK). I
plan to create a more comprehensive testcase for the regression tests too.
If anyone else wants to test, please try the patch!
Assignee | ||
Comment 6•23 years ago
|
||
NOTE: this was sorta spun off from bug 100568, fwiw.
Assignee | ||
Comment 7•23 years ago
|
||
*** Bug 101745 has been marked as a duplicate of this bug. ***
Updated•23 years ago
|
Keywords: nsbranch+
Whiteboard: ETA:9/28/2001 Waiting for reviews/super-reviews
Assignee | ||
Comment 8•23 years ago
|
||
*** Bug 102119 has been marked as a duplicate of this bug. ***
Comment 9•23 years ago
|
||
Yer killin' me with the zero context lines, man! :-)
Couple nits that might be worth cleaning up, but in general this looks great. (I
think I might actually understand it now!)
1. Looks like there could be some indentation problems around frameCount++.
2. You can probably fit
if (!strictMode && inUnconstrainedTable) {
on the same line now.
3. Looks like the |inChild| argument to AccumulateImageSizes is no longer
necessary.
4. Might want to move the comment about checking maxElementWidth vs.
combinedArea.width down to where you do the check (since its moved).
r= or sr= waterson, whichever helps.
Comment 10•23 years ago
|
||
r/sr=hyatt
Assignee | ||
Comment 11•23 years ago
|
||
Sorry about the patch - I blame Mac CVS ;) I should have looked at it myself, ack!
I'll clean it up as you recommend. Thanks.
Assignee | ||
Comment 12•23 years ago
|
||
Assignee | ||
Comment 13•23 years ago
|
||
Comment on attachment 50846 [details] [diff] [review]
Patch to fix this bug and make the logic for image size accumulation much more rational
Updated with Waterson's comments (and some context lines)
Attachment #50846 -
Attachment is obsolete: true
Assignee | ||
Comment 14•23 years ago
|
||
Updating summary: have review and super review, checking in to trunk.
Whiteboard: ETA:9/28/2001 Waiting for reviews/super-reviews → ETA:9/28/2001 [have review and super-review]
Assignee | ||
Comment 15•23 years ago
|
||
Comment on attachment 51263 [details] [diff] [review]
Updated patch
r and sr in comments...
Attachment #51263 -
Flags: superreview+
Attachment #51263 -
Flags: review+
Comment 16•23 years ago
|
||
pls go ahead and check this in - PDT+
Whiteboard: ETA:9/28/2001 [have review and super-review] → ETA:9/28/2001 [have review and super-review] [PDT+]
Assignee | ||
Comment 17•23 years ago
|
||
Fix checked into trunk and 0.9.4 branch
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 18•23 years ago
|
||
say, 102119 didn't get fixed after this, has it been checked into 2001092803?
Comment 19•23 years ago
|
||
just a note: bug 102119 no longer a problem, fixed in 2001092908. Cool!
Comment 20•23 years ago
|
||
Verified with the Oct 4th branch build under Mac OS X (2001-10-04-04) and
Windows ME (2001-10-04-06).
Comment 21•23 years ago
|
||
Verified on Linux Redhat 6.2 (2001-10-04-04)
You need to log in
before you can comment on or make changes to this bug.
Description
•