Closed
Bug 763223
Opened 13 years ago
Closed 13 years ago
"ASSERTION: parentSize should be valid" with huge padding
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: jruderman, Assigned: ehsan.akhgari)
References
Details
(Keywords: assertion, regression, testcase)
Attachments
(3 files)
###!!! ASSERTION: parentSize should be valid: 'parentSize.width != NS_INTRINSICSIZE && parentSize.height != NS_INTRINSICSIZE', file layout/base/nsCSSFrameConstructor.cpp, line 11994
This assertion was added in bug 157681.
| Reporter | ||
Comment 1•13 years ago
|
||
| Assignee | ||
Comment 2•13 years ago
|
||
So the right padding here is a large value, which causes tons of these types of warnings: "have unconstrained width; this should only result from very large sizes, not attempts at intrinsic width calculation: 'aContainingBlockWidth != NS_UNCONSTRAINEDSIZE'", and also causes the width value to be unconstrained size, which triggers this assertion.
How are we supposed to handle cases like this with huge values in layout?
Comment 3•13 years ago
|
||
We don't really have a plan for these. :(
| Assignee | ||
Comment 4•13 years ago
|
||
So there isn't too much we can do about this assertion, except for taking it out?
| Reporter | ||
Comment 5•13 years ago
|
||
I have an idea in bug 765861. For now, this should probably be downgraded to a warning.
| Assignee | ||
Comment 6•13 years ago
|
||
This patch converts the assertion into a warning.
Comment on attachment 634258 [details] [diff] [review]
Patch (v1)
Please use NS_WARN_IF_FALSE instead of the #ifdef and NS_WARNING. r=dbaron with that
Attachment #634258 -
Flags: review?(dbaron) → review+
| Assignee | ||
Comment 8•13 years ago
|
||
Target Milestone: --- → mozilla16
Comment 9•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•