Turn assertion into warning since we can hit it in large coordinate cases. (Bug 494237) r+sr=roc

This commit is contained in:
L. David Baron 2009-07-08 18:10:29 -07:00
parent dfd2b373c7
commit aed90fc289

View File

@ -170,7 +170,10 @@ nsFloatManager::GetFlowArea(nscoord aYOffset, BandInfoType aInfoType,
nscoord bottom;
if (aHeight == nscoord_MAX) {
NS_ASSERTION(aInfoType == BAND_FROM_POINT, "bad height");
// This warning (and the two below) are possible to hit on pages
// with really large objects.
NS_WARN_IF_FALSE(aInfoType == BAND_FROM_POINT,
"bad height");
bottom = nscoord_MAX;
} else {
bottom = top + aHeight;