зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
7fc586a3bf
Коммит
890df88cf5
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче