Bug 108359: crash when opening subscribe dialog ( crash in grid code ). patch by evaughan, r=jag, sr=hyatt

This commit is contained in:
jaggernaut%netscape.com 2001-11-08 01:14:21 +00:00
Родитель 1b68d1dda8
Коммит 2abac55786
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -1365,13 +1365,18 @@ nsGrid::RowChildIsDirty(nsBoxLayoutState& aState, PRInt32 aRowIndex, PRInt32 aCo
if (mNeedsRebuild || mMarkingDirty)
return;
NeedsRebuild(aState);
// This code does not work with trees when rows are
// dynamically inserted, the cache values are invalid.
/*
mMarkingDirty = PR_TRUE;
// index out of range. Rebuild it all
if (aRowIndex >= GetRowCount(aIsHorizontal) || aColumnIndex >= GetColumnCount(aIsHorizontal))
{
NeedsRebuild(aState);
return;
NeedsRebuild(aState);
return;
}
// dirty our 2 outer nsGridRows. (one for columns and one for rows)
@ -1395,6 +1400,7 @@ nsGrid::RowChildIsDirty(nsBoxLayoutState& aState, PRInt32 aRowIndex, PRInt32 aCo
mMarkingDirty = PR_FALSE;
*/
}
/**