From 3e20badab0a671c0be0434a240dd6b76dcd89aaf Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Sat, 18 Oct 2003 06:08:39 +0000 Subject: [PATCH] Test performance impact of not limiting to the first level now that bug 222730 is fixed. r=dbaron --- layout/generic/nsHTMLReflowState.cpp | 2 +- layout/html/base/src/nsHTMLReflowState.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/generic/nsHTMLReflowState.cpp b/layout/generic/nsHTMLReflowState.cpp index 2d81f446d42..5ecc826f122 100644 --- a/layout/generic/nsHTMLReflowState.cpp +++ b/layout/generic/nsHTMLReflowState.cpp @@ -1577,7 +1577,7 @@ nsHTMLReflowState::ComputeContainingBlockRectangle(nsIPresContext* aPre aPresContext->GetCompatibilityMode(&mode); if (eCompatibility_NavQuirks == mode && mStylePosition->mHeight.GetUnit() == eStyleUnit_Percent) { - aContainingBlockHeight = CalcQuirkContainingBlockHeight(*aContainingBlockRS, PR_TRUE); + aContainingBlockHeight = CalcQuirkContainingBlockHeight(*aContainingBlockRS, PR_FALSE); // NOTE: passing PR_TRUE for the aRestrictToFirstLevel argument, to restrict the search // for the containing block height to only the immediate parent block or area // frame. In the case that we need to go further, we would need to pass PR_TRUE diff --git a/layout/html/base/src/nsHTMLReflowState.cpp b/layout/html/base/src/nsHTMLReflowState.cpp index 2d81f446d42..5ecc826f122 100644 --- a/layout/html/base/src/nsHTMLReflowState.cpp +++ b/layout/html/base/src/nsHTMLReflowState.cpp @@ -1577,7 +1577,7 @@ nsHTMLReflowState::ComputeContainingBlockRectangle(nsIPresContext* aPre aPresContext->GetCompatibilityMode(&mode); if (eCompatibility_NavQuirks == mode && mStylePosition->mHeight.GetUnit() == eStyleUnit_Percent) { - aContainingBlockHeight = CalcQuirkContainingBlockHeight(*aContainingBlockRS, PR_TRUE); + aContainingBlockHeight = CalcQuirkContainingBlockHeight(*aContainingBlockRS, PR_FALSE); // NOTE: passing PR_TRUE for the aRestrictToFirstLevel argument, to restrict the search // for the containing block height to only the immediate parent block or area // frame. In the case that we need to go further, we would need to pass PR_TRUE