added name space atoms

git-svn-id: svn://10.0.0.236/trunk@16204 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterl%netscape.com
1998-12-11 02:31:51 +00:00
parent 3b15182d29
commit 8917b0149d
6 changed files with 63 additions and 12 deletions

View File

@@ -19,6 +19,7 @@
// XXX make this be autogenerated. doh!
// media atoms
nsIAtom* nsLayoutAtoms::all;
nsIAtom* nsLayoutAtoms::aural;
nsIAtom* nsLayoutAtoms::braille;
@@ -30,10 +31,16 @@ nsIAtom* nsLayoutAtoms::screen;
nsIAtom* nsLayoutAtoms::tty;
nsIAtom* nsLayoutAtoms::tv;
// name space atoms
nsIAtom* nsLayoutAtoms::htmlNameSpace;
nsIAtom* nsLayoutAtoms::xmlNameSpace;
// frame additional child lists
nsIAtom* nsLayoutAtoms::absoluteList;
nsIAtom* nsLayoutAtoms::bulletList;
nsIAtom* nsLayoutAtoms::colGroupList;
nsIAtom* nsLayoutAtoms::floaterList;
nsIAtom* nsLayoutAtoms::bulletList;
static nsrefcnt gRefCnt;
@@ -51,10 +58,13 @@ void nsLayoutAtoms::AddrefAtoms()
tty = NS_NewAtom("TTY");
tv = NS_NewAtom("TV");
htmlNameSpace = NS_NewAtom("html");
xmlNameSpace = NS_NewAtom("xml");
absoluteList = NS_NewAtom("Absolute-list");
bulletList = NS_NewAtom("Bullet-list");
colGroupList = NS_NewAtom("ColGroup-list");
floaterList = NS_NewAtom("Floater-list");
bulletList = NS_NewAtom("Bullet-list");
}
++gRefCnt;
}
@@ -73,11 +83,14 @@ void nsLayoutAtoms::ReleaseAtoms()
NS_RELEASE(screen);
NS_RELEASE(tty);
NS_RELEASE(tv);
NS_RELEASE(htmlNameSpace);
NS_RELEASE(xmlNameSpace);
NS_RELEASE(absoluteList);
NS_RELEASE(bulletList);
NS_RELEASE(colGroupList);
NS_RELEASE(floaterList);
NS_RELEASE(bulletList);
}
}