Closed Bug 467141 Opened 16 years ago Closed 16 years ago

"ASSERTION: failed to redistribute" with table-layout:fixed, width attributes

Categories

(Core :: Layout: Tables, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.9.1b3

People

(Reporter: jruderman, Assigned: dbaron)

References

Details

(Keywords: assertion, testcase, verified1.9.1)

Attachments

(2 files)

Attached file testcase (deleted) —
###!!! ASSERTION: failed to redistribute: 'unassignedSpace == 0', file /Users/jruderman/central/layout/tables/FixedTableLayoutStrategy.cpp, line 372 This assertion was added in bug 445142.
Hmmm. So the problem is that I have an expression (a * b / c), and I want to ensure that if b==c, the result is *exactly* a, and if a==c, the result is *exactly* b. I can get one of the two by parenthesizing the division, but I can't get both. I guess we're losing here because the width is too large to be converted to float and back without losing precision.
Actually, we don't care about that invariant both ways; it's only one way. So it's just a floating point issue.
Attached patch patch (deleted) — Splinter Review
Assignee: nobody → dbaron
Status: NEW → ASSIGNED
Attachment #350561 - Flags: superreview?(roc)
Attachment #350561 - Flags: review?(roc)
Attachment #350561 - Flags: superreview?(roc)
Attachment #350561 - Flags: superreview+
Attachment #350561 - Flags: review?(roc)
Attachment #350561 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
OS: Mac OS X → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Attachment #350561 - Flags: approval1.9.1?
Comment on attachment 350561 [details] [diff] [review] patch Simple fix for recent assertion regression which also fixes slight rounding errors in table width distribution for table-layout:fixed.
Comment on attachment 350561 [details] [diff] [review] patch a191=beltzner
Attachment #350561 - Flags: approval1.9.1? → approval1.9.1+
Keywords: fixed1.9.1
Target Milestone: mozilla1.9.2a1 → mozilla1.9.1b3
Flags: in-testsuite+
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: