зеркало из https://github.com/mozilla/gecko-dev.git
Added better default processing of hint
This commit is contained in:
Родитель
66066e1f3c
Коммит
cdc4c9ba17
|
@ -678,11 +678,7 @@ nsHTMLInputElement::GetStyleHintForAttributeChange(
|
||||||
const nsIAtom* aAttribute,
|
const nsIAtom* aAttribute,
|
||||||
PRInt32 *aHint) const
|
PRInt32 *aHint) const
|
||||||
{
|
{
|
||||||
if (nsHTMLAtoms::checked == aAttribute ||
|
*aHint = (nsnull != mWidget ? NS_STYLE_HINT_CONTENT : NS_STYLE_HINT_REFLOW);
|
||||||
nsHTMLAtoms::value == aAttribute) {
|
|
||||||
*aHint = (nsnull != mWidget ? NS_STYLE_HINT_CONTENT : NS_STYLE_HINT_REFLOW);
|
|
||||||
} else {
|
|
||||||
nsGenericHTMLElement::SetStyleHintForCommonAttributes(this, aAttribute, aHint);
|
|
||||||
}
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -678,11 +678,7 @@ nsHTMLInputElement::GetStyleHintForAttributeChange(
|
||||||
const nsIAtom* aAttribute,
|
const nsIAtom* aAttribute,
|
||||||
PRInt32 *aHint) const
|
PRInt32 *aHint) const
|
||||||
{
|
{
|
||||||
if (nsHTMLAtoms::checked == aAttribute ||
|
*aHint = (nsnull != mWidget ? NS_STYLE_HINT_CONTENT : NS_STYLE_HINT_REFLOW);
|
||||||
nsHTMLAtoms::value == aAttribute) {
|
|
||||||
*aHint = (nsnull != mWidget ? NS_STYLE_HINT_CONTENT : NS_STYLE_HINT_REFLOW);
|
|
||||||
} else {
|
|
||||||
nsGenericHTMLElement::SetStyleHintForCommonAttributes(this, aAttribute, aHint);
|
|
||||||
}
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче