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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user