mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 06:22:33 +00:00
Define new SetAttr api
This commit is contained in:
parent
19ca8a3434
commit
b0fa9e0a81
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user