Keep width of avail space rect at least 0. (Bug 476372) r+sr=roc

This commit is contained in:
L. David Baron 2009-02-04 13:24:17 -08:00
parent d15db11845
commit c7db9ce60f

View File

@ -353,6 +353,9 @@ nsBlockReflowState::GetAvailableSpace(nscoord aY, PRBool aRelaxHeightConstraint)
mContentArea.width,
&hasFloats);
mBandHasFloats = hasFloats;
// Keep the width >= 0 for compatibility with nsSpaceManager.
if (mAvailSpaceRect.width < 0)
mAvailSpaceRect.width = 0;
#ifdef DEBUG
if (nsBlockFrame::gNoisyReflow) {