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

git-svn-id: svn://10.0.0.236/trunk@99243 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
karnaze%netscape.com
2001-07-13 23:49:30 +00:00
parent d7d7b3f87f
commit 425d5dcdf1
2 changed files with 6 additions and 10 deletions

View File

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

View File

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