Bug 794693, part 1: Refactor nsHTMLReflowState constructor to allow initialization to be done by caller. [r=dbaron]
This commit is contained in:
@@ -2681,7 +2681,7 @@ nsTableFrame::SetupHeaderFooterChild(const nsTableReflowState& aReflowState,
|
||||
nsHTMLReflowState kidReflowState(presContext, aReflowState.reflowState,
|
||||
aFrame,
|
||||
nsSize(aReflowState.availSize.width, NS_UNCONSTRAINEDSIZE),
|
||||
-1, -1, false);
|
||||
-1, -1, nsHTMLReflowState::CALLER_WILL_INIT);
|
||||
InitChildReflowState(kidReflowState);
|
||||
kidReflowState.mFlags.mIsTopOfPage = true;
|
||||
nsHTMLReflowMetrics desiredSize;
|
||||
@@ -2708,7 +2708,8 @@ nsTableFrame::PlaceRepeatedFooter(nsTableReflowState& aReflowState,
|
||||
nsHTMLReflowState footerReflowState(presContext,
|
||||
aReflowState.reflowState,
|
||||
aTfoot, kidAvailSize,
|
||||
-1, -1, false);
|
||||
-1, -1,
|
||||
nsHTMLReflowState::CALLER_WILL_INIT);
|
||||
InitChildReflowState(footerReflowState);
|
||||
aReflowState.y += GetCellSpacingY();
|
||||
|
||||
@@ -2828,7 +2829,8 @@ nsTableFrame::ReflowChildren(nsTableReflowState& aReflowState,
|
||||
// Reflow the child into the available space
|
||||
nsHTMLReflowState kidReflowState(presContext, aReflowState.reflowState,
|
||||
kidFrame, kidAvailSize,
|
||||
-1, -1, false);
|
||||
-1, -1,
|
||||
nsHTMLReflowState::CALLER_WILL_INIT);
|
||||
InitChildReflowState(kidReflowState);
|
||||
|
||||
// If this isn't the first row group, and the previous row group has a
|
||||
|
||||
Reference in New Issue
Block a user