From 2fa8eaddcf710e57a2add20250226894713b1de5 Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Fri, 16 Apr 1999 17:07:48 +0000 Subject: [PATCH] add tristatecheckbox to atom list. --- content/shared/public/nsXULAtoms.h | 1 + content/shared/src/nsXULAtoms.cpp | 3 +++ layout/xul/content/src/nsXULAtoms.cpp | 3 +++ layout/xul/content/src/nsXULAtoms.h | 1 + 4 files changed, 8 insertions(+) diff --git a/content/shared/public/nsXULAtoms.h b/content/shared/public/nsXULAtoms.h index ef8e33924b08..1d4d2ed0aac1 100644 --- a/content/shared/public/nsXULAtoms.h +++ b/content/shared/public/nsXULAtoms.h @@ -42,6 +42,7 @@ public: static nsIAtom* button; static nsIAtom* checkbox; + static nsIAtom* tristatecheckbox; static nsIAtom* radio; diff --git a/content/shared/src/nsXULAtoms.cpp b/content/shared/src/nsXULAtoms.cpp index 1518de97727f..5a0f10dfcf1b 100644 --- a/content/shared/src/nsXULAtoms.cpp +++ b/content/shared/src/nsXULAtoms.cpp @@ -27,6 +27,7 @@ static const char kXULNameSpace[] = "http://www.mozilla.org/keymaster/gatekeeper PRInt32 nsXULAtoms::nameSpaceID; nsIAtom* nsXULAtoms::button; nsIAtom* nsXULAtoms::checkbox; +nsIAtom* nsXULAtoms::tristatecheckbox; nsIAtom* nsXULAtoms::radio; nsIAtom* nsXULAtoms::text; nsIAtom* nsXULAtoms::toolbar; @@ -72,6 +73,7 @@ void nsXULAtoms::AddrefAtoms() { // now register the atoms button = NS_NewAtom("button"); checkbox = NS_NewAtom("checkbox"); + tristatecheckbox = NS_NewAtom("tristatecheckbox"); radio = NS_NewAtom("radio"); text = NS_NewAtom("text"); toolbar = NS_NewAtom("toolbar"); @@ -108,6 +110,7 @@ void nsXULAtoms::ReleaseAtoms() { if (--gRefCnt == 0) { NS_RELEASE(button); NS_RELEASE(checkbox); + NS_RELEASE(tristatecheckbox); NS_RELEASE(radio); NS_RELEASE(text); NS_RELEASE(toolbar); diff --git a/layout/xul/content/src/nsXULAtoms.cpp b/layout/xul/content/src/nsXULAtoms.cpp index 1518de97727f..5a0f10dfcf1b 100644 --- a/layout/xul/content/src/nsXULAtoms.cpp +++ b/layout/xul/content/src/nsXULAtoms.cpp @@ -27,6 +27,7 @@ static const char kXULNameSpace[] = "http://www.mozilla.org/keymaster/gatekeeper PRInt32 nsXULAtoms::nameSpaceID; nsIAtom* nsXULAtoms::button; nsIAtom* nsXULAtoms::checkbox; +nsIAtom* nsXULAtoms::tristatecheckbox; nsIAtom* nsXULAtoms::radio; nsIAtom* nsXULAtoms::text; nsIAtom* nsXULAtoms::toolbar; @@ -72,6 +73,7 @@ void nsXULAtoms::AddrefAtoms() { // now register the atoms button = NS_NewAtom("button"); checkbox = NS_NewAtom("checkbox"); + tristatecheckbox = NS_NewAtom("tristatecheckbox"); radio = NS_NewAtom("radio"); text = NS_NewAtom("text"); toolbar = NS_NewAtom("toolbar"); @@ -108,6 +110,7 @@ void nsXULAtoms::ReleaseAtoms() { if (--gRefCnt == 0) { NS_RELEASE(button); NS_RELEASE(checkbox); + NS_RELEASE(tristatecheckbox); NS_RELEASE(radio); NS_RELEASE(text); NS_RELEASE(toolbar); diff --git a/layout/xul/content/src/nsXULAtoms.h b/layout/xul/content/src/nsXULAtoms.h index ef8e33924b08..1d4d2ed0aac1 100644 --- a/layout/xul/content/src/nsXULAtoms.h +++ b/layout/xul/content/src/nsXULAtoms.h @@ -42,6 +42,7 @@ public: static nsIAtom* button; static nsIAtom* checkbox; + static nsIAtom* tristatecheckbox; static nsIAtom* radio;