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

This commit is contained in:
bzbarsky@mit.edu
2007-01-30 05:52:27 +00:00
parent 499098ae5c
commit ec0b8c50c7
4 changed files with 11 additions and 45 deletions

View File

@@ -572,18 +572,11 @@ static void printSize(char * aDesc, nscoord aSize)
nscoord
nsComboboxControlFrame::GetMinWidth(nsIRenderingContext *aRenderingContext)
{
// Note: to fix the combobox equivalent of 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.
// We want to size to our pref 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;
}