Closed Bug 367587 Opened 18 years ago Closed 18 years ago

[FIX]"ASSERTION: Shouldn't be suppressing if the height of a row has not changed!" with clear: left, display: table-*

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: jruderman, Assigned: bzbarsky)

References

Details

(Keywords: assertion, testcase)

Attachments

(3 files)

Attached file testcase (deleted) —
Loading this testcase triggers: ###!!! ASSERTION: Shouldn't be suppressing if the height of a row has not changed!: '!IsScrollbarUpdateSuppressed()', file /Users/admin/trunk/mozilla/layout/forms/nsListControlFrame.cpp, line 609 I think this bug can also lead to another assertion, which the testcase does not demonstrate: ###!!! ASSERTION: Shouldn't be suppressing if we don't need a second pass!: '!IsScrollbarUpdateSuppressed()', file /Users/admin/trunk/mozilla/layout/forms/nsListControlFrame.cpp, line 594
Attached patch Proposed fix (deleted) — Splinter Review
In this case, the nsSelectsAreaFrame is actually reflow twice by the scrollframe -- once with the vertical scrollbar and once without, I think. In any case, the heightOfARow goes from 238 to 476 and then back to 238. So we suppress scrollbar updates both times, since it's changing. But there's no net change, of course. The patch just makes the nsListControlFrame do whatever the scrollbar update state suggests as far as the second reflow; this also removes the silly logic duplication.
Attachment #252248 - Flags: superreview?(roc)
Attachment #252248 - Flags: review?(roc)
Assignee: nobody → bzbarsky
OS: Mac OS X → All
Hardware: Macintosh → All
Summary: "ASSERTION: Shouldn't be suppressing if the height of a row has not changed!" with clear: left, display: table-* → [FIX]"ASSERTION: Shouldn't be suppressing if the height of a row has not changed!" with clear: left, display: table-*
Target Milestone: --- → mozilla1.9alpha
Attachment #252248 - Flags: superreview?(roc)
Attachment #252248 - Flags: superreview+
Attachment #252248 - Flags: review?(roc)
Attachment #252248 - Flags: review+
Fixed.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Crashtest checked in.
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: