diff --git a/mozilla/layout/html/table/src/nsTableRowFrame.cpp b/mozilla/layout/html/table/src/nsTableRowFrame.cpp index 09d0d408804..e7d0984f87e 100644 --- a/mozilla/layout/html/table/src/nsTableRowFrame.cpp +++ b/mozilla/layout/html/table/src/nsTableRowFrame.cpp @@ -1128,11 +1128,9 @@ nsTableRowFrame::IR_TargetIsChild(nsIPresContext* aPresContext, // if the cell's desired size didn't changed, our height is unchanged aDesiredSize.mNothingChanged = PR_FALSE; PRInt32 rowSpan = aTableFrame.GetEffectiveRowSpan(*cellFrame); - if ((initCellDesSize.width == oldCellDesSize.width) && - (initCellDesSize.height == oldCellDesSize.height)) { - // XXX replace the line above with these two after testing the performance impact - //(initCellDesSize.height == oldCellDesSize.height) && - //!maxWidthChanged) { + if ((initCellDesSize.width == oldCellDesSize.width) && + (initCellDesSize.height == oldCellDesSize.height) && + (oldCellMaximumWidth == cellMet.mMaximumWidth)) { if (!hasVerticalAlignBaseline) { // only the cell's height matters aDesiredSize.mNothingChanged = PR_TRUE; } diff --git a/mozilla/layout/tables/nsTableRowFrame.cpp b/mozilla/layout/tables/nsTableRowFrame.cpp index 09d0d408804..e7d0984f87e 100644 --- a/mozilla/layout/tables/nsTableRowFrame.cpp +++ b/mozilla/layout/tables/nsTableRowFrame.cpp @@ -1128,11 +1128,9 @@ nsTableRowFrame::IR_TargetIsChild(nsIPresContext* aPresContext, // if the cell's desired size didn't changed, our height is unchanged aDesiredSize.mNothingChanged = PR_FALSE; PRInt32 rowSpan = aTableFrame.GetEffectiveRowSpan(*cellFrame); - if ((initCellDesSize.width == oldCellDesSize.width) && - (initCellDesSize.height == oldCellDesSize.height)) { - // XXX replace the line above with these two after testing the performance impact - //(initCellDesSize.height == oldCellDesSize.height) && - //!maxWidthChanged) { + if ((initCellDesSize.width == oldCellDesSize.width) && + (initCellDesSize.height == oldCellDesSize.height) && + (oldCellMaximumWidth == cellMet.mMaximumWidth)) { if (!hasVerticalAlignBaseline) { // only the cell's height matters aDesiredSize.mNothingChanged = PR_TRUE; }