fix reflow reason for special height reflow, reevaluate height reflow conditions as tables with fixed layout might have one reflow less bug 293761 r/sr=roc a=asa

This commit is contained in:
bmlk%gmx.de 2005-06-21 04:50:42 +00:00
Родитель a6ed51abdc
Коммит a12211ee7d
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -1973,9 +1973,13 @@ NS_METHOD nsTableFrame::Reflow(nsPresContext* aPresContext,
ReflowTable(aDesiredSize, aReflowState, availHeight, nextReason,
lastChildReflowed, balanced, aStatus);
nextReason = eReflowReason_Resize;
reflowedChildren = PR_TRUE;
}
if (willInitiateSpecialReflow && NS_FRAME_IS_COMPLETE(aStatus)) {
// reevaluate special height reflow conditions
if ((NeedToInitiateSpecialReflow() || InitiatedSpecialReflow()) &&
(aReflowState.mFlags.mSpecialHeightReflow || !NeedSpecialReflow()) &&
NS_FRAME_IS_COMPLETE(aStatus)) {
// distribute extra vertical space to rows
CalcDesiredHeight(aReflowState, aDesiredSize);
((nsHTMLReflowState::ReflowStateFlags&)aReflowState.mFlags).mSpecialHeightReflow = PR_TRUE;