Closed Bug 467141 Opened 13 years ago Closed 13 years ago
"ASSERTION: failed to redistribute" with table-layout:fixed, width attributes
###!!! 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.
Fixed on mozilla-central: http://hg.mozilla.org/mozilla-central/rev/fb1b3f68b09d
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
OS: Mac OS X → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
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+
Fixed on 1.9.1: http://hg.mozilla.org/releases/mozilla-1.9.1/rev/9cc347dd89b8
Target Milestone: mozilla1.9.2a1 → mozilla1.9.1b3
You need to log in before you can comment on or make changes to this bug.