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:
@@ -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
|
||||
|
||||
4
mozilla/layout/reftests/bugs/373381-1-ref.html
Normal file
4
mozilla/layout/reftests/bugs/373381-1-ref.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<meta http-equiv="msthemecompatible" content="no">
|
||||
<input type="radio">
|
||||
<input type="radio">
|
||||
<input type="radio">
|
||||
4
mozilla/layout/reftests/bugs/373381-1.html
Normal file
4
mozilla/layout/reftests/bugs/373381-1.html
Normal 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">
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user