bug 89116 - rebalance table on cell incremental reflow when maximum width changes. sr=attinasi, r=alexsavulov.

This commit is contained in:
karnaze%netscape.com 2001-07-13 23:49:30 +00:00
Родитель b75975c304
Коммит 7dcbe365fc
2 изменённых файлов: 6 добавлений и 10 удалений

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

@ -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;
}

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

@ -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;
}