Closed
Bug 369975
Opened 19 years ago
Closed 19 years ago
Assert: Must have usable originating data here + crash [@ nsCellMapColumnIterator::GetNextFrame]
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bernd_mozilla, Assigned: bernd_mozilla)
References
Details
(Keywords: crash, regression, testcase)
Crash Data
Attachments
(2 files, 1 obsolete file)
|
411 bytes,
application/xhtml+xml
|
Details | |
|
1.58 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
see static testcase
Comment 1•19 years ago
|
||
Talkback ID: TB29201198Y
nsCellMapColumnIterator::GetNextFrame [mozilla\layout\tables\nscellmap.cpp, line 2790]
BasicTableLayoutStrategy::ComputeColumnIntrinsicWidths [mozilla\layout\tables\basictablelayoutstrategy.cpp, line 269]
Summary: Assert: Must have usable originating data here + crash → Assert: Must have usable originating data here + crash [@ nsCellMapColumnIterator::GetNextFrame]
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/layout/tables/nsCellMap.cpp&rev=3.127&mark=2786-2790#2771 is wrong when a rowspan and a colspan overlap.
Then below the current rowspan might be rowspan entry from a cell which originates higher.
Comment 5•19 years ago
|
||
> wrong when a rowspan and a colspan overlap
How, exactly? That is, wouldn't the "rowspan which originates higher" have made us skip over all this stuff?
I'd be curious to see what the cellmap looks like in this case.
As for the patch, if we need to do that, couldn't we look up the originating cell for the rowspan based on the offset and advance based on its rowspan instead of just advancing by 1?
I should also note that I was planning to work on this today or tomorrow, and I'm still happy to do that. ;)
The cellmap looks OK or at least as one would expect it (its not the spanish inquisition ;-))
<tbody>
<tr ><td rowspan="2"></td></tr>
<tr><td rowspan="2"></td></tr>
<tr ><td rowspan="3" colspan="2"> </td></tr>
<tr></tr>
</tbody>
col0 col1
row0 C0,0
row1 R C1,1
row2 C2,0 RC <--- this is the overlap
row3 R RC <--- we crash here
row4 R RC
The crash happens on col=1
we see cell 1,1 and look on row3 there we find a colspan and rowspan and then we look at row 3 and do not find a originating cell.
I did not ask you for review because I thought I will not get one on such a hack.
The new patch uses the cellmap function that makes both lookups column and row wise.
>I should also note that I was planning to work on this today or tomorrow, and
>I'm still happy to do that.
This one is easy, I only got nervous as this is a seed=0 crash.
If I could divert your time to bug 323656 than I spent my time just on the right issue.
Attachment #254722 -
Attachment is obsolete: true
Attachment #254738 -
Flags: superreview?(bzbarsky)
Attachment #254738 -
Flags: review?(bzbarsky)
Comment 7•19 years ago
|
||
Comment on attachment 254738 [details] [diff] [review]
patch
Ah, I see. We're spanning into the middle of another rowspan. Good point.
>Index: nsCellMap.cpp
>+ // Look up the originating data for this cell, advance by its relative rowspan.
>+ PRInt32 rowspanOffset = cellData->GetRowSpanOffset();
>+ nsTableCellFrame* cellFrame = mCurMap->GetCellFrame(mCurMapRow, mCol, *cellData, PR_FALSE);
GetCellFrame does a few checks SafeElementAt(), null-checking |data|, etc) that are not really relevant in this case, but I guess that's ok. I don't really want to duplicate all that IsOverlap() logic here.
r+sr=bzbarsky. Thanks for fixing this!
Attachment #254738 -
Flags: superreview?(bzbarsky)
Attachment #254738 -
Flags: superreview+
Attachment #254738 -
Flags: review?(bzbarsky)
Attachment #254738 -
Flags: review+
fix checked in
Status: NEW → RESOLVED
Closed: 19 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Updated•15 years ago
|
Crash Signature: [@ nsCellMapColumnIterator::GetNextFrame]
You need to log in
before you can comment on or make changes to this bug.
Description
•