during incr. reflow table cells have a unconstrained computed size, they need to ensure that a second constrained reflow is issued on the children, bug 237366, initial idea by saito@densan.co.jp r/sr=dbaron

This commit is contained in:
bmlk%gmx.de 2004-06-05 16:59:46 +00:00
Родитель 7fc586a3bf
Коммит 890df88cf5
2 изменённых файлов: 4 добавлений и 0 удалений

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

@ -1203,6 +1203,8 @@ nsTableRowFrame::IR_TargetIsChild(nsIPresContext* aPresContext,
// which will bias the balancing. Leave the avail width alone, since it is a best guess.
// After the table balances, the cell will get reflowed with the correct computed width.
PRBool resetComputedWidth = aTableFrame.NeedStrategyInit() || aTableFrame.NeedStrategyBalance();
if (resetComputedWidth)
cellFrame->SetNeedPass2Reflow(PR_TRUE);
InitChildReflowState(*aPresContext, cellAvailSize, aTableFrame.IsBorderCollapse(),
p2t, kidRS, resetComputedWidth);

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

@ -1203,6 +1203,8 @@ nsTableRowFrame::IR_TargetIsChild(nsIPresContext* aPresContext,
// which will bias the balancing. Leave the avail width alone, since it is a best guess.
// After the table balances, the cell will get reflowed with the correct computed width.
PRBool resetComputedWidth = aTableFrame.NeedStrategyInit() || aTableFrame.NeedStrategyBalance();
if (resetComputedWidth)
cellFrame->SetNeedPass2Reflow(PR_TRUE);
InitChildReflowState(*aPresContext, cellAvailSize, aTableFrame.IsBorderCollapse(),
p2t, kidRS, resetComputedWidth);