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:
parent
ac3fd6cc62
commit
b6f8bc909e
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user