Remove some no longer needed code. Bug 368273, r+sr=dbaron
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user