bug 42726 - back out previous checkin.

This commit is contained in:
karnaze%netscape.com 2000-06-15 23:39:49 +00:00
Родитель 9461eb8980
Коммит 2eed56703e
2 изменённых файлов: 10 добавлений и 20 удалений

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

@ -1437,18 +1437,13 @@ NS_METHOD nsTableRowFrame::IR_TargetIsChild(nsIPresContext* aPresContext,
PRBool tallestCellGotShorter = PR_FALSE;
#ifndef MOZ_MATHML
if (initCellDesSize.height < oldCellDesSize.height) {
if (oldCellDesSize.height == GetTallestCell()) {
nscoord width = initCellDesSize.width;
nscoord height = initCellDesSize.height;
CalculateCellActualSize(aNextFrame, width, height, cellAvailWidth); // considers style
nscoord tallest = GetTallestCell();
if ((height == tallest) && (cellMet.height < tallest)) {
tallestCellGotShorter = PR_TRUE;
}
else {
nscoord width = initCellDesSize.width;
nscoord height = initCellDesSize.height;
CalculateCellActualSize(aNextFrame, width, height, cellAvailWidth); // considers style
nscoord tallest = GetTallestCell();
if ((height == tallest) && (cellMet.height < tallest)) {
tallestCellGotShorter = PR_TRUE;
}
}
}
if (tallestCellGotShorter) {
CalcTallestCell();

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

@ -1437,18 +1437,13 @@ NS_METHOD nsTableRowFrame::IR_TargetIsChild(nsIPresContext* aPresContext,
PRBool tallestCellGotShorter = PR_FALSE;
#ifndef MOZ_MATHML
if (initCellDesSize.height < oldCellDesSize.height) {
if (oldCellDesSize.height == GetTallestCell()) {
nscoord width = initCellDesSize.width;
nscoord height = initCellDesSize.height;
CalculateCellActualSize(aNextFrame, width, height, cellAvailWidth); // considers style
nscoord tallest = GetTallestCell();
if ((height == tallest) && (cellMet.height < tallest)) {
tallestCellGotShorter = PR_TRUE;
}
else {
nscoord width = initCellDesSize.width;
nscoord height = initCellDesSize.height;
CalculateCellActualSize(aNextFrame, width, height, cellAvailWidth); // considers style
nscoord tallest = GetTallestCell();
if ((height == tallest) && (cellMet.height < tallest)) {
tallestCellGotShorter = PR_TRUE;
}
}
}
if (tallestCellGotShorter) {
CalcTallestCell();