nsbeta2+ bug 39885 - invalidate minimal areas. optimize reflows when cells don't change size. r=attinasi

git-svn-id: svn://10.0.0.236/trunk@70866 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
karnaze%netscape.com
2000-05-25 22:40:21 +00:00
parent 5f0a629308
commit 8cc9e6956a
16 changed files with 416 additions and 350 deletions

View File

@@ -1704,13 +1704,14 @@ PRBool BasicTableLayoutStrategy::ColumnsAreValidFor(const nsTableCellFrame& aCel
}
PRBool desChanged = PR_TRUE;
if ((cellDes > aPrevCellDes) && (cellDes <= colDes)) {
if (((cellDes > aPrevCellDes) && (cellDes <= colDes)) ||
(cellDes == aPrevCellDes)) {
// XXX This next check causes a problem if the cell's desired width shrinks,
// because the comparison (aPresCellDes <= colDes) will always be TRUE and
// so we always end up setting desChanged to PR_FALSE. That means the column
// won't shrink like it should
#if 0
|| ((cellDes <= aPrevCellDes) && (aPrevCellDes <= colDes))) {
|| ((cellDes < aPrevCellDes) && (aPrevCellDes <= colDes))) {
#endif
desChanged = PR_FALSE;
}