From 5feaef5f2938b3b61981c6a6e48c96142fed7784 Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Wed, 21 Dec 2005 03:31:47 +0000 Subject: [PATCH] Give the extra reflow state a correct parent so it doesn't confuse the auto-offset code. b=317502 r+sr=roc git-svn-id: svn://10.0.0.236/trunk@186352 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/forms/nsFileControlFrame.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/layout/forms/nsFileControlFrame.cpp b/mozilla/layout/forms/nsFileControlFrame.cpp index 68db67ea78d..bc061107d62 100644 --- a/mozilla/layout/forms/nsFileControlFrame.cpp +++ b/mozilla/layout/forms/nsFileControlFrame.cpp @@ -412,7 +412,9 @@ NS_IMETHODIMP nsFileControlFrame::Reflow(nsPresContext* aPresContext, txtRect.height != aDesiredSize.height) { nsHTMLReflowMetrics txtKidSize(PR_TRUE); nsSize txtAvailSize(aReflowState.availableWidth, aDesiredSize.height); - nsHTMLReflowState txtKidReflowState(aPresContext, aReflowState, this, txtAvailSize, + nsHTMLReflowState txtKidReflowState(aPresContext, + *aReflowState.parentReflowState, + this, txtAvailSize, eReflowReason_Resize); txtKidReflowState.mComputedHeight = aDesiredSize.height; rv = nsAreaFrame::WillReflow(aPresContext);