diff --git a/mozilla/layout/generic/nsHTMLReflowState.cpp b/mozilla/layout/generic/nsHTMLReflowState.cpp
index 2d81f446d42..5ecc826f122 100644
--- a/mozilla/layout/generic/nsHTMLReflowState.cpp
+++ b/mozilla/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/mozilla/layout/html/base/src/nsHTMLReflowState.cpp b/mozilla/layout/html/base/src/nsHTMLReflowState.cpp
index 2d81f446d42..5ecc826f122 100644
--- a/mozilla/layout/html/base/src/nsHTMLReflowState.cpp
+++ b/mozilla/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