mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
no math with NS_UNCONSTRAINEDSIZE please, bug 14862 r=karnaze sr=roc+moz
This commit is contained in:
parent
c5216dcce6
commit
27e0af3e22
@ -5256,7 +5256,8 @@ nsBlockFrame::ReflowFloater(nsBlockReflowState& aState,
|
||||
availWidth -= availWidth % twp;
|
||||
}
|
||||
}
|
||||
nscoord availHeight = (NS_UNCONSTRAINEDSIZE == aState.mAvailSpaceRect.height)
|
||||
nscoord availHeight = ((NS_UNCONSTRAINEDSIZE == aState.mAvailSpaceRect.height) ||
|
||||
(NS_UNCONSTRAINEDSIZE == aState.mContentArea.height))
|
||||
? NS_UNCONSTRAINEDSIZE
|
||||
: PR_MAX(0, aState.mContentArea.height - aState.mY);
|
||||
|
||||
|
@ -5256,7 +5256,8 @@ nsBlockFrame::ReflowFloater(nsBlockReflowState& aState,
|
||||
availWidth -= availWidth % twp;
|
||||
}
|
||||
}
|
||||
nscoord availHeight = (NS_UNCONSTRAINEDSIZE == aState.mAvailSpaceRect.height)
|
||||
nscoord availHeight = ((NS_UNCONSTRAINEDSIZE == aState.mAvailSpaceRect.height) ||
|
||||
(NS_UNCONSTRAINEDSIZE == aState.mContentArea.height))
|
||||
? NS_UNCONSTRAINEDSIZE
|
||||
: PR_MAX(0, aState.mContentArea.height - aState.mY);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user