Backed out my previous changes because of performance degradation in deeply nested tables. Will increase the stack size in Mac applications instead.
This commit is contained in:
@@ -900,14 +900,11 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
|
|||||||
const nsHTMLReflowState& aReflowState,
|
const nsHTMLReflowState& aReflowState,
|
||||||
nsReflowStatus& aStatus)
|
nsReflowStatus& aStatus)
|
||||||
{
|
{
|
||||||
nsLineLayout* lineLayout = new nsLineLayout(aPresContext, aReflowState.spaceManager,
|
nsLineLayout lineLayout(aPresContext, aReflowState.spaceManager,
|
||||||
&aReflowState, nsnull != aMetrics.maxElementSize);
|
&aReflowState, nsnull != aMetrics.maxElementSize);
|
||||||
if (! lineLayout) {
|
|
||||||
return NS_ERROR_OUT_OF_MEMORY;
|
|
||||||
}
|
|
||||||
nsBlockReflowState state(aReflowState, aPresContext, this, aMetrics,
|
nsBlockReflowState state(aReflowState, aPresContext, this, aMetrics,
|
||||||
lineLayout);
|
&lineLayout);
|
||||||
lineLayout->Init(&state);
|
lineLayout.Init(&state);
|
||||||
if (NS_BLOCK_MARGIN_ROOT & mFlags) {
|
if (NS_BLOCK_MARGIN_ROOT & mFlags) {
|
||||||
state.mIsMarginRoot = PR_TRUE;
|
state.mIsMarginRoot = PR_TRUE;
|
||||||
}
|
}
|
||||||
@@ -991,7 +988,6 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
|
|||||||
aMetrics.width, aMetrics.height,
|
aMetrics.width, aMetrics.height,
|
||||||
aMetrics.mCarriedOutTopMargin, aMetrics.mCarriedOutBottomMargin);
|
aMetrics.mCarriedOutTopMargin, aMetrics.mCarriedOutBottomMargin);
|
||||||
#endif
|
#endif
|
||||||
delete lineLayout;
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -900,14 +900,11 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
|
|||||||
const nsHTMLReflowState& aReflowState,
|
const nsHTMLReflowState& aReflowState,
|
||||||
nsReflowStatus& aStatus)
|
nsReflowStatus& aStatus)
|
||||||
{
|
{
|
||||||
nsLineLayout* lineLayout = new nsLineLayout(aPresContext, aReflowState.spaceManager,
|
nsLineLayout lineLayout(aPresContext, aReflowState.spaceManager,
|
||||||
&aReflowState, nsnull != aMetrics.maxElementSize);
|
&aReflowState, nsnull != aMetrics.maxElementSize);
|
||||||
if (! lineLayout) {
|
|
||||||
return NS_ERROR_OUT_OF_MEMORY;
|
|
||||||
}
|
|
||||||
nsBlockReflowState state(aReflowState, aPresContext, this, aMetrics,
|
nsBlockReflowState state(aReflowState, aPresContext, this, aMetrics,
|
||||||
lineLayout);
|
&lineLayout);
|
||||||
lineLayout->Init(&state);
|
lineLayout.Init(&state);
|
||||||
if (NS_BLOCK_MARGIN_ROOT & mFlags) {
|
if (NS_BLOCK_MARGIN_ROOT & mFlags) {
|
||||||
state.mIsMarginRoot = PR_TRUE;
|
state.mIsMarginRoot = PR_TRUE;
|
||||||
}
|
}
|
||||||
@@ -991,7 +988,6 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
|
|||||||
aMetrics.width, aMetrics.height,
|
aMetrics.width, aMetrics.height,
|
||||||
aMetrics.mCarriedOutTopMargin, aMetrics.mCarriedOutBottomMargin);
|
aMetrics.mCarriedOutTopMargin, aMetrics.mCarriedOutBottomMargin);
|
||||||
#endif
|
#endif
|
||||||
delete lineLayout;
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -900,14 +900,11 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
|
|||||||
const nsHTMLReflowState& aReflowState,
|
const nsHTMLReflowState& aReflowState,
|
||||||
nsReflowStatus& aStatus)
|
nsReflowStatus& aStatus)
|
||||||
{
|
{
|
||||||
nsLineLayout* lineLayout = new nsLineLayout(aPresContext, aReflowState.spaceManager,
|
nsLineLayout lineLayout(aPresContext, aReflowState.spaceManager,
|
||||||
&aReflowState, nsnull != aMetrics.maxElementSize);
|
&aReflowState, nsnull != aMetrics.maxElementSize);
|
||||||
if (! lineLayout) {
|
|
||||||
return NS_ERROR_OUT_OF_MEMORY;
|
|
||||||
}
|
|
||||||
nsBlockReflowState state(aReflowState, aPresContext, this, aMetrics,
|
nsBlockReflowState state(aReflowState, aPresContext, this, aMetrics,
|
||||||
lineLayout);
|
&lineLayout);
|
||||||
lineLayout->Init(&state);
|
lineLayout.Init(&state);
|
||||||
if (NS_BLOCK_MARGIN_ROOT & mFlags) {
|
if (NS_BLOCK_MARGIN_ROOT & mFlags) {
|
||||||
state.mIsMarginRoot = PR_TRUE;
|
state.mIsMarginRoot = PR_TRUE;
|
||||||
}
|
}
|
||||||
@@ -991,7 +988,6 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
|
|||||||
aMetrics.width, aMetrics.height,
|
aMetrics.width, aMetrics.height,
|
||||||
aMetrics.mCarriedOutTopMargin, aMetrics.mCarriedOutBottomMargin);
|
aMetrics.mCarriedOutTopMargin, aMetrics.mCarriedOutBottomMargin);
|
||||||
#endif
|
#endif
|
||||||
delete lineLayout;
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -900,14 +900,11 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
|
|||||||
const nsHTMLReflowState& aReflowState,
|
const nsHTMLReflowState& aReflowState,
|
||||||
nsReflowStatus& aStatus)
|
nsReflowStatus& aStatus)
|
||||||
{
|
{
|
||||||
nsLineLayout* lineLayout = new nsLineLayout(aPresContext, aReflowState.spaceManager,
|
nsLineLayout lineLayout(aPresContext, aReflowState.spaceManager,
|
||||||
&aReflowState, nsnull != aMetrics.maxElementSize);
|
&aReflowState, nsnull != aMetrics.maxElementSize);
|
||||||
if (! lineLayout) {
|
|
||||||
return NS_ERROR_OUT_OF_MEMORY;
|
|
||||||
}
|
|
||||||
nsBlockReflowState state(aReflowState, aPresContext, this, aMetrics,
|
nsBlockReflowState state(aReflowState, aPresContext, this, aMetrics,
|
||||||
lineLayout);
|
&lineLayout);
|
||||||
lineLayout->Init(&state);
|
lineLayout.Init(&state);
|
||||||
if (NS_BLOCK_MARGIN_ROOT & mFlags) {
|
if (NS_BLOCK_MARGIN_ROOT & mFlags) {
|
||||||
state.mIsMarginRoot = PR_TRUE;
|
state.mIsMarginRoot = PR_TRUE;
|
||||||
}
|
}
|
||||||
@@ -991,7 +988,6 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
|
|||||||
aMetrics.width, aMetrics.height,
|
aMetrics.width, aMetrics.height,
|
||||||
aMetrics.mCarriedOutTopMargin, aMetrics.mCarriedOutBottomMargin);
|
aMetrics.mCarriedOutTopMargin, aMetrics.mCarriedOutBottomMargin);
|
||||||
#endif
|
#endif
|
||||||
delete lineLayout;
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -900,14 +900,11 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
|
|||||||
const nsHTMLReflowState& aReflowState,
|
const nsHTMLReflowState& aReflowState,
|
||||||
nsReflowStatus& aStatus)
|
nsReflowStatus& aStatus)
|
||||||
{
|
{
|
||||||
nsLineLayout* lineLayout = new nsLineLayout(aPresContext, aReflowState.spaceManager,
|
nsLineLayout lineLayout(aPresContext, aReflowState.spaceManager,
|
||||||
&aReflowState, nsnull != aMetrics.maxElementSize);
|
&aReflowState, nsnull != aMetrics.maxElementSize);
|
||||||
if (! lineLayout) {
|
|
||||||
return NS_ERROR_OUT_OF_MEMORY;
|
|
||||||
}
|
|
||||||
nsBlockReflowState state(aReflowState, aPresContext, this, aMetrics,
|
nsBlockReflowState state(aReflowState, aPresContext, this, aMetrics,
|
||||||
lineLayout);
|
&lineLayout);
|
||||||
lineLayout->Init(&state);
|
lineLayout.Init(&state);
|
||||||
if (NS_BLOCK_MARGIN_ROOT & mFlags) {
|
if (NS_BLOCK_MARGIN_ROOT & mFlags) {
|
||||||
state.mIsMarginRoot = PR_TRUE;
|
state.mIsMarginRoot = PR_TRUE;
|
||||||
}
|
}
|
||||||
@@ -991,7 +988,6 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
|
|||||||
aMetrics.width, aMetrics.height,
|
aMetrics.width, aMetrics.height,
|
||||||
aMetrics.mCarriedOutTopMargin, aMetrics.mCarriedOutBottomMargin);
|
aMetrics.mCarriedOutTopMargin, aMetrics.mCarriedOutBottomMargin);
|
||||||
#endif
|
#endif
|
||||||
delete lineLayout;
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -900,14 +900,11 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
|
|||||||
const nsHTMLReflowState& aReflowState,
|
const nsHTMLReflowState& aReflowState,
|
||||||
nsReflowStatus& aStatus)
|
nsReflowStatus& aStatus)
|
||||||
{
|
{
|
||||||
nsLineLayout* lineLayout = new nsLineLayout(aPresContext, aReflowState.spaceManager,
|
nsLineLayout lineLayout(aPresContext, aReflowState.spaceManager,
|
||||||
&aReflowState, nsnull != aMetrics.maxElementSize);
|
&aReflowState, nsnull != aMetrics.maxElementSize);
|
||||||
if (! lineLayout) {
|
|
||||||
return NS_ERROR_OUT_OF_MEMORY;
|
|
||||||
}
|
|
||||||
nsBlockReflowState state(aReflowState, aPresContext, this, aMetrics,
|
nsBlockReflowState state(aReflowState, aPresContext, this, aMetrics,
|
||||||
lineLayout);
|
&lineLayout);
|
||||||
lineLayout->Init(&state);
|
lineLayout.Init(&state);
|
||||||
if (NS_BLOCK_MARGIN_ROOT & mFlags) {
|
if (NS_BLOCK_MARGIN_ROOT & mFlags) {
|
||||||
state.mIsMarginRoot = PR_TRUE;
|
state.mIsMarginRoot = PR_TRUE;
|
||||||
}
|
}
|
||||||
@@ -991,7 +988,6 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
|
|||||||
aMetrics.width, aMetrics.height,
|
aMetrics.width, aMetrics.height,
|
||||||
aMetrics.mCarriedOutTopMargin, aMetrics.mCarriedOutBottomMargin);
|
aMetrics.mCarriedOutTopMargin, aMetrics.mCarriedOutBottomMargin);
|
||||||
#endif
|
#endif
|
||||||
delete lineLayout;
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user