removed code to set margins on radio buttons and checkboxes. It is now done using attribute selectors in ua.css.
This commit is contained in:
Родитель
e8de3e1d81
Коммит
92f14ae1f9
|
@ -602,8 +602,12 @@ MapAttributesInto(nsIHTMLAttributes* aAttributes,
|
|||
aAttributes->GetAttribute(nsHTMLAtoms::type, value);
|
||||
if (eHTMLUnit_Enumerated == value.GetUnit()) {
|
||||
switch (value.GetIntValue()) {
|
||||
case NS_FORM_INPUT_CHECKBOX:
|
||||
case NS_FORM_INPUT_RADIO:
|
||||
//XXX when there exists both a Standard and Quirks ua.css, remove this code
|
||||
//XXX it may be needed again if we don't have 2 ua.css files
|
||||
//XXX this is now handled by attribute selectors in ua.css
|
||||
#if 0
|
||||
case NS_FORM_INPUT_CHECKBOX:
|
||||
case NS_FORM_INPUT_RADIO:
|
||||
{
|
||||
float p2t;
|
||||
aPresContext->GetScaledPixelsToTwips(&p2t);
|
||||
|
@ -631,6 +635,7 @@ MapAttributesInto(nsIHTMLAttributes* aAttributes,
|
|||
}
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
case NS_FORM_INPUT_IMAGE:
|
||||
{
|
||||
// Apply the image border as well. For form elements the color is
|
||||
|
|
|
@ -602,8 +602,12 @@ MapAttributesInto(nsIHTMLAttributes* aAttributes,
|
|||
aAttributes->GetAttribute(nsHTMLAtoms::type, value);
|
||||
if (eHTMLUnit_Enumerated == value.GetUnit()) {
|
||||
switch (value.GetIntValue()) {
|
||||
case NS_FORM_INPUT_CHECKBOX:
|
||||
case NS_FORM_INPUT_RADIO:
|
||||
//XXX when there exists both a Standard and Quirks ua.css, remove this code
|
||||
//XXX it may be needed again if we don't have 2 ua.css files
|
||||
//XXX this is now handled by attribute selectors in ua.css
|
||||
#if 0
|
||||
case NS_FORM_INPUT_CHECKBOX:
|
||||
case NS_FORM_INPUT_RADIO:
|
||||
{
|
||||
float p2t;
|
||||
aPresContext->GetScaledPixelsToTwips(&p2t);
|
||||
|
@ -631,6 +635,7 @@ MapAttributesInto(nsIHTMLAttributes* aAttributes,
|
|||
}
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
case NS_FORM_INPUT_IMAGE:
|
||||
{
|
||||
// Apply the image border as well. For form elements the color is
|
||||
|
|
|
@ -401,6 +401,11 @@ input {
|
|||
color: black;
|
||||
}
|
||||
input[type=radio] {
|
||||
/* these margins are for NavQuirks, we need a Standard ua.css */
|
||||
margin-left: 3px;
|
||||
margin-right: 5px;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
border: 2px inset rgb(192, 192, 192);
|
||||
background-color:white;
|
||||
color:black;
|
||||
|
@ -409,6 +414,11 @@ input[type=radio] {
|
|||
}
|
||||
|
||||
input[type=checkbox] {
|
||||
/* these margins are for NavQuirks, we need a Standard ua.css */
|
||||
margin-left: 3px;
|
||||
margin-right: 5px;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 4px;
|
||||
border: 2px inset rgb(192, 192, 192);
|
||||
width:11px;
|
||||
height:11px;
|
||||
|
|
|
@ -401,6 +401,11 @@ input {
|
|||
color: black;
|
||||
}
|
||||
input[type=radio] {
|
||||
/* these margins are for NavQuirks, we need a Standard ua.css */
|
||||
margin-left: 3px;
|
||||
margin-right: 5px;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
border: 2px inset rgb(192, 192, 192);
|
||||
background-color:white;
|
||||
color:black;
|
||||
|
@ -409,6 +414,11 @@ input[type=radio] {
|
|||
}
|
||||
|
||||
input[type=checkbox] {
|
||||
/* these margins are for NavQuirks, we need a Standard ua.css */
|
||||
margin-left: 3px;
|
||||
margin-right: 5px;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 4px;
|
||||
border: 2px inset rgb(192, 192, 192);
|
||||
width:11px;
|
||||
height:11px;
|
||||
|
|
Загрузка…
Ссылка в новой задаче