Added a new method, GetStyleHintForAttributeChange() to nsIHTMLContent and implemented it in all the HTML content classes. The method is used by the HTML style sheet to get a style change hint from the content object when an attribute of the content object changes.
This commit is contained in:
@@ -416,3 +416,13 @@ nsHTMLButtonElement::SetForm(nsIDOMHTMLFormElement* aForm)
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLButtonElement::GetStyleHintForAttributeChange(
|
||||
const nsIContent * aNode,
|
||||
const nsIAtom* aAttribute,
|
||||
PRInt32 *aHint) const
|
||||
{
|
||||
nsGenericHTMLElement::SetStyleHintForCommonAttributes(aNode, aAttribute, aHint);
|
||||
return NS_OK;
|
||||
}
|
||||
Reference in New Issue
Block a user