Closed
Bug 408749
Opened 18 years ago
Closed 18 years ago
"ASSERTION: A block's child's next in flow's parent must be a block" with -moz-column, table stuff
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: roc)
References
Details
(Keywords: assertion, testcase)
Attachments
(3 files)
|
136 bytes,
application/xhtml+xml
|
Details | |
|
4.81 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
mtschrep
:
approval1.9+
|
Details | Diff | Splinter Review |
|
2.43 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
mtschrep
:
approval1.9+
|
Details | Diff | Splinter Review |
Loading the testcase triggers:
###!!! ASSERTION: A block's child's next in flow's parent must be a block!: 'nifBlock->GetType() == nsGkAtoms::blockFrame || nifBlock->GetType() == nsGkAtoms::areaFrame', file /Users/jruderman/trunk/mozilla/layout/generic/nsBlockFrame.cpp, line 3104
| Reporter | ||
Comment 1•18 years ago
|
||
Comment 2•18 years ago
|
||
In this case nifBlock is a table caption frame. Does the assert just need adjusting?
| Assignee | ||
Comment 3•18 years ago
|
||
Yeah.
Maybe the assert should use a QueryInterface (or IsFrameOfType)?
| Assignee | ||
Comment 5•18 years ago
|
||
This patch creates nsBlockFrame* nsLayoutUtils::GetAsBlock which wraps QueryInterface. After this I should file a folloup bug to change all kBlockCID QIs to use GetAsBlock ... that'd be a good first bug.
Assignee: nobody → roc
Status: NEW → ASSIGNED
Attachment #293607 -
Flags: superreview?(bzbarsky)
Attachment #293607 -
Flags: review?(bzbarsky)
Comment 7•18 years ago
|
||
Comment on attachment 293607 [details] [diff] [review]
fix assert
Looks good.
That said, should a caption be splitting like it does in this case?
Attachment #293607 -
Flags: superreview?(bzbarsky)
Attachment #293607 -
Flags: superreview+
Attachment #293607 -
Flags: review?(bzbarsky)
Attachment #293607 -
Flags: review+
| Assignee | ||
Comment 8•18 years ago
|
||
No. There is no way to reflow a caption continuation.
http://mxr.mozilla.org/seamonkey/source/layout/base/nsCSSFrameConstructor.cpp#10423
says "if there's a caption then replicate the caption", but it doesn't, as far as I can tell.
I'll post an additional patch to give captions unconstrained height.
| Assignee | ||
Comment 9•18 years ago
|
||
Fixes the assertion independently of the other patch.
Attachment #293637 -
Flags: superreview?(bzbarsky)
Attachment #293637 -
Flags: review?(bzbarsky)
Updated•18 years ago
|
Attachment #293637 -
Flags: superreview?(bzbarsky)
Attachment #293637 -
Flags: superreview+
Attachment #293637 -
Flags: review?(bzbarsky)
Attachment #293637 -
Flags: review+
| Assignee | ||
Updated•18 years ago
|
Attachment #293607 -
Flags: approval1.9?
| Assignee | ||
Comment 10•18 years ago
|
||
Comment on attachment 293637 [details] [diff] [review]
reflow captions with unconstrained height
Very safe patch to silence an assertion
Attachment #293637 -
Flags: approval1.9?
Updated•18 years ago
|
Attachment #293607 -
Flags: approval1.9? → approval1.9+
Updated•18 years ago
|
Attachment #293637 -
Flags: approval1.9? → approval1.9+
| Assignee | ||
Comment 11•18 years ago
|
||
all checked in, plus the testcase as a crashtest.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•