diff --git a/layout/html/table/src/nsTableRowFrame.cpp b/layout/html/table/src/nsTableRowFrame.cpp index 648ce95adca2..83817a8921bc 100644 --- a/layout/html/table/src/nsTableRowFrame.cpp +++ b/layout/html/table/src/nsTableRowFrame.cpp @@ -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(); diff --git a/layout/tables/nsTableRowFrame.cpp b/layout/tables/nsTableRowFrame.cpp index 648ce95adca2..83817a8921bc 100644 --- a/layout/tables/nsTableRowFrame.cpp +++ b/layout/tables/nsTableRowFrame.cpp @@ -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();