mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Fixed a bug I created in GetStyleHintForAttributeChange
This commit is contained in:
parent
ccbf48c894
commit
3612ea4cf4
@ -680,7 +680,7 @@ nsHTMLInputElement::GetStyleHintForAttributeChange(
|
||||
PRInt32 *aHint) const
|
||||
{
|
||||
if (nsHTMLAtoms::checked == aAttribute ||
|
||||
nsHTMLAtoms::value) {
|
||||
nsHTMLAtoms::value == aAttribute) {
|
||||
*aHint = (nsnull != mWidget ? NS_STYLE_HINT_CONTENT : NS_STYLE_HINT_REFLOW);
|
||||
} else {
|
||||
nsGenericHTMLElement::SetStyleHintForCommonAttributes(aNode, aAttribute, aHint);
|
||||
|
@ -680,7 +680,7 @@ nsHTMLInputElement::GetStyleHintForAttributeChange(
|
||||
PRInt32 *aHint) const
|
||||
{
|
||||
if (nsHTMLAtoms::checked == aAttribute ||
|
||||
nsHTMLAtoms::value) {
|
||||
nsHTMLAtoms::value == aAttribute) {
|
||||
*aHint = (nsnull != mWidget ? NS_STYLE_HINT_CONTENT : NS_STYLE_HINT_REFLOW);
|
||||
} else {
|
||||
nsGenericHTMLElement::SetStyleHintForCommonAttributes(aNode, aAttribute, aHint);
|
||||
|
Loading…
Reference in New Issue
Block a user