patch hang for FFb3 b=414255 r+sr=roc

This commit is contained in:
fantasai.cvs%inkedblade.net 2008-01-30 05:48:42 +00:00
Родитель ae1dfdb04e
Коммит 95eb4c2c61
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -1387,6 +1387,9 @@ nsBlockFrame::ComputeFinalSize(const nsHTMLReflowState& aReflowState,
NS_ASSERTION(aReflowState.availableHeight != NS_UNCONSTRAINEDSIZE, NS_ASSERTION(aReflowState.availableHeight != NS_UNCONSTRAINEDSIZE,
"Shouldn't be incomplete if availableHeight is UNCONSTRAINED."); "Shouldn't be incomplete if availableHeight is UNCONSTRAINED.");
aMetrics.height = PR_MAX(aState.mY, aReflowState.availableHeight); aMetrics.height = PR_MAX(aState.mY, aReflowState.availableHeight);
if (aReflowState.availableHeight == NS_UNCONSTRAINEDSIZE)
// This should never happen, but it does. See bug 414255
aMetrics.height = aState.mY;
} }
if (IS_TRUE_OVERFLOW_CONTAINER(this) && if (IS_TRUE_OVERFLOW_CONTAINER(this) &&