Bug 373381: Rendering of radios/checkboxes with auto width has regressed. r+sr=roc.

git-svn-id: svn://10.0.0.236/trunk@221862 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sharparrow1%yahoo.com
2007-03-14 02:47:05 +00:00
parent 7edf233b14
commit 33a123151f
4 changed files with 17 additions and 4 deletions

View File

@@ -80,15 +80,19 @@ nsFormControlFrame::QueryInterface(const nsIID& aIID, void** aInstancePtr)
nscoord
nsFormControlFrame::GetIntrinsicWidth()
{
// Actual width is set in forms.css
return 0;
// Provide a reasonable default for sites that use an "auto" height.
// Note that if you change this, you should change the values in forms.css
// as well. This is the 13px default width minus the 2px default border.
return nsPresContext::CSSPixelsToAppUnits(13 - 2 * 2);
}
nscoord
nsFormControlFrame::GetIntrinsicHeight()
{
// Actual width is set in forms.css
return 0;
// Provide a reasonable default for sites that use an "auto" height.
// Note that if you change this, you should change the values in forms.css
// as well. This is the 13px default width minus the 2px default border.
return nsPresContext::CSSPixelsToAppUnits(13 - 2 * 2);
}
NS_METHOD

View File

@@ -0,0 +1,4 @@
<meta http-equiv="msthemecompatible" content="no">
<input type="radio">
<input type="radio">
<input type="radio">

View File

@@ -0,0 +1,4 @@
<meta http-equiv="msthemecompatible" content="no">
<input type="radio" style="width: auto">
<input type="radio" style="height: auto">
<input type="radio" style="height: auto; width: auto">

View File

@@ -190,3 +190,4 @@ fails == 368504-1.html 368504-1-ref.html # bug 368504
== 371925-1a.html 371925-1-ref.html
== 371925-1b.html 371925-1-ref.html
== 372553-1.html 372553-1-ref.html
== 373381-1.html 373381-1-ref.html