Remove some no longer needed code. Bug 368273, r+sr=dbaron

git-svn-id: svn://10.0.0.236/trunk@219168 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2007-01-30 05:52:27 +00:00
parent e194a83392
commit 78ccec5f86
4 changed files with 11 additions and 45 deletions

View File

@@ -1744,17 +1744,11 @@ nsTextControlFrame::CreateAnonymousContent(nsPresContext* aPresContext,
nscoord
nsTextControlFrame::GetMinWidth(nsIRenderingContext* aRenderingContext)
{
// Note: to fix bug 40596 while still working correctly in general, we want
// to return our preferred width as our min width if our style width is auto.
// Otherwise, we're ok with shrinking as small as needed.
// Our min width is just our preferred width if we have auto width.
nscoord result;
DISPLAY_MIN_WIDTH(this, result);
if (GetStylePosition()->mWidth.GetUnit() == eStyleUnit_Auto) {
result = GetPrefWidth(aRenderingContext);
} else {
result = 0;
}
result = GetPrefWidth(aRenderingContext);
return result;
}