Define new SetAttr api

This commit is contained in:
kipp%netscape.com 1998-08-31 18:39:13 +00:00
parent 19ca8a3434
commit b0fa9e0a81

View File

@ -44,6 +44,13 @@ class nsIStyleContext;
class nsIStyleRule;
class nsISupportsArray;
enum nsSetAttrNotify {
eSetAttrNotify_None = 0,
eSetAttrNotify_Render = 1,
eSetAttrNotify_Reflow = 2,
eSetAttrNotify_Restart = 3
};
struct nsHTMLGenericContent {
nsHTMLGenericContent();
~nsHTMLGenericContent();
@ -142,6 +149,12 @@ struct nsHTMLGenericContent {
//----------------------------------------
nsresult SetAttr(nsIAtom* aAttribute, const nsString& aValue,
nsSetAttrNotify aNotify);
nsresult SetAttr(nsIAtom* aAttribute, const nsHTMLValue& aValue,
nsSetAttrNotify aNotify);
nsresult AddScriptEventListener(nsIAtom* aAttribute,
nsHTMLValue& aValue,
REFNSIID aIID);