mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Keep width of avail space rect at least 0. (Bug 476372) r+sr=roc
This commit is contained in:
parent
d15db11845
commit
c7db9ce60f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user