Added beforePseudo and afterPseudo

git-svn-id: svn://10.0.0.236/trunk@25524 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1999-03-30 00:48:57 +00:00
parent 4091a2a227
commit 03933cc5d6
5 changed files with 27 additions and 0 deletions

View File

@@ -34,6 +34,9 @@ public:
// Alphabetical list of css atoms
static nsIAtom* activePseudo;
static nsIAtom* afterPseudo;
static nsIAtom* beforePseudo;
static nsIAtom* disabledPseudo;

View File

@@ -34,6 +34,9 @@ public:
// Alphabetical list of css atoms
static nsIAtom* activePseudo;
static nsIAtom* afterPseudo;
static nsIAtom* beforePseudo;
static nsIAtom* disabledPseudo;

View File

@@ -20,6 +20,9 @@
// XXX make this be autogenerated. doh!
nsIAtom* nsCSSAtoms::activePseudo;
nsIAtom* nsCSSAtoms::afterPseudo;
nsIAtom* nsCSSAtoms::beforePseudo;
nsIAtom* nsCSSAtoms::disabledPseudo;
@@ -49,6 +52,9 @@ void nsCSSAtoms::AddrefAtoms()
{
if (0 == gRefCnt) {
activePseudo = NS_NewAtom(":active");
afterPseudo = NS_NewAtom(":after");
beforePseudo = NS_NewAtom(":before");
disabledPseudo = NS_NewAtom(":disabled");
@@ -79,7 +85,10 @@ void nsCSSAtoms::ReleaseAtoms()
NS_PRECONDITION(gRefCnt != 0, "bad release atoms");
if (--gRefCnt == 0) {
NS_RELEASE(activePseudo);
NS_RELEASE(afterPseudo);
NS_RELEASE(beforePseudo);
NS_RELEASE(disabledPseudo);
NS_RELEASE(enabledPseudo);

View File

@@ -34,6 +34,9 @@ public:
// Alphabetical list of css atoms
static nsIAtom* activePseudo;
static nsIAtom* afterPseudo;
static nsIAtom* beforePseudo;
static nsIAtom* disabledPseudo;

View File

@@ -20,6 +20,9 @@
// XXX make this be autogenerated. doh!
nsIAtom* nsCSSAtoms::activePseudo;
nsIAtom* nsCSSAtoms::afterPseudo;
nsIAtom* nsCSSAtoms::beforePseudo;
nsIAtom* nsCSSAtoms::disabledPseudo;
@@ -49,6 +52,9 @@ void nsCSSAtoms::AddrefAtoms()
{
if (0 == gRefCnt) {
activePseudo = NS_NewAtom(":active");
afterPseudo = NS_NewAtom(":after");
beforePseudo = NS_NewAtom(":before");
disabledPseudo = NS_NewAtom(":disabled");
@@ -79,7 +85,10 @@ void nsCSSAtoms::ReleaseAtoms()
NS_PRECONDITION(gRefCnt != 0, "bad release atoms");
if (--gRefCnt == 0) {
NS_RELEASE(activePseudo);
NS_RELEASE(afterPseudo);
NS_RELEASE(beforePseudo);
NS_RELEASE(disabledPseudo);
NS_RELEASE(enabledPseudo);