From 7a44d1de70c2d14ee78b581fd48b4239f1f3d385 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Wed, 2 Sep 1998 01:08:32 +0000 Subject: [PATCH] Added new atoms --- content/html/content/src/nsHTMLAtoms.cpp | 37 ++++++++++++++++++++++++ content/html/content/src/nsHTMLAtoms.h | 11 +++++++ content/shared/public/nsHTMLAtoms.h | 11 +++++++ content/shared/src/nsHTMLAtoms.cpp | 37 ++++++++++++++++++++++++ layout/html/base/src/nsHTMLAtoms.cpp | 37 ++++++++++++++++++++++++ layout/html/base/src/nsHTMLAtoms.h | 11 +++++++ 6 files changed, 144 insertions(+) diff --git a/content/html/content/src/nsHTMLAtoms.cpp b/content/html/content/src/nsHTMLAtoms.cpp index a57e5b36b861..568dc73155b3 100644 --- a/content/html/content/src/nsHTMLAtoms.cpp +++ b/content/html/content/src/nsHTMLAtoms.cpp @@ -17,9 +17,12 @@ */ #include "nsHTMLAtoms.h" +// XXX make this be autogenerated. doh! + nsIAtom* nsHTMLAtoms::_baseHref; nsIAtom* nsHTMLAtoms::_baseTarget; nsIAtom* nsHTMLAtoms::a; +nsIAtom* nsHTMLAtoms::abbr; nsIAtom* nsHTMLAtoms::above; nsIAtom* nsHTMLAtoms::accept; nsIAtom* nsHTMLAtoms::acceptcharset; @@ -31,6 +34,7 @@ nsIAtom* nsHTMLAtoms::alink; nsIAtom* nsHTMLAtoms::alt; nsIAtom* nsHTMLAtoms::applet; nsIAtom* nsHTMLAtoms::archive; +nsIAtom* nsHTMLAtoms::axis; nsIAtom* nsHTMLAtoms::background; nsIAtom* nsHTMLAtoms::below; nsIAtom* nsHTMLAtoms::bgcolor; @@ -41,8 +45,10 @@ nsIAtom* nsHTMLAtoms::bottompadding; nsIAtom* nsHTMLAtoms::br; nsIAtom* nsHTMLAtoms::cellpadding; nsIAtom* nsHTMLAtoms::cellspacing; +nsIAtom* nsHTMLAtoms::ch; nsIAtom* nsHTMLAtoms::charset; nsIAtom* nsHTMLAtoms::checked; +nsIAtom* nsHTMLAtoms::choff; nsIAtom* nsHTMLAtoms::cite; nsIAtom* nsHTMLAtoms::kClass; nsIAtom* nsHTMLAtoms::classid; @@ -61,6 +67,7 @@ nsIAtom* nsHTMLAtoms::datetime; nsIAtom* nsHTMLAtoms::data; nsIAtom* nsHTMLAtoms::defer; nsIAtom* nsHTMLAtoms::defaultchecked; +nsIAtom* nsHTMLAtoms::defaultselected; nsIAtom* nsHTMLAtoms::defaultvalue; nsIAtom* nsHTMLAtoms::dir; nsIAtom* nsHTMLAtoms::disabled; @@ -83,6 +90,7 @@ nsIAtom* nsHTMLAtoms::h3; nsIAtom* nsHTMLAtoms::h4; nsIAtom* nsHTMLAtoms::h5; nsIAtom* nsHTMLAtoms::h6; +nsIAtom* nsHTMLAtoms::headers; nsIAtom* nsHTMLAtoms::height; nsIAtom* nsHTMLAtoms::hidden; nsIAtom* nsHTMLAtoms::hover; @@ -94,7 +102,9 @@ nsIAtom* nsHTMLAtoms::httpEquiv; nsIAtom* nsHTMLAtoms::id; nsIAtom* nsHTMLAtoms::iframe; nsIAtom* nsHTMLAtoms::img; +nsIAtom* nsHTMLAtoms::index; nsIAtom* nsHTMLAtoms::ismap; +nsIAtom* nsHTMLAtoms::label; nsIAtom* nsHTMLAtoms::lang; nsIAtom* nsHTMLAtoms::li; nsIAtom* nsHTMLAtoms::link; @@ -151,6 +161,8 @@ nsIAtom* nsHTMLAtoms::rightpadding; nsIAtom* nsHTMLAtoms::rootContentPseudo; nsIAtom* nsHTMLAtoms::rows; nsIAtom* nsHTMLAtoms::rowspan; +nsIAtom* nsHTMLAtoms::rules; +nsIAtom* nsHTMLAtoms::scope; nsIAtom* nsHTMLAtoms::scrolling; nsIAtom* nsHTMLAtoms::selected; nsIAtom* nsHTMLAtoms::shape; @@ -178,6 +190,7 @@ nsIAtom* nsHTMLAtoms::valign; nsIAtom* nsHTMLAtoms::value; nsIAtom* nsHTMLAtoms::valuetype; nsIAtom* nsHTMLAtoms::variable; +nsIAtom* nsHTMLAtoms::version; nsIAtom* nsHTMLAtoms::visibility; nsIAtom* nsHTMLAtoms::visited; nsIAtom* nsHTMLAtoms::vlink; @@ -195,6 +208,7 @@ void nsHTMLAtoms::AddrefAtoms() _baseHref = NS_NewAtom(NS_HTML_BASE_HREF); _baseTarget = NS_NewAtom(NS_HTML_BASE_TARGET); a = NS_NewAtom("A"); + abbr = NS_NewAtom("ABBR"); above = NS_NewAtom("ABOVE"); accept = NS_NewAtom("ACCEPT"); acceptcharset = NS_NewAtom("ACCEPTCHARSET"); @@ -206,6 +220,7 @@ void nsHTMLAtoms::AddrefAtoms() alt = NS_NewAtom("ALT"); applet = NS_NewAtom("APPLET"); archive = NS_NewAtom("ARCHIVE"); + axis = NS_NewAtom("AXIS"); background = NS_NewAtom("BACKGROUND"); below = NS_NewAtom("BELOW"); bgcolor = NS_NewAtom("BGCOLOR"); @@ -216,8 +231,10 @@ void nsHTMLAtoms::AddrefAtoms() br = NS_NewAtom("BR"); cellpadding = NS_NewAtom("CELLPADDING"); cellspacing = NS_NewAtom("CELLSPACING"); + ch = NS_NewAtom("CH"); charset = NS_NewAtom("CHARSET"); checked = NS_NewAtom("CHECKED"); + choff = NS_NewAtom("CHOFF"); cite = NS_NewAtom("CITE"); kClass = NS_NewAtom("CLASS"); classid = NS_NewAtom("CLASSID"); @@ -233,6 +250,7 @@ void nsHTMLAtoms::AddrefAtoms() content = NS_NewAtom("CONTENT"); coords = NS_NewAtom("COORDS"); defaultchecked = NS_NewAtom("DEFAULTCHECKED"); + defaultselected = NS_NewAtom("DEFAULTSELECTED"); defaultvalue = NS_NewAtom("DEFAULTVALUE"); defer = NS_NewAtom("DEFER"); dir = NS_NewAtom("DIR"); @@ -258,6 +276,7 @@ void nsHTMLAtoms::AddrefAtoms() h4 = NS_NewAtom("H4"); h5 = NS_NewAtom("H5"); h6 = NS_NewAtom("H6"); + headers = NS_NewAtom("HEADERS"); height = NS_NewAtom("HEIGHT"); hidden = NS_NewAtom("HIDDEN"); hover = NS_NewAtom("HOVER"); @@ -269,7 +288,9 @@ void nsHTMLAtoms::AddrefAtoms() id = NS_NewAtom("ID"); iframe = NS_NewAtom("IFRAME"); img = NS_NewAtom("IMG"); + index = NS_NewAtom("INDEX"); ismap = NS_NewAtom("ISMAP"); + label = NS_NewAtom("LABEL"); lang = NS_NewAtom("LANG"); li = NS_NewAtom("LI"); link = NS_NewAtom("LINK"); @@ -325,6 +346,8 @@ void nsHTMLAtoms::AddrefAtoms() rootContentPseudo = NS_NewAtom(":ROOT-CONTENT"); rows = NS_NewAtom("ROWS"); rowspan = NS_NewAtom("ROWSPAN"); + rules = NS_NewAtom("RULES"); + scope = NS_NewAtom("SCOPE"); scrolling = NS_NewAtom("SCROLLING"); selected = NS_NewAtom("SELECTED"); shape = NS_NewAtom("SHAPE"); @@ -352,6 +375,7 @@ void nsHTMLAtoms::AddrefAtoms() value = NS_NewAtom("VALUE"); valuetype = NS_NewAtom("VALUETYPE"); variable = NS_NewAtom("VARIABLE"); + version = NS_NewAtom("VERSION"); visibility = NS_NewAtom("VISIBILITY"); visited = NS_NewAtom("VISITED"); vlink = NS_NewAtom("VLINK"); @@ -370,6 +394,7 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(_baseHref); NS_RELEASE(_baseTarget); NS_RELEASE(a); + NS_RELEASE(abbr); NS_RELEASE(above); NS_RELEASE(action); NS_RELEASE(active); @@ -378,6 +403,7 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(alt); NS_RELEASE(applet); NS_RELEASE(archive); + NS_RELEASE(axis); NS_RELEASE(background); NS_RELEASE(below); NS_RELEASE(bgcolor); @@ -388,7 +414,10 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(br); NS_RELEASE(cellpadding); NS_RELEASE(cellspacing); + NS_RELEASE(ch); + NS_RELEASE(charset); NS_RELEASE(checked); + NS_RELEASE(choff); NS_RELEASE(cite); NS_RELEASE(kClass); NS_RELEASE(classid); @@ -404,6 +433,7 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(content); NS_RELEASE(coords); NS_RELEASE(defaultchecked); + NS_RELEASE(defaultselected); NS_RELEASE(defaultvalue); NS_RELEASE(defer); NS_RELEASE(dir); @@ -425,6 +455,7 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(h4); NS_RELEASE(h5); NS_RELEASE(h6); + NS_RELEASE(headers); NS_RELEASE(height); NS_RELEASE(hidden); NS_RELEASE(hover); @@ -433,7 +464,10 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(hspace); NS_RELEASE(httpEquiv); NS_RELEASE(id); + NS_RELEASE(iframe); + NS_RELEASE(img); NS_RELEASE(ismap); + NS_RELEASE(label); NS_RELEASE(lang); NS_RELEASE(li); NS_RELEASE(link); @@ -488,6 +522,8 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(rootContentPseudo); NS_RELEASE(rows); NS_RELEASE(rowspan); + NS_RELEASE(rules); + NS_RELEASE(scope); NS_RELEASE(scrolling); NS_RELEASE(selected); NS_RELEASE(shape); @@ -513,6 +549,7 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(value); NS_RELEASE(valuetype); NS_RELEASE(variable); + NS_RELEASE(version); NS_RELEASE(visibility); NS_RELEASE(visited); NS_RELEASE(vlink); diff --git a/content/html/content/src/nsHTMLAtoms.h b/content/html/content/src/nsHTMLAtoms.h index cb8e1a116ccc..665dd7f616ab 100644 --- a/content/html/content/src/nsHTMLAtoms.h +++ b/content/html/content/src/nsHTMLAtoms.h @@ -41,6 +41,7 @@ public: // Alphabetical list of html attribute atoms static nsIAtom* a; + static nsIAtom* abbr; static nsIAtom* above; static nsIAtom* accept; static nsIAtom* acceptcharset; @@ -52,6 +53,7 @@ public: static nsIAtom* alt; static nsIAtom* applet; static nsIAtom* archive; + static nsIAtom* axis; static nsIAtom* background; static nsIAtom* below; @@ -64,8 +66,10 @@ public: static nsIAtom* cellpadding; static nsIAtom* cellspacing; + static nsIAtom* ch; static nsIAtom* charset; static nsIAtom* checked; + static nsIAtom* choff; static nsIAtom* cite; static nsIAtom* kClass; static nsIAtom* classid; @@ -85,6 +89,7 @@ public: static nsIAtom* datetime; static nsIAtom* defer; static nsIAtom* defaultchecked; + static nsIAtom* defaultselected; static nsIAtom* defaultvalue; static nsIAtom* dir; static nsIAtom* disabled; @@ -111,6 +116,7 @@ public: static nsIAtom* h4; static nsIAtom* h5; static nsIAtom* h6; + static nsIAtom* headers; static nsIAtom* height; static nsIAtom* hidden; static nsIAtom* hover; @@ -123,8 +129,10 @@ public: static nsIAtom* id; static nsIAtom* iframe; static nsIAtom* img; + static nsIAtom* index; static nsIAtom* ismap; + static nsIAtom* label; static nsIAtom* lang; static nsIAtom* li; static nsIAtom* link; @@ -186,7 +194,9 @@ public: static nsIAtom* rootContentPseudo; static nsIAtom* rows; static nsIAtom* rowspan; + static nsIAtom* rules; + static nsIAtom* scope; static nsIAtom* scrolling; static nsIAtom* selected; static nsIAtom* shape; @@ -217,6 +227,7 @@ public: static nsIAtom* value; static nsIAtom* valuetype; static nsIAtom* variable; + static nsIAtom* version; static nsIAtom* visibility; static nsIAtom* visited; static nsIAtom* vlink; diff --git a/content/shared/public/nsHTMLAtoms.h b/content/shared/public/nsHTMLAtoms.h index cb8e1a116ccc..665dd7f616ab 100644 --- a/content/shared/public/nsHTMLAtoms.h +++ b/content/shared/public/nsHTMLAtoms.h @@ -41,6 +41,7 @@ public: // Alphabetical list of html attribute atoms static nsIAtom* a; + static nsIAtom* abbr; static nsIAtom* above; static nsIAtom* accept; static nsIAtom* acceptcharset; @@ -52,6 +53,7 @@ public: static nsIAtom* alt; static nsIAtom* applet; static nsIAtom* archive; + static nsIAtom* axis; static nsIAtom* background; static nsIAtom* below; @@ -64,8 +66,10 @@ public: static nsIAtom* cellpadding; static nsIAtom* cellspacing; + static nsIAtom* ch; static nsIAtom* charset; static nsIAtom* checked; + static nsIAtom* choff; static nsIAtom* cite; static nsIAtom* kClass; static nsIAtom* classid; @@ -85,6 +89,7 @@ public: static nsIAtom* datetime; static nsIAtom* defer; static nsIAtom* defaultchecked; + static nsIAtom* defaultselected; static nsIAtom* defaultvalue; static nsIAtom* dir; static nsIAtom* disabled; @@ -111,6 +116,7 @@ public: static nsIAtom* h4; static nsIAtom* h5; static nsIAtom* h6; + static nsIAtom* headers; static nsIAtom* height; static nsIAtom* hidden; static nsIAtom* hover; @@ -123,8 +129,10 @@ public: static nsIAtom* id; static nsIAtom* iframe; static nsIAtom* img; + static nsIAtom* index; static nsIAtom* ismap; + static nsIAtom* label; static nsIAtom* lang; static nsIAtom* li; static nsIAtom* link; @@ -186,7 +194,9 @@ public: static nsIAtom* rootContentPseudo; static nsIAtom* rows; static nsIAtom* rowspan; + static nsIAtom* rules; + static nsIAtom* scope; static nsIAtom* scrolling; static nsIAtom* selected; static nsIAtom* shape; @@ -217,6 +227,7 @@ public: static nsIAtom* value; static nsIAtom* valuetype; static nsIAtom* variable; + static nsIAtom* version; static nsIAtom* visibility; static nsIAtom* visited; static nsIAtom* vlink; diff --git a/content/shared/src/nsHTMLAtoms.cpp b/content/shared/src/nsHTMLAtoms.cpp index a57e5b36b861..568dc73155b3 100644 --- a/content/shared/src/nsHTMLAtoms.cpp +++ b/content/shared/src/nsHTMLAtoms.cpp @@ -17,9 +17,12 @@ */ #include "nsHTMLAtoms.h" +// XXX make this be autogenerated. doh! + nsIAtom* nsHTMLAtoms::_baseHref; nsIAtom* nsHTMLAtoms::_baseTarget; nsIAtom* nsHTMLAtoms::a; +nsIAtom* nsHTMLAtoms::abbr; nsIAtom* nsHTMLAtoms::above; nsIAtom* nsHTMLAtoms::accept; nsIAtom* nsHTMLAtoms::acceptcharset; @@ -31,6 +34,7 @@ nsIAtom* nsHTMLAtoms::alink; nsIAtom* nsHTMLAtoms::alt; nsIAtom* nsHTMLAtoms::applet; nsIAtom* nsHTMLAtoms::archive; +nsIAtom* nsHTMLAtoms::axis; nsIAtom* nsHTMLAtoms::background; nsIAtom* nsHTMLAtoms::below; nsIAtom* nsHTMLAtoms::bgcolor; @@ -41,8 +45,10 @@ nsIAtom* nsHTMLAtoms::bottompadding; nsIAtom* nsHTMLAtoms::br; nsIAtom* nsHTMLAtoms::cellpadding; nsIAtom* nsHTMLAtoms::cellspacing; +nsIAtom* nsHTMLAtoms::ch; nsIAtom* nsHTMLAtoms::charset; nsIAtom* nsHTMLAtoms::checked; +nsIAtom* nsHTMLAtoms::choff; nsIAtom* nsHTMLAtoms::cite; nsIAtom* nsHTMLAtoms::kClass; nsIAtom* nsHTMLAtoms::classid; @@ -61,6 +67,7 @@ nsIAtom* nsHTMLAtoms::datetime; nsIAtom* nsHTMLAtoms::data; nsIAtom* nsHTMLAtoms::defer; nsIAtom* nsHTMLAtoms::defaultchecked; +nsIAtom* nsHTMLAtoms::defaultselected; nsIAtom* nsHTMLAtoms::defaultvalue; nsIAtom* nsHTMLAtoms::dir; nsIAtom* nsHTMLAtoms::disabled; @@ -83,6 +90,7 @@ nsIAtom* nsHTMLAtoms::h3; nsIAtom* nsHTMLAtoms::h4; nsIAtom* nsHTMLAtoms::h5; nsIAtom* nsHTMLAtoms::h6; +nsIAtom* nsHTMLAtoms::headers; nsIAtom* nsHTMLAtoms::height; nsIAtom* nsHTMLAtoms::hidden; nsIAtom* nsHTMLAtoms::hover; @@ -94,7 +102,9 @@ nsIAtom* nsHTMLAtoms::httpEquiv; nsIAtom* nsHTMLAtoms::id; nsIAtom* nsHTMLAtoms::iframe; nsIAtom* nsHTMLAtoms::img; +nsIAtom* nsHTMLAtoms::index; nsIAtom* nsHTMLAtoms::ismap; +nsIAtom* nsHTMLAtoms::label; nsIAtom* nsHTMLAtoms::lang; nsIAtom* nsHTMLAtoms::li; nsIAtom* nsHTMLAtoms::link; @@ -151,6 +161,8 @@ nsIAtom* nsHTMLAtoms::rightpadding; nsIAtom* nsHTMLAtoms::rootContentPseudo; nsIAtom* nsHTMLAtoms::rows; nsIAtom* nsHTMLAtoms::rowspan; +nsIAtom* nsHTMLAtoms::rules; +nsIAtom* nsHTMLAtoms::scope; nsIAtom* nsHTMLAtoms::scrolling; nsIAtom* nsHTMLAtoms::selected; nsIAtom* nsHTMLAtoms::shape; @@ -178,6 +190,7 @@ nsIAtom* nsHTMLAtoms::valign; nsIAtom* nsHTMLAtoms::value; nsIAtom* nsHTMLAtoms::valuetype; nsIAtom* nsHTMLAtoms::variable; +nsIAtom* nsHTMLAtoms::version; nsIAtom* nsHTMLAtoms::visibility; nsIAtom* nsHTMLAtoms::visited; nsIAtom* nsHTMLAtoms::vlink; @@ -195,6 +208,7 @@ void nsHTMLAtoms::AddrefAtoms() _baseHref = NS_NewAtom(NS_HTML_BASE_HREF); _baseTarget = NS_NewAtom(NS_HTML_BASE_TARGET); a = NS_NewAtom("A"); + abbr = NS_NewAtom("ABBR"); above = NS_NewAtom("ABOVE"); accept = NS_NewAtom("ACCEPT"); acceptcharset = NS_NewAtom("ACCEPTCHARSET"); @@ -206,6 +220,7 @@ void nsHTMLAtoms::AddrefAtoms() alt = NS_NewAtom("ALT"); applet = NS_NewAtom("APPLET"); archive = NS_NewAtom("ARCHIVE"); + axis = NS_NewAtom("AXIS"); background = NS_NewAtom("BACKGROUND"); below = NS_NewAtom("BELOW"); bgcolor = NS_NewAtom("BGCOLOR"); @@ -216,8 +231,10 @@ void nsHTMLAtoms::AddrefAtoms() br = NS_NewAtom("BR"); cellpadding = NS_NewAtom("CELLPADDING"); cellspacing = NS_NewAtom("CELLSPACING"); + ch = NS_NewAtom("CH"); charset = NS_NewAtom("CHARSET"); checked = NS_NewAtom("CHECKED"); + choff = NS_NewAtom("CHOFF"); cite = NS_NewAtom("CITE"); kClass = NS_NewAtom("CLASS"); classid = NS_NewAtom("CLASSID"); @@ -233,6 +250,7 @@ void nsHTMLAtoms::AddrefAtoms() content = NS_NewAtom("CONTENT"); coords = NS_NewAtom("COORDS"); defaultchecked = NS_NewAtom("DEFAULTCHECKED"); + defaultselected = NS_NewAtom("DEFAULTSELECTED"); defaultvalue = NS_NewAtom("DEFAULTVALUE"); defer = NS_NewAtom("DEFER"); dir = NS_NewAtom("DIR"); @@ -258,6 +276,7 @@ void nsHTMLAtoms::AddrefAtoms() h4 = NS_NewAtom("H4"); h5 = NS_NewAtom("H5"); h6 = NS_NewAtom("H6"); + headers = NS_NewAtom("HEADERS"); height = NS_NewAtom("HEIGHT"); hidden = NS_NewAtom("HIDDEN"); hover = NS_NewAtom("HOVER"); @@ -269,7 +288,9 @@ void nsHTMLAtoms::AddrefAtoms() id = NS_NewAtom("ID"); iframe = NS_NewAtom("IFRAME"); img = NS_NewAtom("IMG"); + index = NS_NewAtom("INDEX"); ismap = NS_NewAtom("ISMAP"); + label = NS_NewAtom("LABEL"); lang = NS_NewAtom("LANG"); li = NS_NewAtom("LI"); link = NS_NewAtom("LINK"); @@ -325,6 +346,8 @@ void nsHTMLAtoms::AddrefAtoms() rootContentPseudo = NS_NewAtom(":ROOT-CONTENT"); rows = NS_NewAtom("ROWS"); rowspan = NS_NewAtom("ROWSPAN"); + rules = NS_NewAtom("RULES"); + scope = NS_NewAtom("SCOPE"); scrolling = NS_NewAtom("SCROLLING"); selected = NS_NewAtom("SELECTED"); shape = NS_NewAtom("SHAPE"); @@ -352,6 +375,7 @@ void nsHTMLAtoms::AddrefAtoms() value = NS_NewAtom("VALUE"); valuetype = NS_NewAtom("VALUETYPE"); variable = NS_NewAtom("VARIABLE"); + version = NS_NewAtom("VERSION"); visibility = NS_NewAtom("VISIBILITY"); visited = NS_NewAtom("VISITED"); vlink = NS_NewAtom("VLINK"); @@ -370,6 +394,7 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(_baseHref); NS_RELEASE(_baseTarget); NS_RELEASE(a); + NS_RELEASE(abbr); NS_RELEASE(above); NS_RELEASE(action); NS_RELEASE(active); @@ -378,6 +403,7 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(alt); NS_RELEASE(applet); NS_RELEASE(archive); + NS_RELEASE(axis); NS_RELEASE(background); NS_RELEASE(below); NS_RELEASE(bgcolor); @@ -388,7 +414,10 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(br); NS_RELEASE(cellpadding); NS_RELEASE(cellspacing); + NS_RELEASE(ch); + NS_RELEASE(charset); NS_RELEASE(checked); + NS_RELEASE(choff); NS_RELEASE(cite); NS_RELEASE(kClass); NS_RELEASE(classid); @@ -404,6 +433,7 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(content); NS_RELEASE(coords); NS_RELEASE(defaultchecked); + NS_RELEASE(defaultselected); NS_RELEASE(defaultvalue); NS_RELEASE(defer); NS_RELEASE(dir); @@ -425,6 +455,7 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(h4); NS_RELEASE(h5); NS_RELEASE(h6); + NS_RELEASE(headers); NS_RELEASE(height); NS_RELEASE(hidden); NS_RELEASE(hover); @@ -433,7 +464,10 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(hspace); NS_RELEASE(httpEquiv); NS_RELEASE(id); + NS_RELEASE(iframe); + NS_RELEASE(img); NS_RELEASE(ismap); + NS_RELEASE(label); NS_RELEASE(lang); NS_RELEASE(li); NS_RELEASE(link); @@ -488,6 +522,8 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(rootContentPseudo); NS_RELEASE(rows); NS_RELEASE(rowspan); + NS_RELEASE(rules); + NS_RELEASE(scope); NS_RELEASE(scrolling); NS_RELEASE(selected); NS_RELEASE(shape); @@ -513,6 +549,7 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(value); NS_RELEASE(valuetype); NS_RELEASE(variable); + NS_RELEASE(version); NS_RELEASE(visibility); NS_RELEASE(visited); NS_RELEASE(vlink); diff --git a/layout/html/base/src/nsHTMLAtoms.cpp b/layout/html/base/src/nsHTMLAtoms.cpp index a57e5b36b861..568dc73155b3 100644 --- a/layout/html/base/src/nsHTMLAtoms.cpp +++ b/layout/html/base/src/nsHTMLAtoms.cpp @@ -17,9 +17,12 @@ */ #include "nsHTMLAtoms.h" +// XXX make this be autogenerated. doh! + nsIAtom* nsHTMLAtoms::_baseHref; nsIAtom* nsHTMLAtoms::_baseTarget; nsIAtom* nsHTMLAtoms::a; +nsIAtom* nsHTMLAtoms::abbr; nsIAtom* nsHTMLAtoms::above; nsIAtom* nsHTMLAtoms::accept; nsIAtom* nsHTMLAtoms::acceptcharset; @@ -31,6 +34,7 @@ nsIAtom* nsHTMLAtoms::alink; nsIAtom* nsHTMLAtoms::alt; nsIAtom* nsHTMLAtoms::applet; nsIAtom* nsHTMLAtoms::archive; +nsIAtom* nsHTMLAtoms::axis; nsIAtom* nsHTMLAtoms::background; nsIAtom* nsHTMLAtoms::below; nsIAtom* nsHTMLAtoms::bgcolor; @@ -41,8 +45,10 @@ nsIAtom* nsHTMLAtoms::bottompadding; nsIAtom* nsHTMLAtoms::br; nsIAtom* nsHTMLAtoms::cellpadding; nsIAtom* nsHTMLAtoms::cellspacing; +nsIAtom* nsHTMLAtoms::ch; nsIAtom* nsHTMLAtoms::charset; nsIAtom* nsHTMLAtoms::checked; +nsIAtom* nsHTMLAtoms::choff; nsIAtom* nsHTMLAtoms::cite; nsIAtom* nsHTMLAtoms::kClass; nsIAtom* nsHTMLAtoms::classid; @@ -61,6 +67,7 @@ nsIAtom* nsHTMLAtoms::datetime; nsIAtom* nsHTMLAtoms::data; nsIAtom* nsHTMLAtoms::defer; nsIAtom* nsHTMLAtoms::defaultchecked; +nsIAtom* nsHTMLAtoms::defaultselected; nsIAtom* nsHTMLAtoms::defaultvalue; nsIAtom* nsHTMLAtoms::dir; nsIAtom* nsHTMLAtoms::disabled; @@ -83,6 +90,7 @@ nsIAtom* nsHTMLAtoms::h3; nsIAtom* nsHTMLAtoms::h4; nsIAtom* nsHTMLAtoms::h5; nsIAtom* nsHTMLAtoms::h6; +nsIAtom* nsHTMLAtoms::headers; nsIAtom* nsHTMLAtoms::height; nsIAtom* nsHTMLAtoms::hidden; nsIAtom* nsHTMLAtoms::hover; @@ -94,7 +102,9 @@ nsIAtom* nsHTMLAtoms::httpEquiv; nsIAtom* nsHTMLAtoms::id; nsIAtom* nsHTMLAtoms::iframe; nsIAtom* nsHTMLAtoms::img; +nsIAtom* nsHTMLAtoms::index; nsIAtom* nsHTMLAtoms::ismap; +nsIAtom* nsHTMLAtoms::label; nsIAtom* nsHTMLAtoms::lang; nsIAtom* nsHTMLAtoms::li; nsIAtom* nsHTMLAtoms::link; @@ -151,6 +161,8 @@ nsIAtom* nsHTMLAtoms::rightpadding; nsIAtom* nsHTMLAtoms::rootContentPseudo; nsIAtom* nsHTMLAtoms::rows; nsIAtom* nsHTMLAtoms::rowspan; +nsIAtom* nsHTMLAtoms::rules; +nsIAtom* nsHTMLAtoms::scope; nsIAtom* nsHTMLAtoms::scrolling; nsIAtom* nsHTMLAtoms::selected; nsIAtom* nsHTMLAtoms::shape; @@ -178,6 +190,7 @@ nsIAtom* nsHTMLAtoms::valign; nsIAtom* nsHTMLAtoms::value; nsIAtom* nsHTMLAtoms::valuetype; nsIAtom* nsHTMLAtoms::variable; +nsIAtom* nsHTMLAtoms::version; nsIAtom* nsHTMLAtoms::visibility; nsIAtom* nsHTMLAtoms::visited; nsIAtom* nsHTMLAtoms::vlink; @@ -195,6 +208,7 @@ void nsHTMLAtoms::AddrefAtoms() _baseHref = NS_NewAtom(NS_HTML_BASE_HREF); _baseTarget = NS_NewAtom(NS_HTML_BASE_TARGET); a = NS_NewAtom("A"); + abbr = NS_NewAtom("ABBR"); above = NS_NewAtom("ABOVE"); accept = NS_NewAtom("ACCEPT"); acceptcharset = NS_NewAtom("ACCEPTCHARSET"); @@ -206,6 +220,7 @@ void nsHTMLAtoms::AddrefAtoms() alt = NS_NewAtom("ALT"); applet = NS_NewAtom("APPLET"); archive = NS_NewAtom("ARCHIVE"); + axis = NS_NewAtom("AXIS"); background = NS_NewAtom("BACKGROUND"); below = NS_NewAtom("BELOW"); bgcolor = NS_NewAtom("BGCOLOR"); @@ -216,8 +231,10 @@ void nsHTMLAtoms::AddrefAtoms() br = NS_NewAtom("BR"); cellpadding = NS_NewAtom("CELLPADDING"); cellspacing = NS_NewAtom("CELLSPACING"); + ch = NS_NewAtom("CH"); charset = NS_NewAtom("CHARSET"); checked = NS_NewAtom("CHECKED"); + choff = NS_NewAtom("CHOFF"); cite = NS_NewAtom("CITE"); kClass = NS_NewAtom("CLASS"); classid = NS_NewAtom("CLASSID"); @@ -233,6 +250,7 @@ void nsHTMLAtoms::AddrefAtoms() content = NS_NewAtom("CONTENT"); coords = NS_NewAtom("COORDS"); defaultchecked = NS_NewAtom("DEFAULTCHECKED"); + defaultselected = NS_NewAtom("DEFAULTSELECTED"); defaultvalue = NS_NewAtom("DEFAULTVALUE"); defer = NS_NewAtom("DEFER"); dir = NS_NewAtom("DIR"); @@ -258,6 +276,7 @@ void nsHTMLAtoms::AddrefAtoms() h4 = NS_NewAtom("H4"); h5 = NS_NewAtom("H5"); h6 = NS_NewAtom("H6"); + headers = NS_NewAtom("HEADERS"); height = NS_NewAtom("HEIGHT"); hidden = NS_NewAtom("HIDDEN"); hover = NS_NewAtom("HOVER"); @@ -269,7 +288,9 @@ void nsHTMLAtoms::AddrefAtoms() id = NS_NewAtom("ID"); iframe = NS_NewAtom("IFRAME"); img = NS_NewAtom("IMG"); + index = NS_NewAtom("INDEX"); ismap = NS_NewAtom("ISMAP"); + label = NS_NewAtom("LABEL"); lang = NS_NewAtom("LANG"); li = NS_NewAtom("LI"); link = NS_NewAtom("LINK"); @@ -325,6 +346,8 @@ void nsHTMLAtoms::AddrefAtoms() rootContentPseudo = NS_NewAtom(":ROOT-CONTENT"); rows = NS_NewAtom("ROWS"); rowspan = NS_NewAtom("ROWSPAN"); + rules = NS_NewAtom("RULES"); + scope = NS_NewAtom("SCOPE"); scrolling = NS_NewAtom("SCROLLING"); selected = NS_NewAtom("SELECTED"); shape = NS_NewAtom("SHAPE"); @@ -352,6 +375,7 @@ void nsHTMLAtoms::AddrefAtoms() value = NS_NewAtom("VALUE"); valuetype = NS_NewAtom("VALUETYPE"); variable = NS_NewAtom("VARIABLE"); + version = NS_NewAtom("VERSION"); visibility = NS_NewAtom("VISIBILITY"); visited = NS_NewAtom("VISITED"); vlink = NS_NewAtom("VLINK"); @@ -370,6 +394,7 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(_baseHref); NS_RELEASE(_baseTarget); NS_RELEASE(a); + NS_RELEASE(abbr); NS_RELEASE(above); NS_RELEASE(action); NS_RELEASE(active); @@ -378,6 +403,7 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(alt); NS_RELEASE(applet); NS_RELEASE(archive); + NS_RELEASE(axis); NS_RELEASE(background); NS_RELEASE(below); NS_RELEASE(bgcolor); @@ -388,7 +414,10 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(br); NS_RELEASE(cellpadding); NS_RELEASE(cellspacing); + NS_RELEASE(ch); + NS_RELEASE(charset); NS_RELEASE(checked); + NS_RELEASE(choff); NS_RELEASE(cite); NS_RELEASE(kClass); NS_RELEASE(classid); @@ -404,6 +433,7 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(content); NS_RELEASE(coords); NS_RELEASE(defaultchecked); + NS_RELEASE(defaultselected); NS_RELEASE(defaultvalue); NS_RELEASE(defer); NS_RELEASE(dir); @@ -425,6 +455,7 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(h4); NS_RELEASE(h5); NS_RELEASE(h6); + NS_RELEASE(headers); NS_RELEASE(height); NS_RELEASE(hidden); NS_RELEASE(hover); @@ -433,7 +464,10 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(hspace); NS_RELEASE(httpEquiv); NS_RELEASE(id); + NS_RELEASE(iframe); + NS_RELEASE(img); NS_RELEASE(ismap); + NS_RELEASE(label); NS_RELEASE(lang); NS_RELEASE(li); NS_RELEASE(link); @@ -488,6 +522,8 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(rootContentPseudo); NS_RELEASE(rows); NS_RELEASE(rowspan); + NS_RELEASE(rules); + NS_RELEASE(scope); NS_RELEASE(scrolling); NS_RELEASE(selected); NS_RELEASE(shape); @@ -513,6 +549,7 @@ void nsHTMLAtoms::ReleaseAtoms() NS_RELEASE(value); NS_RELEASE(valuetype); NS_RELEASE(variable); + NS_RELEASE(version); NS_RELEASE(visibility); NS_RELEASE(visited); NS_RELEASE(vlink); diff --git a/layout/html/base/src/nsHTMLAtoms.h b/layout/html/base/src/nsHTMLAtoms.h index cb8e1a116ccc..665dd7f616ab 100644 --- a/layout/html/base/src/nsHTMLAtoms.h +++ b/layout/html/base/src/nsHTMLAtoms.h @@ -41,6 +41,7 @@ public: // Alphabetical list of html attribute atoms static nsIAtom* a; + static nsIAtom* abbr; static nsIAtom* above; static nsIAtom* accept; static nsIAtom* acceptcharset; @@ -52,6 +53,7 @@ public: static nsIAtom* alt; static nsIAtom* applet; static nsIAtom* archive; + static nsIAtom* axis; static nsIAtom* background; static nsIAtom* below; @@ -64,8 +66,10 @@ public: static nsIAtom* cellpadding; static nsIAtom* cellspacing; + static nsIAtom* ch; static nsIAtom* charset; static nsIAtom* checked; + static nsIAtom* choff; static nsIAtom* cite; static nsIAtom* kClass; static nsIAtom* classid; @@ -85,6 +89,7 @@ public: static nsIAtom* datetime; static nsIAtom* defer; static nsIAtom* defaultchecked; + static nsIAtom* defaultselected; static nsIAtom* defaultvalue; static nsIAtom* dir; static nsIAtom* disabled; @@ -111,6 +116,7 @@ public: static nsIAtom* h4; static nsIAtom* h5; static nsIAtom* h6; + static nsIAtom* headers; static nsIAtom* height; static nsIAtom* hidden; static nsIAtom* hover; @@ -123,8 +129,10 @@ public: static nsIAtom* id; static nsIAtom* iframe; static nsIAtom* img; + static nsIAtom* index; static nsIAtom* ismap; + static nsIAtom* label; static nsIAtom* lang; static nsIAtom* li; static nsIAtom* link; @@ -186,7 +194,9 @@ public: static nsIAtom* rootContentPseudo; static nsIAtom* rows; static nsIAtom* rowspan; + static nsIAtom* rules; + static nsIAtom* scope; static nsIAtom* scrolling; static nsIAtom* selected; static nsIAtom* shape; @@ -217,6 +227,7 @@ public: static nsIAtom* value; static nsIAtom* valuetype; static nsIAtom* variable; + static nsIAtom* version; static nsIAtom* visibility; static nsIAtom* visited; static nsIAtom* vlink;