during reflow it now should only reflow once for GFX widgets

git-svn-id: svn://10.0.0.236/trunk@45895 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com 1999-09-03 14:44:53 +00:00
parent ac3fd6cc62
commit b6f8bc909e
2 changed files with 6 additions and 4 deletions

View File

@ -246,12 +246,13 @@ nsFormControlFrame::Reflow(nsIPresContext& aPresContext,
aDesiredSize.descent = 0;
} else {
GetDesiredSize(&aPresContext, aReflowState, aDesiredSize);
nsresult rv = nsLeafFrame::Reflow(aPresContext, aDesiredSize, aReflowState, aStatus);
if (!mDidInit) {
//GetDesiredSize(&aPresContext, aReflowState, aDesiredSize);
PostCreateWidget(&aPresContext, aDesiredSize.width, aDesiredSize.height);
mDidInit = PR_TRUE;
}
return nsLeafFrame::Reflow(aPresContext, aDesiredSize, aReflowState, aStatus);
return rv;
}
aStatus = NS_FRAME_COMPLETE;

View File

@ -246,12 +246,13 @@ nsFormControlFrame::Reflow(nsIPresContext& aPresContext,
aDesiredSize.descent = 0;
} else {
GetDesiredSize(&aPresContext, aReflowState, aDesiredSize);
nsresult rv = nsLeafFrame::Reflow(aPresContext, aDesiredSize, aReflowState, aStatus);
if (!mDidInit) {
//GetDesiredSize(&aPresContext, aReflowState, aDesiredSize);
PostCreateWidget(&aPresContext, aDesiredSize.width, aDesiredSize.height);
mDidInit = PR_TRUE;
}
return nsLeafFrame::Reflow(aPresContext, aDesiredSize, aReflowState, aStatus);
return rv;
}
aStatus = NS_FRAME_COMPLETE;