Closed Bug 610331 Opened 9 years ago Closed 8 years ago

"ASSERTION: Computed overflow area must contain frame bounds" with huge line height and word-wrap

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: smontagu, Unassigned)

References

Details

(Keywords: assertion, testcase)

Attachments

(1 file)

183 bytes, application/xhtml+xml
Details
Attached file Testcase
The testcase is reduced (in every sense of the word) from the testcase for bug 595435.

It asserts 4 times:
###!!! ASSERTION: Computed overflow area must contain frame bounds: 'aNewSize.width == 0 || aNewSize.height == 0 || aOverflowAreas.Overflow(otype).Contains(nsRect(nsPoint(0,0), aNewSize))', file /home/smontagu/mozwork/hgtree/mozilla/layout/generic/nsFrame.cpp, line 6103

If I reduce the line-height in the testcase to < 235519, it triggers the assertion only twice, but triggers another one twice:
###!!! ASSERTION: illegal height for combined area: 'aOverflowAreas.Overflow(otype).height >= 0', file /home/smontagu/mozwork/hgtree/mozilla/layout/generic/nsLineBox.cpp, line 504

If I reduce the line-height to < 235421, there are no assertions.
This bug still exists after the modification to the assertion in https://hg.mozilla.org/mozilla-central/rev/e176daacecfc

###!!! ASSERTION: Computed overflow area must contain frame bounds: 'aNewSize.width == 0 || aNewSize.height == 0 || r->width == nscoord_MAX || r->height == nscoord_MAX || r->Contains(nsRect(nsPoint(0,0), aNewSize))', file layout/generic/nsFrame.cpp
WFM
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: in-testsuite?
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.