From b0fa9e0a81540e9e57aaf9d12861c32cc8d53c10 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Mon, 31 Aug 1998 18:39:13 +0000 Subject: [PATCH] Define new SetAttr api --- layout/html/content/src/nsHTMLGenericContent.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/layout/html/content/src/nsHTMLGenericContent.h b/layout/html/content/src/nsHTMLGenericContent.h index d17a0b69e42e..a91b20b7fa8b 100644 --- a/layout/html/content/src/nsHTMLGenericContent.h +++ b/layout/html/content/src/nsHTMLGenericContent.h @@ -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);