Closed Bug 391140 Opened 17 years ago Closed 17 years ago

[FIXr]The second one of two input type=image 's doesn't render when they have display: table-cell

Categories

(Core :: Layout, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha8

People

(Reporter: martijn.martijn, Assigned: bzbarsky)

References

Details

(Keywords: regression, testcase)

Attachments

(2 files)

Attached file testcase
See testcase, I just see one "Submit Query", where I would have expected 2 of them.
(although I might not expect to see that text, see bug 380144)

This regressed between 2006-01-12 and 2006-01-14:
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2006-01-12+04&maxdate=2006-01-14+08&cvsroot=%2Fcvsroot
Regression from bug 51767? Or from bug 302725?
This is a regression from bug 51767.  In this case, we construct the pseudo frames for the first input.  Then we go to do that for the second input, process the table pseudo frames unconditionally (even though we didn't construct a frame for it, and it's not actually being a replaced element!) and then bail out.  ConstructFrameInternal sees that there's a new last child (the table outer from the processed pseudo frames) and thinks we actually constructed things and there's nothing more to do.

Processing pseudo frames here unconditionally is wrong.
Flags: blocking1.9?
Blocks: 51767
Attached patch Like soSplinter Review
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #275561 - Flags: superreview?(roc)
Attachment #275561 - Flags: review?(bernd_mozilla)
OS: Windows XP → All
Priority: -- → P2
Hardware: PC → All
Summary: The second one of two input type=image 's doesn't render when they have display: table-cell → [FIX]The second one of two input type=image 's doesn't render when they have display: table-cell
Target Milestone: --- → mozilla1.9 M8
Comment on attachment 275561 [details] [diff] [review]
Like so

.... embarassing ....
Attachment #275561 - Flags: review?(bernd_mozilla) → review+
Attachment #275561 - Flags: superreview?(roc) → superreview+
Comment on attachment 275561 [details] [diff] [review]
Like so

This is a fix to not process table pseudo frames in the edge case of an image input that is getting replaced by alt text (since that's not a replaced element).  Risk is fairly low.
Attachment #275561 - Flags: approval1.9?
Summary: [FIX]The second one of two input type=image 's doesn't render when they have display: table-cell → [FIXr]The second one of two input type=image 's doesn't render when they have display: table-cell
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: blocking1.9? → in-testsuite+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: