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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user