mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 08:48:07 +00:00
r=troy@netscape.com Changed from karnaze@netscape.com reviewed by me that
fix assertions we were hitting when printing the CNN page
This commit is contained in:
parent
8a7719fa46
commit
f06d670145
@ -408,12 +408,13 @@ PRInt32
|
||||
nsTableCellMap::GetEffectiveColSpan(PRInt32 aColIndex,
|
||||
const nsTableCellFrame* aCell)
|
||||
{
|
||||
nsTableCellFrame* cellFrame = (nsTableCellFrame*)aCell->GetFirstInFlow();
|
||||
PRInt32 rowIndex;
|
||||
aCell->GetRowIndex(rowIndex);
|
||||
cellFrame->GetRowIndex(rowIndex);
|
||||
nsCellMap* cellMap = mFirstMap;
|
||||
while (cellMap) {
|
||||
if (cellMap->GetRowCount() > rowIndex) {
|
||||
return cellMap->GetEffectiveColSpan(rowIndex, aColIndex, mCols.Count(), aCell);
|
||||
return cellMap->GetEffectiveColSpan(rowIndex, aColIndex, mCols.Count(), cellFrame);
|
||||
}
|
||||
rowIndex -= cellMap->GetRowCount();
|
||||
cellMap = cellMap->GetNextSibling();
|
||||
|
@ -408,12 +408,13 @@ PRInt32
|
||||
nsTableCellMap::GetEffectiveColSpan(PRInt32 aColIndex,
|
||||
const nsTableCellFrame* aCell)
|
||||
{
|
||||
nsTableCellFrame* cellFrame = (nsTableCellFrame*)aCell->GetFirstInFlow();
|
||||
PRInt32 rowIndex;
|
||||
aCell->GetRowIndex(rowIndex);
|
||||
cellFrame->GetRowIndex(rowIndex);
|
||||
nsCellMap* cellMap = mFirstMap;
|
||||
while (cellMap) {
|
||||
if (cellMap->GetRowCount() > rowIndex) {
|
||||
return cellMap->GetEffectiveColSpan(rowIndex, aColIndex, mCols.Count(), aCell);
|
||||
return cellMap->GetEffectiveColSpan(rowIndex, aColIndex, mCols.Count(), cellFrame);
|
||||
}
|
||||
rowIndex -= cellMap->GetRowCount();
|
||||
cellMap = cellMap->GetNextSibling();
|
||||
|
Loading…
x
Reference in New Issue
Block a user