mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-17 12:21:32 +00:00
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:
parent
7fc586a3bf
commit
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user