From b7e36c8bcd0623d4777540704e4d873e39b5ec55 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Fri, 22 Jan 1999 15:25:12 +0000 Subject: [PATCH] Added some additional attoms for the Combobox Frame Control --- content/html/content/src/nsHTMLAtoms.cpp | 16 ++++++++++++++-- content/html/content/src/nsHTMLAtoms.h | 4 ++++ content/shared/public/nsHTMLAtoms.h | 4 ++++ content/shared/src/nsHTMLAtoms.cpp | 16 ++++++++++++++-- layout/html/base/src/nsHTMLAtoms.cpp | 16 ++++++++++++++-- layout/html/base/src/nsHTMLAtoms.h | 4 ++++ 6 files changed, 54 insertions(+), 6 deletions(-) diff --git a/content/html/content/src/nsHTMLAtoms.cpp b/content/html/content/src/nsHTMLAtoms.cpp index b7e8033bd811..26b844ad27d2 100644 --- a/content/html/content/src/nsHTMLAtoms.cpp +++ b/content/html/content/src/nsHTMLAtoms.cpp @@ -85,6 +85,10 @@ nsIAtom* nsHTMLAtoms::dir; nsIAtom* nsHTMLAtoms::disabled; nsIAtom* nsHTMLAtoms::div; nsIAtom* nsHTMLAtoms::dl; +nsIAtom* nsHTMLAtoms::dropDownVisible; +nsIAtom* nsHTMLAtoms::dropDownHidden; +nsIAtom* nsHTMLAtoms::dropDownBtnOut; +nsIAtom* nsHTMLAtoms::dropDownBtnPressed; nsIAtom* nsHTMLAtoms::embed; nsIAtom* nsHTMLAtoms::encoding; nsIAtom* nsHTMLAtoms::enctype; @@ -322,6 +326,10 @@ void nsHTMLAtoms::AddrefAtoms() div = NS_NewAtom("DIV"); disabled = NS_NewAtom("DISABLED"); dl = NS_NewAtom("DL"); + dropDownVisible = NS_NewAtom(":DROPDOWN-VISIBLE"); + dropDownHidden = NS_NewAtom(":DROPDOWN-HIDDEN"); + dropDownBtnOut = NS_NewAtom(":DROPDOWN-BTN-OUT"); + dropDownBtnPressed = NS_NewAtom(":DROPDOWN-BTN-PRESSED"); datetime = NS_NewAtom("DATETIME"); data = NS_NewAtom("DATA"); embed = NS_NewAtom("EMBED"); @@ -548,6 +556,8 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(compact); NS_RELEASE(content); NS_RELEASE(coords); + NS_RELEASE(data); + NS_RELEASE(datetime); NS_RELEASE(defaultchecked); NS_RELEASE(defaultselected); NS_RELEASE(defaultvalue); @@ -557,8 +567,10 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(disabled); NS_RELEASE(div); NS_RELEASE(dl); - NS_RELEASE(datetime); - NS_RELEASE(data); + NS_RELEASE(dropDownVisible); + NS_RELEASE(dropDownHidden); + NS_RELEASE(dropDownBtnOut); + NS_RELEASE(dropDownBtnPressed); NS_RELEASE(embed); NS_RELEASE(encoding); NS_RELEASE(face); diff --git a/content/html/content/src/nsHTMLAtoms.h b/content/html/content/src/nsHTMLAtoms.h index 9a2da18d0337..e518c960719d 100644 --- a/content/html/content/src/nsHTMLAtoms.h +++ b/content/html/content/src/nsHTMLAtoms.h @@ -108,6 +108,10 @@ public: static nsIAtom* disabled; static nsIAtom* div; static nsIAtom* dl; + static nsIAtom* dropDownVisible; + static nsIAtom* dropDownHidden; + static nsIAtom* dropDownBtnOut; + static nsIAtom* dropDownBtnPressed; static nsIAtom* embed; static nsIAtom* encoding; diff --git a/content/shared/public/nsHTMLAtoms.h b/content/shared/public/nsHTMLAtoms.h index 9a2da18d0337..e518c960719d 100644 --- a/content/shared/public/nsHTMLAtoms.h +++ b/content/shared/public/nsHTMLAtoms.h @@ -108,6 +108,10 @@ public: static nsIAtom* disabled; static nsIAtom* div; static nsIAtom* dl; + static nsIAtom* dropDownVisible; + static nsIAtom* dropDownHidden; + static nsIAtom* dropDownBtnOut; + static nsIAtom* dropDownBtnPressed; static nsIAtom* embed; static nsIAtom* encoding; diff --git a/content/shared/src/nsHTMLAtoms.cpp b/content/shared/src/nsHTMLAtoms.cpp index b7e8033bd811..26b844ad27d2 100644 --- a/content/shared/src/nsHTMLAtoms.cpp +++ b/content/shared/src/nsHTMLAtoms.cpp @@ -85,6 +85,10 @@ nsIAtom* nsHTMLAtoms::dir; nsIAtom* nsHTMLAtoms::disabled; nsIAtom* nsHTMLAtoms::div; nsIAtom* nsHTMLAtoms::dl; +nsIAtom* nsHTMLAtoms::dropDownVisible; +nsIAtom* nsHTMLAtoms::dropDownHidden; +nsIAtom* nsHTMLAtoms::dropDownBtnOut; +nsIAtom* nsHTMLAtoms::dropDownBtnPressed; nsIAtom* nsHTMLAtoms::embed; nsIAtom* nsHTMLAtoms::encoding; nsIAtom* nsHTMLAtoms::enctype; @@ -322,6 +326,10 @@ void nsHTMLAtoms::AddrefAtoms() div = NS_NewAtom("DIV"); disabled = NS_NewAtom("DISABLED"); dl = NS_NewAtom("DL"); + dropDownVisible = NS_NewAtom(":DROPDOWN-VISIBLE"); + dropDownHidden = NS_NewAtom(":DROPDOWN-HIDDEN"); + dropDownBtnOut = NS_NewAtom(":DROPDOWN-BTN-OUT"); + dropDownBtnPressed = NS_NewAtom(":DROPDOWN-BTN-PRESSED"); datetime = NS_NewAtom("DATETIME"); data = NS_NewAtom("DATA"); embed = NS_NewAtom("EMBED"); @@ -548,6 +556,8 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(compact); NS_RELEASE(content); NS_RELEASE(coords); + NS_RELEASE(data); + NS_RELEASE(datetime); NS_RELEASE(defaultchecked); NS_RELEASE(defaultselected); NS_RELEASE(defaultvalue); @@ -557,8 +567,10 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(disabled); NS_RELEASE(div); NS_RELEASE(dl); - NS_RELEASE(datetime); - NS_RELEASE(data); + NS_RELEASE(dropDownVisible); + NS_RELEASE(dropDownHidden); + NS_RELEASE(dropDownBtnOut); + NS_RELEASE(dropDownBtnPressed); NS_RELEASE(embed); NS_RELEASE(encoding); NS_RELEASE(face); diff --git a/layout/html/base/src/nsHTMLAtoms.cpp b/layout/html/base/src/nsHTMLAtoms.cpp index b7e8033bd811..26b844ad27d2 100644 --- a/layout/html/base/src/nsHTMLAtoms.cpp +++ b/layout/html/base/src/nsHTMLAtoms.cpp @@ -85,6 +85,10 @@ nsIAtom* nsHTMLAtoms::dir; nsIAtom* nsHTMLAtoms::disabled; nsIAtom* nsHTMLAtoms::div; nsIAtom* nsHTMLAtoms::dl; +nsIAtom* nsHTMLAtoms::dropDownVisible; +nsIAtom* nsHTMLAtoms::dropDownHidden; +nsIAtom* nsHTMLAtoms::dropDownBtnOut; +nsIAtom* nsHTMLAtoms::dropDownBtnPressed; nsIAtom* nsHTMLAtoms::embed; nsIAtom* nsHTMLAtoms::encoding; nsIAtom* nsHTMLAtoms::enctype; @@ -322,6 +326,10 @@ void nsHTMLAtoms::AddrefAtoms() div = NS_NewAtom("DIV"); disabled = NS_NewAtom("DISABLED"); dl = NS_NewAtom("DL"); + dropDownVisible = NS_NewAtom(":DROPDOWN-VISIBLE"); + dropDownHidden = NS_NewAtom(":DROPDOWN-HIDDEN"); + dropDownBtnOut = NS_NewAtom(":DROPDOWN-BTN-OUT"); + dropDownBtnPressed = NS_NewAtom(":DROPDOWN-BTN-PRESSED"); datetime = NS_NewAtom("DATETIME"); data = NS_NewAtom("DATA"); embed = NS_NewAtom("EMBED"); @@ -548,6 +556,8 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(compact); NS_RELEASE(content); NS_RELEASE(coords); + NS_RELEASE(data); + NS_RELEASE(datetime); NS_RELEASE(defaultchecked); NS_RELEASE(defaultselected); NS_RELEASE(defaultvalue); @@ -557,8 +567,10 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(disabled); NS_RELEASE(div); NS_RELEASE(dl); - NS_RELEASE(datetime); - NS_RELEASE(data); + NS_RELEASE(dropDownVisible); + NS_RELEASE(dropDownHidden); + NS_RELEASE(dropDownBtnOut); + NS_RELEASE(dropDownBtnPressed); NS_RELEASE(embed); NS_RELEASE(encoding); NS_RELEASE(face); diff --git a/layout/html/base/src/nsHTMLAtoms.h b/layout/html/base/src/nsHTMLAtoms.h index 9a2da18d0337..e518c960719d 100644 --- a/layout/html/base/src/nsHTMLAtoms.h +++ b/layout/html/base/src/nsHTMLAtoms.h @@ -108,6 +108,10 @@ public: static nsIAtom* disabled; static nsIAtom* div; static nsIAtom* dl; + static nsIAtom* dropDownVisible; + static nsIAtom* dropDownHidden; + static nsIAtom* dropDownBtnOut; + static nsIAtom* dropDownBtnPressed; static nsIAtom* embed; static nsIAtom* encoding;