Bug 794693, part 1: Refactor nsHTMLReflowState constructor to allow initialization to be done by caller. [r=dbaron]
This commit is contained in:
@@ -371,7 +371,8 @@ nsTableRowGroupFrame::ReflowChildren(nsPresContext* aPresContext,
|
||||
nsSize kidAvailSize(aReflowState.availSize.width, NS_UNCONSTRAINEDSIZE);
|
||||
nsHTMLReflowState kidReflowState(aPresContext, aReflowState.reflowState,
|
||||
kidFrame, kidAvailSize,
|
||||
-1, -1, false);
|
||||
-1, -1,
|
||||
nsHTMLReflowState::CALLER_WILL_INIT);
|
||||
InitChildReflowState(*aPresContext, borderCollapse, kidReflowState);
|
||||
|
||||
// This can indicate that columns were resized.
|
||||
@@ -933,7 +934,8 @@ nsTableRowGroupFrame::SplitSpanningCells(nsPresContext& aPresContext,
|
||||
rowAvailSize.height = std::min(rowAvailSize.height, rowRect.height);
|
||||
nsHTMLReflowState rowReflowState(&aPresContext, aReflowState,
|
||||
row, rowAvailSize,
|
||||
-1, -1, false);
|
||||
-1, -1,
|
||||
nsHTMLReflowState::CALLER_WILL_INIT);
|
||||
InitChildReflowState(aPresContext, borderCollapse, rowReflowState);
|
||||
rowReflowState.mFlags.mIsTopOfPage = isTopOfPage; // set top of page
|
||||
|
||||
@@ -1068,7 +1070,8 @@ nsTableRowGroupFrame::SplitRowGroup(nsPresContext* aPresContext,
|
||||
|
||||
nsHTMLReflowState rowReflowState(aPresContext, aReflowState,
|
||||
rowFrame, availSize,
|
||||
-1, -1, false);
|
||||
-1, -1,
|
||||
nsHTMLReflowState::CALLER_WILL_INIT);
|
||||
|
||||
InitChildReflowState(*aPresContext, borderCollapse, rowReflowState);
|
||||
rowReflowState.mFlags.mIsTopOfPage = isTopOfPage; // set top of page
|
||||
|
||||
Reference in New Issue
Block a user