Added processing hint for the "value" attribute
git-svn-id: svn://10.0.0.236/trunk@16566 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -679,7 +679,8 @@ nsHTMLInputElement::GetStyleHintForAttributeChange(
|
||||
const nsIAtom* aAttribute,
|
||||
PRInt32 *aHint) const
|
||||
{
|
||||
if (nsHTMLAtoms::checked == aAttribute) {
|
||||
if (nsHTMLAtoms::checked == aAttribute ||
|
||||
nsHTMLAtoms::value) {
|
||||
*aHint = (nsnull != mWidget ? NS_STYLE_HINT_CONTENT : NS_STYLE_HINT_REFLOW);
|
||||
} else {
|
||||
nsGenericHTMLElement::SetStyleHintForCommonAttributes(aNode, aAttribute, aHint);
|
||||
|
||||
@@ -679,7 +679,8 @@ nsHTMLInputElement::GetStyleHintForAttributeChange(
|
||||
const nsIAtom* aAttribute,
|
||||
PRInt32 *aHint) const
|
||||
{
|
||||
if (nsHTMLAtoms::checked == aAttribute) {
|
||||
if (nsHTMLAtoms::checked == aAttribute ||
|
||||
nsHTMLAtoms::value) {
|
||||
*aHint = (nsnull != mWidget ? NS_STYLE_HINT_CONTENT : NS_STYLE_HINT_REFLOW);
|
||||
} else {
|
||||
nsGenericHTMLElement::SetStyleHintForCommonAttributes(aNode, aAttribute, aHint);
|
||||
|
||||
Reference in New Issue
Block a user