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:
nisheeth@netscape.com
1998-12-10 23:52:46 +00:00
parent 5405195487
commit fe4e3f5be8
125 changed files with 1403 additions and 10 deletions
+16 -1
View File
@@ -1217,4 +1217,19 @@ nsHTMLTableElement::HandleDOMEvent(nsIPresContext& aPresContext,
aFlags, aEventStatus);
}
NS_IMETHODIMP
nsHTMLTableElement::GetStyleHintForAttributeChange(
const nsIContent* aNode,
const nsIAtom* aAttribute,
PRInt32 *aHint) const
{
if (PR_TRUE == nsGenericHTMLElement::SetStyleHintForCommonAttributes(aNode,
aAttribute, aHint)) {
// Do nothing
}
else if (nsHTMLAtoms::summary != aAttribute)
{
*aHint = NS_STYLE_HINT_REFLOW;
}
return NS_OK;
}