use preprocessor to generate atom code

This commit is contained in:
peterl%netscape.com 1999-07-18 00:24:47 +00:00
parent e6667a928a
commit 9d026a4262
20 changed files with 1207 additions and 3368 deletions

View File

@ -0,0 +1,293 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
/******
This file contains the list of all HTML atoms
See nsHTMLAtoms.h for access to the atoms
It is designed to be used as inline input to nsHTMLAtoms.cpp *only*
through the magic of C preprocessing.
All entires must be enclosed in the macro HTML_ATOM which will have cruel
and unusual things done to it
The first argument to HTML_ATOM is the C++ name of the atom
The second argument it HTML_ATOM is the string value of the atom
******/
HTML_ATOM(mozAnonymousBlock, ":-moz-anonymous-block")
HTML_ATOM(mozFirstLineFixup, ":-moz-first-line-fixup")
HTML_ATOM(mozLetterFrame, ":-moz-letter-frame")
HTML_ATOM(mozLineFrame, ":-moz-line-frame")
HTML_ATOM(mozListBulletPseudo, ":-moz-list-bullet")
HTML_ATOM(_baseHref, NS_HTML_BASE_HREF)
HTML_ATOM(_baseTarget, NS_HTML_BASE_TARGET)
HTML_ATOM(a, "a")
HTML_ATOM(abbr, "abbr")
HTML_ATOM(above, "above")
HTML_ATOM(accept, "accept")
HTML_ATOM(acceptcharset, "acceptcharset")
HTML_ATOM(accesskey, "accesskey")
HTML_ATOM(action, "action")
HTML_ATOM(align, "align")
HTML_ATOM(alink, "alink")
HTML_ATOM(alt, "alt")
HTML_ATOM(applet, "applet")
HTML_ATOM(archive, "archive")
HTML_ATOM(area, "area")
HTML_ATOM(axis, "axis")
HTML_ATOM(background, "background")
HTML_ATOM(below, "below")
HTML_ATOM(bgcolor, "bgcolor")
HTML_ATOM(body, "body")
HTML_ATOM(border, "border")
HTML_ATOM(bordercolor, "bordercolor")
HTML_ATOM(bottompadding, "bottompadding")
HTML_ATOM(br, "br")
HTML_ATOM(button, "button")
HTML_ATOM(buttonContentPseudo, ":button-content")
HTML_ATOM(caption, "caption")
HTML_ATOM(cellContentPseudo, ":cell-content")
HTML_ATOM(cellpadding, "cellpadding")
HTML_ATOM(cellspacing, "cellspacing")
HTML_ATOM(ch, "ch")
HTML_ATOM(_char, "char")
HTML_ATOM(charoff, "charoff")
HTML_ATOM(charset, "charset")
HTML_ATOM(checked, "checked")
HTML_ATOM(choff, "choff")
HTML_ATOM(cite, "cite")
HTML_ATOM(kClass, "class")
HTML_ATOM(classid, "classid")
HTML_ATOM(clear, "clear")
HTML_ATOM(clip, "clip")
HTML_ATOM(code, "code")
HTML_ATOM(codebase, "codebase")
HTML_ATOM(codetype, "codetype")
HTML_ATOM(color, "color")
HTML_ATOM(col, "col")
HTML_ATOM(colgroup, "colgroup")
HTML_ATOM(cols, "cols")
HTML_ATOM(colspan, "colspan")
HTML_ATOM(combobox, "combobox")
HTML_ATOM(columnPseudo, ":body-column")
HTML_ATOM(commentPseudo, ":-moz-comment")
HTML_ATOM(compact, "compact")
HTML_ATOM(content, "content")
HTML_ATOM(coords, "coords")
HTML_ATOM(defaultchecked, "defaultchecked")
HTML_ATOM(defaultselected, "defaultselected")
HTML_ATOM(defaultvalue, "defaultvalue")
HTML_ATOM(declare, "declare")
HTML_ATOM(defer, "defer")
HTML_ATOM(dir, "dir")
HTML_ATOM(div, "div")
HTML_ATOM(disabled, "disabled")
HTML_ATOM(dl, "dl")
HTML_ATOM(dropDownListPseudo, ":-moz-dropdown-list")
HTML_ATOM(datetime, "datetime")
HTML_ATOM(data, "data")
HTML_ATOM(embed, "embed")
HTML_ATOM(encoding, "encoding")
HTML_ATOM(enctype, "enctype")
HTML_ATOM(face, "face")
HTML_ATOM(fieldset, "fieldset")
HTML_ATOM(fieldsetContentPseudo, ":fieldset-content")
HTML_ATOM(fileButtonStylePseudo, ":-moz-file-button")
HTML_ATOM(fileTextStylePseudo, ":-moz-file-text")
HTML_ATOM(firstLetterPseudo, ":first-letter")
HTML_ATOM(firstLinePseudo, ":first-line")
HTML_ATOM(font, "font")
HTML_ATOM(fontWeight, "font-weight")
HTML_ATOM(_for, "for")
HTML_ATOM(form, "form")
HTML_ATOM(frame, "frame")
HTML_ATOM(frameborder, "frameborder")
HTML_ATOM(frameset, "frameset")
HTML_ATOM(framesetBlankPseudo, ":frameset-blank")
HTML_ATOM(gutter, "gutter")
HTML_ATOM(h1, "h1")
HTML_ATOM(h2, "h2")
HTML_ATOM(h3, "h3")
HTML_ATOM(h4, "h4")
HTML_ATOM(h5, "h5")
HTML_ATOM(h6, "h6")
HTML_ATOM(headerContentBase, "content-base")
HTML_ATOM(headerContentLanguage, "content-language")
HTML_ATOM(headerContentScriptType, "content-script-type")
HTML_ATOM(headerContentStyleType, "content-style-type")
HTML_ATOM(headerContentType, "content-type")
HTML_ATOM(headerDefaultStyle, "default-style")
HTML_ATOM(headerWindowTarget, "window-target")
HTML_ATOM(headers, "headers")
HTML_ATOM(height, "height")
HTML_ATOM(hidden, "hidden")
HTML_ATOM(horizontalFramesetBorderPseudo, ":hframeset-border")
HTML_ATOM(hr, "hr")
HTML_ATOM(href, "href")
HTML_ATOM(hreflang, "hreflang")
HTML_ATOM(hspace, "hspace")
HTML_ATOM(html, "html")
HTML_ATOM(httpEquiv, "http-equiv")
HTML_ATOM(ibPseudo, ":ib-pseudo")
HTML_ATOM(id, "id")
HTML_ATOM(iframe, "iframe")
HTML_ATOM(ilayer, "ilayer")
HTML_ATOM(img, "img")
HTML_ATOM(index, "index")
HTML_ATOM(input, "input")
HTML_ATOM(ismap, "ismap")
HTML_ATOM(label, "label")
HTML_ATOM(labelContentPseudo, ":label-content")
HTML_ATOM(lang, "lang")
HTML_ATOM(layer, "layer")
HTML_ATOM(layout, "layout")
HTML_ATOM(li, "li")
HTML_ATOM(link, "link")
HTML_ATOM(left, "left")
HTML_ATOM(leftpadding, "leftpadding")
HTML_ATOM(legend, "legend")
HTML_ATOM(legendContentPseudo, ":legend-content")
HTML_ATOM(length, "length")
HTML_ATOM(longdesc, "longdesc")
HTML_ATOM(lowsrc, "lowsrc")
HTML_ATOM(marginheight, "marginheight")
HTML_ATOM(marginwidth, "marginwidth")
HTML_ATOM(maxlength, "maxlength")
HTML_ATOM(mayscript, "mayscript")
HTML_ATOM(media, "media")
HTML_ATOM(menu, "menu")
HTML_ATOM(method, "method")
HTML_ATOM(multicol, "multicol")
HTML_ATOM(multiple, "multiple")
HTML_ATOM(name, "name")
HTML_ATOM(nohref, "nohref")
HTML_ATOM(noresize, "noresize")
HTML_ATOM(noshade, "noshade")
HTML_ATOM(nowrap, "nowrap")
HTML_ATOM(object, "object")
HTML_ATOM(ol, "ol")
HTML_ATOM(onabort, "onabort")
HTML_ATOM(onblur, "onblur")
HTML_ATOM(onchange, "onchange")
HTML_ATOM(onclick, "onclick")
HTML_ATOM(ondblclick, "ondblclick")
HTML_ATOM(ondragdrop, "ondragdrop")
HTML_ATOM(onerror, "onerror")
HTML_ATOM(onfocus, "onfocus")
HTML_ATOM(onkeydown, "onkeydown")
HTML_ATOM(onkeypress, "onkeypress")
HTML_ATOM(onkeyup, "onkeyup")
HTML_ATOM(onload, "onload")
HTML_ATOM(onmousedown, "onmousedown")
HTML_ATOM(onmousemove, "onmousemove")
HTML_ATOM(onmouseover, "onmouseover")
HTML_ATOM(onmouseout, "onmouseout")
HTML_ATOM(onmouseup, "onmouseup")
HTML_ATOM(onpaint, "onpaint")
HTML_ATOM(onreset, "onreset")
HTML_ATOM(onsubmit, "onsubmit")
HTML_ATOM(onunload, "onunload")
HTML_ATOM(option, "option")
HTML_ATOM(overflow, "overflow")
HTML_ATOM(p, "p")
HTML_ATOM(pagex, "pagex")
HTML_ATOM(pagey, "pagey")
HTML_ATOM(param, "param")
HTML_ATOM(placeholderPseudo, ":placeholder-frame")
HTML_ATOM(pointSize, "point-size")
HTML_ATOM(pre, "pre")
HTML_ATOM(processingInstructionPseudo, ":-moz-pi")
HTML_ATOM(profile, "profile")
HTML_ATOM(prompt, "prompt")
HTML_ATOM(radioPseudo, ":-moz-radio")
HTML_ATOM(readonly, "readonly")
HTML_ATOM(rel, "rel")
HTML_ATOM(repeat, "repeat")
HTML_ATOM(rev, "rev")
HTML_ATOM(rightpadding, "rightpadding")
HTML_ATOM(rootPseudo, ":root")
HTML_ATOM(rows, "rows")
HTML_ATOM(rowspan, "rowspan")
HTML_ATOM(rules, "rules")
HTML_ATOM(scheme, "scheme")
HTML_ATOM(scope, "scope")
HTML_ATOM(script, "script")
HTML_ATOM(scrolledContentPseudo, ":scrolled-content")
HTML_ATOM(scrolling, "scrolling")
HTML_ATOM(select, "select")
HTML_ATOM(selected, "selected")
HTML_ATOM(selectedindex, "selectedindex")
HTML_ATOM(shape, "shape")
HTML_ATOM(size, "size")
HTML_ATOM(spacer, "spacer")
HTML_ATOM(span, "span")
HTML_ATOM(src, "src")
HTML_ATOM(standby, "standby")
HTML_ATOM(start, "start")
HTML_ATOM(style, "style")
HTML_ATOM(summary, "summary")
HTML_ATOM(suppress, "suppress")
HTML_ATOM(tabindex, "tabindex")
HTML_ATOM(table, "table")
HTML_ATOM(tablePseudo, ":table")
HTML_ATOM(tableCellPseudo, ":table-cell")
HTML_ATOM(tableColGroupPseudo, ":table-column-group")
HTML_ATOM(tableColPseudo, ":table-column")
HTML_ATOM(tableOuterPseudo, ":table-outer")
HTML_ATOM(tableRowGroupPseudo, ":table-row-group")
HTML_ATOM(tableRowPseudo, ":table-row")
HTML_ATOM(tabstop, "tabstop")
HTML_ATOM(target, "target")
HTML_ATOM(tbody, "tbody")
HTML_ATOM(td, "td")
HTML_ATOM(tfoot, "tfoot")
HTML_ATOM(thead, "thead")
HTML_ATOM(text, "text")
HTML_ATOM(textarea, "textarea")
HTML_ATOM(textPseudo, ":-moz-text")
HTML_ATOM(th, "th")
HTML_ATOM(title, "title")
HTML_ATOM(top, "top")
HTML_ATOM(toppadding, "toppadding")
HTML_ATOM(tr, "tr")
HTML_ATOM(type, "type")
HTML_ATOM(ul, "ul")
HTML_ATOM(usemap, "usemap")
HTML_ATOM(valign, "valign")
HTML_ATOM(value, "value")
HTML_ATOM(valuetype, "valuetype")
HTML_ATOM(variable, "variable")
HTML_ATOM(vcard_name, "vcard_name")
HTML_ATOM(version, "version")
HTML_ATOM(verticalFramesetBorderPseudo, ":vframeset-border")
HTML_ATOM(visibility, "visibility")
HTML_ATOM(vlink, "vlink")
HTML_ATOM(vspace, "vspace")
HTML_ATOM(wbr, "wbr")
HTML_ATOM(width, "width")
HTML_ATOM(wrap, "wrap")
HTML_ATOM(wrappedFramePseudo, ":wrapped-frame")
HTML_ATOM(zindex, "zindex")
HTML_ATOM(z_index, "z-index")

View File

@ -17,779 +17,32 @@
*/ */
#include "nsHTMLAtoms.h" #include "nsHTMLAtoms.h"
// XXX make this be autogenerated. doh! // define storage for all atoms
#define HTML_ATOM(_name, _value) nsIAtom* nsHTMLAtoms::_name;
nsIAtom* nsHTMLAtoms::mozAnonymousBlock; #include "nsHTMLAtomList.h"
nsIAtom* nsHTMLAtoms::mozFirstLineFixup; #undef HTML_ATOM
nsIAtom* nsHTMLAtoms::mozLetterFrame;
nsIAtom* nsHTMLAtoms::mozLineFrame;
nsIAtom* nsHTMLAtoms::mozListBulletPseudo;
nsIAtom* nsHTMLAtoms::_baseHref;
nsIAtom* nsHTMLAtoms::_baseTarget;
nsIAtom* nsHTMLAtoms::a;
nsIAtom* nsHTMLAtoms::abbr;
nsIAtom* nsHTMLAtoms::above;
nsIAtom* nsHTMLAtoms::accept;
nsIAtom* nsHTMLAtoms::acceptcharset;
nsIAtom* nsHTMLAtoms::accesskey;
nsIAtom* nsHTMLAtoms::action;
nsIAtom* nsHTMLAtoms::align;
nsIAtom* nsHTMLAtoms::alink;
nsIAtom* nsHTMLAtoms::alt;
nsIAtom* nsHTMLAtoms::applet;
nsIAtom* nsHTMLAtoms::archive;
nsIAtom* nsHTMLAtoms::area;
nsIAtom* nsHTMLAtoms::axis;
nsIAtom* nsHTMLAtoms::background;
nsIAtom* nsHTMLAtoms::below;
nsIAtom* nsHTMLAtoms::bgcolor;
nsIAtom* nsHTMLAtoms::body;
nsIAtom* nsHTMLAtoms::border;
nsIAtom* nsHTMLAtoms::bordercolor;
nsIAtom* nsHTMLAtoms::bottompadding;
nsIAtom* nsHTMLAtoms::br;
nsIAtom* nsHTMLAtoms::button;
nsIAtom* nsHTMLAtoms::buttonContentPseudo;
nsIAtom* nsHTMLAtoms::caption;
nsIAtom* nsHTMLAtoms::cellContentPseudo;
nsIAtom* nsHTMLAtoms::cellpadding;
nsIAtom* nsHTMLAtoms::cellspacing;
nsIAtom* nsHTMLAtoms::ch;
nsIAtom* nsHTMLAtoms::_char;
nsIAtom* nsHTMLAtoms::charoff;
nsIAtom* nsHTMLAtoms::charset;
nsIAtom* nsHTMLAtoms::checked;
nsIAtom* nsHTMLAtoms::choff;
nsIAtom* nsHTMLAtoms::cite;
nsIAtom* nsHTMLAtoms::kClass;
nsIAtom* nsHTMLAtoms::classid;
nsIAtom* nsHTMLAtoms::clear;
nsIAtom* nsHTMLAtoms::clip;
nsIAtom* nsHTMLAtoms::code;
nsIAtom* nsHTMLAtoms::codebase;
nsIAtom* nsHTMLAtoms::codetype;
nsIAtom* nsHTMLAtoms::color;
nsIAtom* nsHTMLAtoms::col;
nsIAtom* nsHTMLAtoms::colgroup;
nsIAtom* nsHTMLAtoms::cols;
nsIAtom* nsHTMLAtoms::colspan;
nsIAtom* nsHTMLAtoms::columnPseudo;
nsIAtom* nsHTMLAtoms::combobox;
nsIAtom* nsHTMLAtoms::commentPseudo;
nsIAtom* nsHTMLAtoms::compact;
nsIAtom* nsHTMLAtoms::content;
nsIAtom* nsHTMLAtoms::coords;
nsIAtom* nsHTMLAtoms::datetime;
nsIAtom* nsHTMLAtoms::data;
nsIAtom* nsHTMLAtoms::declare;
nsIAtom* nsHTMLAtoms::defer;
nsIAtom* nsHTMLAtoms::defaultchecked;
nsIAtom* nsHTMLAtoms::defaultselected;
nsIAtom* nsHTMLAtoms::defaultvalue;
nsIAtom* nsHTMLAtoms::dir;
nsIAtom* nsHTMLAtoms::disabled;
nsIAtom* nsHTMLAtoms::div;
nsIAtom* nsHTMLAtoms::dl;
nsIAtom* nsHTMLAtoms::dropDownListPseudo;
nsIAtom* nsHTMLAtoms::embed;
nsIAtom* nsHTMLAtoms::encoding;
nsIAtom* nsHTMLAtoms::enctype;
nsIAtom* nsHTMLAtoms::face;
nsIAtom* nsHTMLAtoms::fieldset;
nsIAtom* nsHTMLAtoms::fieldsetContentPseudo;
nsIAtom* nsHTMLAtoms::fileButtonStylePseudo;
nsIAtom* nsHTMLAtoms::fileTextStylePseudo;
nsIAtom* nsHTMLAtoms::firstLetterPseudo;
nsIAtom* nsHTMLAtoms::firstLinePseudo;
nsIAtom* nsHTMLAtoms::font;
nsIAtom* nsHTMLAtoms::fontWeight;
nsIAtom* nsHTMLAtoms::_for;
nsIAtom* nsHTMLAtoms::form;
nsIAtom* nsHTMLAtoms::frame;
nsIAtom* nsHTMLAtoms::frameborder;
nsIAtom* nsHTMLAtoms::frameset;
nsIAtom* nsHTMLAtoms::framesetBlankPseudo;
nsIAtom* nsHTMLAtoms::gutter;
nsIAtom* nsHTMLAtoms::h1;
nsIAtom* nsHTMLAtoms::h2;
nsIAtom* nsHTMLAtoms::h3;
nsIAtom* nsHTMLAtoms::h4;
nsIAtom* nsHTMLAtoms::h5;
nsIAtom* nsHTMLAtoms::h6;
nsIAtom* nsHTMLAtoms::headerContentBase;
nsIAtom* nsHTMLAtoms::headerContentLanguage;
nsIAtom* nsHTMLAtoms::headerContentScriptType;
nsIAtom* nsHTMLAtoms::headerContentStyleType;
nsIAtom* nsHTMLAtoms::headerContentType;
nsIAtom* nsHTMLAtoms::headerDefaultStyle;
nsIAtom* nsHTMLAtoms::headerWindowTarget;
nsIAtom* nsHTMLAtoms::headers;
nsIAtom* nsHTMLAtoms::height;
nsIAtom* nsHTMLAtoms::hidden;
nsIAtom* nsHTMLAtoms::horizontalFramesetBorderPseudo;
nsIAtom* nsHTMLAtoms::hr;
nsIAtom* nsHTMLAtoms::href;
nsIAtom* nsHTMLAtoms::hreflang;
nsIAtom* nsHTMLAtoms::hspace;
nsIAtom* nsHTMLAtoms::html;
nsIAtom* nsHTMLAtoms::httpEquiv;
nsIAtom* nsHTMLAtoms::ibPseudo;
nsIAtom* nsHTMLAtoms::id;
nsIAtom* nsHTMLAtoms::iframe;
nsIAtom* nsHTMLAtoms::ilayer;
nsIAtom* nsHTMLAtoms::img;
nsIAtom* nsHTMLAtoms::index;
nsIAtom* nsHTMLAtoms::input;
nsIAtom* nsHTMLAtoms::ismap;
nsIAtom* nsHTMLAtoms::label;
nsIAtom* nsHTMLAtoms::labelContentPseudo;
nsIAtom* nsHTMLAtoms::lang;
nsIAtom* nsHTMLAtoms::layer;
nsIAtom* nsHTMLAtoms::layout;
nsIAtom* nsHTMLAtoms::li;
nsIAtom* nsHTMLAtoms::link;
nsIAtom* nsHTMLAtoms::left;
nsIAtom* nsHTMLAtoms::leftpadding;
nsIAtom* nsHTMLAtoms::length;
nsIAtom* nsHTMLAtoms::legend;
nsIAtom* nsHTMLAtoms::legendContentPseudo;
nsIAtom* nsHTMLAtoms::longdesc;
nsIAtom* nsHTMLAtoms::lowsrc;
nsIAtom* nsHTMLAtoms::marginheight;
nsIAtom* nsHTMLAtoms::marginwidth;
nsIAtom* nsHTMLAtoms::maxlength;
nsIAtom* nsHTMLAtoms::mayscript;
nsIAtom* nsHTMLAtoms::media;
nsIAtom* nsHTMLAtoms::menu;
nsIAtom* nsHTMLAtoms::method;
nsIAtom* nsHTMLAtoms::multicol;
nsIAtom* nsHTMLAtoms::multiple;
nsIAtom* nsHTMLAtoms::name;
nsIAtom* nsHTMLAtoms::nohref;
nsIAtom* nsHTMLAtoms::noresize;
nsIAtom* nsHTMLAtoms::noshade;
nsIAtom* nsHTMLAtoms::nowrap;
nsIAtom* nsHTMLAtoms::object;
nsIAtom* nsHTMLAtoms::ol;
nsIAtom* nsHTMLAtoms::onabort;
nsIAtom* nsHTMLAtoms::onblur;
nsIAtom* nsHTMLAtoms::onchange;
nsIAtom* nsHTMLAtoms::onclick;
nsIAtom* nsHTMLAtoms::ondblclick;
nsIAtom* nsHTMLAtoms::ondragdrop;
nsIAtom* nsHTMLAtoms::onerror;
nsIAtom* nsHTMLAtoms::onfocus;
nsIAtom* nsHTMLAtoms::onkeydown;
nsIAtom* nsHTMLAtoms::onkeypress;
nsIAtom* nsHTMLAtoms::onkeyup;
nsIAtom* nsHTMLAtoms::onload;
nsIAtom* nsHTMLAtoms::onmousedown;
nsIAtom* nsHTMLAtoms::onmousemove;
nsIAtom* nsHTMLAtoms::onmouseover;
nsIAtom* nsHTMLAtoms::onmouseout;
nsIAtom* nsHTMLAtoms::onmouseup;
nsIAtom* nsHTMLAtoms::onpaint;
nsIAtom* nsHTMLAtoms::onreset;
nsIAtom* nsHTMLAtoms::onsubmit;
nsIAtom* nsHTMLAtoms::onunload;
nsIAtom* nsHTMLAtoms::option;
nsIAtom* nsHTMLAtoms::overflow;
nsIAtom* nsHTMLAtoms::p;
nsIAtom* nsHTMLAtoms::pagex;
nsIAtom* nsHTMLAtoms::pagey;
nsIAtom* nsHTMLAtoms::param;
nsIAtom* nsHTMLAtoms::placeholderPseudo;
nsIAtom* nsHTMLAtoms::pointSize;
nsIAtom* nsHTMLAtoms::pre;
nsIAtom* nsHTMLAtoms::processingInstructionPseudo;
nsIAtom* nsHTMLAtoms::profile;
nsIAtom* nsHTMLAtoms::prompt;
nsIAtom* nsHTMLAtoms::radioPseudo;
nsIAtom* nsHTMLAtoms::readonly;
nsIAtom* nsHTMLAtoms::rel;
nsIAtom* nsHTMLAtoms::repeat;
nsIAtom* nsHTMLAtoms::rev;
nsIAtom* nsHTMLAtoms::rightpadding;
nsIAtom* nsHTMLAtoms::rootPseudo;
nsIAtom* nsHTMLAtoms::rows;
nsIAtom* nsHTMLAtoms::rowspan;
nsIAtom* nsHTMLAtoms::rules;
nsIAtom* nsHTMLAtoms::scheme;
nsIAtom* nsHTMLAtoms::scope;
nsIAtom* nsHTMLAtoms::script;
nsIAtom* nsHTMLAtoms::scrolledContentPseudo;
nsIAtom* nsHTMLAtoms::scrolling;
nsIAtom* nsHTMLAtoms::select;
nsIAtom* nsHTMLAtoms::selected;
nsIAtom* nsHTMLAtoms::selectedindex;
nsIAtom* nsHTMLAtoms::shape;
nsIAtom* nsHTMLAtoms::size;
nsIAtom* nsHTMLAtoms::spacer;
nsIAtom* nsHTMLAtoms::span;
nsIAtom* nsHTMLAtoms::src;
nsIAtom* nsHTMLAtoms::standby;
nsIAtom* nsHTMLAtoms::start;
nsIAtom* nsHTMLAtoms::style;
nsIAtom* nsHTMLAtoms::summary;
nsIAtom* nsHTMLAtoms::suppress;
nsIAtom* nsHTMLAtoms::tabindex;
nsIAtom* nsHTMLAtoms::table;
nsIAtom* nsHTMLAtoms::tablePseudo;
nsIAtom* nsHTMLAtoms::tableCellPseudo;
nsIAtom* nsHTMLAtoms::tableColGroupPseudo;
nsIAtom* nsHTMLAtoms::tableColPseudo;
nsIAtom* nsHTMLAtoms::tableOuterPseudo;
nsIAtom* nsHTMLAtoms::tableRowGroupPseudo;
nsIAtom* nsHTMLAtoms::tableRowPseudo;
nsIAtom* nsHTMLAtoms::tabstop;
nsIAtom* nsHTMLAtoms::target;
nsIAtom* nsHTMLAtoms::tbody;
nsIAtom* nsHTMLAtoms::td;
nsIAtom* nsHTMLAtoms::tfoot;
nsIAtom* nsHTMLAtoms::thead;
nsIAtom* nsHTMLAtoms::text;
nsIAtom* nsHTMLAtoms::textarea;
nsIAtom* nsHTMLAtoms::textPseudo;
nsIAtom* nsHTMLAtoms::th;
nsIAtom* nsHTMLAtoms::title;
nsIAtom* nsHTMLAtoms::top;
nsIAtom* nsHTMLAtoms::toppadding;
nsIAtom* nsHTMLAtoms::tr;
nsIAtom* nsHTMLAtoms::type;
nsIAtom* nsHTMLAtoms::ul;
nsIAtom* nsHTMLAtoms::usemap;
nsIAtom* nsHTMLAtoms::valign;
nsIAtom* nsHTMLAtoms::value;
nsIAtom* nsHTMLAtoms::valuetype;
nsIAtom* nsHTMLAtoms::variable;
nsIAtom* nsHTMLAtoms::vcard_name;
nsIAtom* nsHTMLAtoms::version;
nsIAtom* nsHTMLAtoms::verticalFramesetBorderPseudo;
nsIAtom* nsHTMLAtoms::visibility;
nsIAtom* nsHTMLAtoms::vlink;
nsIAtom* nsHTMLAtoms::vspace;
nsIAtom* nsHTMLAtoms::wbr;
nsIAtom* nsHTMLAtoms::width;
nsIAtom* nsHTMLAtoms::wrap;
nsIAtom* nsHTMLAtoms::wrappedFramePseudo;
nsIAtom* nsHTMLAtoms::zindex;
nsIAtom* nsHTMLAtoms::z_index;
static nsrefcnt gRefCnt; static nsrefcnt gRefCnt;
void nsHTMLAtoms::AddrefAtoms() void nsHTMLAtoms::AddRefAtoms()
{ {
if (0 == gRefCnt) { if (0 == gRefCnt++) {
mozAnonymousBlock = NS_NewAtom(":-moz-anonymous-block"); // create atoms
mozFirstLineFixup = NS_NewAtom(":-moz-first-line-fixup"); #define HTML_ATOM(_name, _value) _name = NS_NewAtom(_value);
mozLetterFrame = NS_NewAtom(":-moz-letter-frame"); #include "nsHTMLAtomList.h"
mozLineFrame = NS_NewAtom(":-moz-line-frame"); #undef HTML_ATOM
mozListBulletPseudo = NS_NewAtom(":-moz-list-bullet");
_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");
accesskey = NS_NewAtom("accesskey");
action = NS_NewAtom("action");
align = NS_NewAtom("align");
alink = NS_NewAtom("alink");
alt = NS_NewAtom("alt");
applet = NS_NewAtom("applet");
archive = NS_NewAtom("archive");
area = NS_NewAtom("area");
axis = NS_NewAtom("axis");
background = NS_NewAtom("background");
below = NS_NewAtom("below");
bgcolor = NS_NewAtom("bgcolor");
body = NS_NewAtom("body");
border = NS_NewAtom("border");
bordercolor = NS_NewAtom("bordercolor");
bottompadding = NS_NewAtom("bottompadding");
br = NS_NewAtom("br");
button = NS_NewAtom("button");
buttonContentPseudo = NS_NewAtom(":button-content");
caption = NS_NewAtom("caption");
cellContentPseudo = NS_NewAtom(":cell-content");
cellpadding = NS_NewAtom("cellpadding");
cellspacing = NS_NewAtom("cellspacing");
ch = NS_NewAtom("ch");
_char = NS_NewAtom("char");
charoff = NS_NewAtom("charoff");
charset = NS_NewAtom("charset");
checked = NS_NewAtom("checked");
choff = NS_NewAtom("choff");
cite = NS_NewAtom("cite");
kClass = NS_NewAtom("class");
classid = NS_NewAtom("classid");
clear = NS_NewAtom("clear");
clip = NS_NewAtom("clip");
code = NS_NewAtom("code");
codebase = NS_NewAtom("codebase");
codetype = NS_NewAtom("codetype");
color = NS_NewAtom("color");
col = NS_NewAtom("col");
colgroup = NS_NewAtom("colgroup");
cols = NS_NewAtom("cols");
colspan = NS_NewAtom("colspan");
combobox = NS_NewAtom("combobox");
columnPseudo = NS_NewAtom(":body-column");
commentPseudo = NS_NewAtom(":-moz-comment");
compact = NS_NewAtom("compact");
content = NS_NewAtom("content");
coords = NS_NewAtom("coords");
defaultchecked = NS_NewAtom("defaultchecked");
defaultselected = NS_NewAtom("defaultselected");
defaultvalue = NS_NewAtom("defaultvalue");
declare = NS_NewAtom("declare");
defer = NS_NewAtom("defer");
dir = NS_NewAtom("dir");
div = NS_NewAtom("div");
disabled = NS_NewAtom("disabled");
dl = NS_NewAtom("dl");
dropDownListPseudo = NS_NewAtom(":-moz-dropdown-list");
datetime = NS_NewAtom("datetime");
data = NS_NewAtom("data");
embed = NS_NewAtom("embed");
encoding = NS_NewAtom("encoding");
enctype = NS_NewAtom("enctype");
face = NS_NewAtom("face");
fieldset = NS_NewAtom("fieldset");
fieldsetContentPseudo = NS_NewAtom(":fieldset-content");
fileButtonStylePseudo = NS_NewAtom(":-moz-file-button");
fileTextStylePseudo = NS_NewAtom(":-moz-file-text");
firstLetterPseudo = NS_NewAtom(":first-letter");
firstLinePseudo = NS_NewAtom(":first-line");
font = NS_NewAtom("font");
fontWeight = NS_NewAtom("font-weight");
_for = NS_NewAtom("for");
form = NS_NewAtom("form");
frame = NS_NewAtom("frame");
frameborder = NS_NewAtom("frameborder");
frameset = NS_NewAtom("frameset");
framesetBlankPseudo = NS_NewAtom(":frameset-blank");
gutter = NS_NewAtom("gutter");
h1 = NS_NewAtom("h1");
h2 = NS_NewAtom("h2");
h3 = NS_NewAtom("h3");
h4 = NS_NewAtom("h4");
h5 = NS_NewAtom("h5");
h6 = NS_NewAtom("h6");
headerContentBase = NS_NewAtom("content-base");
headerContentLanguage = NS_NewAtom("content-language");
headerContentScriptType = NS_NewAtom("content-script-type");
headerContentStyleType = NS_NewAtom("content-style-type");
headerContentType = NS_NewAtom("content-type");
headerDefaultStyle = NS_NewAtom("default-style");
headerWindowTarget = NS_NewAtom("window-target");
headers = NS_NewAtom("headers");
height = NS_NewAtom("height");
hidden = NS_NewAtom("hidden");
horizontalFramesetBorderPseudo = NS_NewAtom(":hframeset-border");
hr = NS_NewAtom("hr");
href = NS_NewAtom("href");
hreflang = NS_NewAtom("hreflang");
hspace = NS_NewAtom("hspace");
html = NS_NewAtom("html");
httpEquiv = NS_NewAtom("http-equiv");
ibPseudo = NS_NewAtom(":ib-pseudo");
id = NS_NewAtom("id");
iframe = NS_NewAtom("iframe");
ilayer = NS_NewAtom("ilayer");
img = NS_NewAtom("img");
index = NS_NewAtom("index");
input = NS_NewAtom("input");
ismap = NS_NewAtom("ismap");
label = NS_NewAtom("label");
labelContentPseudo = NS_NewAtom(":label-content");
lang = NS_NewAtom("lang");
layer = NS_NewAtom("layer");
layout = NS_NewAtom("layout");
li = NS_NewAtom("li");
link = NS_NewAtom("link");
left = NS_NewAtom("left");
leftpadding = NS_NewAtom("leftpadding");
legend = NS_NewAtom("legend");
legendContentPseudo = NS_NewAtom(":legend-content");
length = NS_NewAtom("length");
longdesc = NS_NewAtom("longdesc");
lowsrc = NS_NewAtom("lowsrc");
marginheight = NS_NewAtom("marginheight");
marginwidth = NS_NewAtom("marginwidth");
maxlength = NS_NewAtom("maxlength");
mayscript = NS_NewAtom("mayscript");
media = NS_NewAtom("media");
menu = NS_NewAtom("menu");
method = NS_NewAtom("method");
multicol = NS_NewAtom("multicol");
multiple = NS_NewAtom("multiple");
name = NS_NewAtom("name");
nohref = NS_NewAtom("nohref");
noresize = NS_NewAtom("noresize");
noshade = NS_NewAtom("noshade");
nowrap = NS_NewAtom("nowrap");
object = NS_NewAtom("object");
ol = NS_NewAtom("ol");
onabort = NS_NewAtom("onabort");
onblur = NS_NewAtom("onblur");
onchange = NS_NewAtom("onchange");
onclick = NS_NewAtom("onclick");
ondblclick = NS_NewAtom("ondblclick");
ondragdrop = NS_NewAtom("ondragdrop");
onerror = NS_NewAtom("onerror");
onfocus = NS_NewAtom("onfocus");
onkeydown = NS_NewAtom("onkeydown");
onkeypress = NS_NewAtom("onkeypress");
onkeyup = NS_NewAtom("onkeyup");
onload = NS_NewAtom("onload");
onmousedown = NS_NewAtom("onmousedown");
onmousemove = NS_NewAtom("onmousemove");
onmouseover = NS_NewAtom("onmouseover");
onmouseout = NS_NewAtom("onmouseout");
onmouseup = NS_NewAtom("onmouseup");
onpaint = NS_NewAtom("onpaint");
onreset = NS_NewAtom("onreset");
onsubmit = NS_NewAtom("onsubmit");
onunload = NS_NewAtom("onunload");
option = NS_NewAtom("option");
overflow = NS_NewAtom("overflow");
p = NS_NewAtom("p");
pagex = NS_NewAtom("pagex");
pagey = NS_NewAtom("pagey");
param = NS_NewAtom("param");
placeholderPseudo = NS_NewAtom(":placeholder-frame");
pointSize = NS_NewAtom("point-size");
pre = NS_NewAtom("pre");
processingInstructionPseudo = NS_NewAtom(":-moz-pi");
profile = NS_NewAtom("profile");
prompt = NS_NewAtom("prompt");
radioPseudo = NS_NewAtom(":-moz-radio");
readonly = NS_NewAtom("readonly");
rel = NS_NewAtom("rel");
repeat = NS_NewAtom("repeat");
rev = NS_NewAtom("rev");
rightpadding = NS_NewAtom("rightpadding");
rootPseudo = NS_NewAtom(":root");
rows = NS_NewAtom("rows");
rowspan = NS_NewAtom("rowspan");
rules = NS_NewAtom("rules");
scheme = NS_NewAtom("scheme");
scope = NS_NewAtom("scope");
script = NS_NewAtom("script");
scrolledContentPseudo = NS_NewAtom(":scrolled-content");
scrolling = NS_NewAtom("scrolling");
select = NS_NewAtom("select");
selected = NS_NewAtom("selected");
selectedindex = NS_NewAtom("selectedindex");
shape = NS_NewAtom("shape");
size = NS_NewAtom("size");
spacer = NS_NewAtom("spacer");
span = NS_NewAtom("span");
src = NS_NewAtom("src");
standby = NS_NewAtom("standby");
start = NS_NewAtom("start");
style = NS_NewAtom("style");
summary = NS_NewAtom("summary");
suppress = NS_NewAtom("suppress");
tabindex = NS_NewAtom("tabindex");
table = NS_NewAtom("table");
tablePseudo = NS_NewAtom(":table");
tableCellPseudo = NS_NewAtom(":table-cell");
tableColGroupPseudo = NS_NewAtom(":table-column-group");
tableColPseudo = NS_NewAtom(":table-column");
tableOuterPseudo = NS_NewAtom(":table-outer");
tableRowGroupPseudo = NS_NewAtom(":table-row-group");
tableRowPseudo = NS_NewAtom(":table-row");
tabstop = NS_NewAtom("tabstop");
target = NS_NewAtom("target");
tbody = NS_NewAtom("tbody");
td = NS_NewAtom("td");
tfoot = NS_NewAtom("tfoot");
thead = NS_NewAtom("thead");
text = NS_NewAtom("text");
textarea = NS_NewAtom("textarea");
textPseudo = NS_NewAtom(":-moz-text");
th = NS_NewAtom("th");
title = NS_NewAtom("title");
top = NS_NewAtom("top");
toppadding = NS_NewAtom("toppadding");
tr = NS_NewAtom("tr");
type = NS_NewAtom("type");
ul = NS_NewAtom("ul");
usemap = NS_NewAtom("usemap");
valign = NS_NewAtom("valign");
value = NS_NewAtom("value");
valuetype = NS_NewAtom("valuetype");
variable = NS_NewAtom("variable");
vcard_name = NS_NewAtom("vcard_name");
version = NS_NewAtom("version");
verticalFramesetBorderPseudo = NS_NewAtom(":vframeset-border");
visibility = NS_NewAtom("visibility");
vlink = NS_NewAtom("vlink");
vspace = NS_NewAtom("vspace");
wbr = NS_NewAtom("wbr");
width = NS_NewAtom("width");
wrap = NS_NewAtom("wrap");
wrappedFramePseudo = NS_NewAtom(":wrapped-frame");
zindex = NS_NewAtom("zindex");
z_index = NS_NewAtom("z-index");
} }
++gRefCnt;
} }
void nsHTMLAtoms::ReleaseAtoms() void nsHTMLAtoms::ReleaseAtoms()
{ {
NS_PRECONDITION(gRefCnt != 0, "bad release atoms"); NS_PRECONDITION(gRefCnt != 0, "bad release atoms");
if (--gRefCnt == 0) { if (--gRefCnt == 0) {
NS_RELEASE(mozAnonymousBlock); // release atoms
NS_RELEASE(mozLetterFrame); #define HTML_ATOM(_name, _value) NS_RELEASE(_name);
NS_RELEASE(mozLineFrame); #include "nsHTMLAtomList.h"
NS_RELEASE(mozListBulletPseudo); #undef HTML_ATOM
NS_RELEASE(_baseHref);
NS_RELEASE(_baseTarget);
NS_RELEASE(a);
NS_RELEASE(abbr);
NS_RELEASE(above);
NS_RELEASE(action);
NS_RELEASE(align);
NS_RELEASE(alink);
NS_RELEASE(alt);
NS_RELEASE(applet);
NS_RELEASE(archive);
NS_RELEASE(area);
NS_RELEASE(axis);
NS_RELEASE(background);
NS_RELEASE(below);
NS_RELEASE(bgcolor);
NS_RELEASE(body);
NS_RELEASE(border);
NS_RELEASE(bordercolor);
NS_RELEASE(bottompadding);
NS_RELEASE(br);
NS_RELEASE(button);
NS_RELEASE(buttonContentPseudo);
NS_RELEASE(caption);
NS_RELEASE(cellContentPseudo);
NS_RELEASE(cellpadding);
NS_RELEASE(cellspacing);
NS_RELEASE(ch);
NS_RELEASE(_char);
NS_RELEASE(charoff);
NS_RELEASE(charset);
NS_RELEASE(checked);
NS_RELEASE(choff);
NS_RELEASE(cite);
NS_RELEASE(kClass);
NS_RELEASE(classid);
NS_RELEASE(clear);
NS_RELEASE(clip);
NS_RELEASE(code);
NS_RELEASE(codebase);
NS_RELEASE(codetype);
NS_RELEASE(color);
NS_RELEASE(col);
NS_RELEASE(colgroup);
NS_RELEASE(cols);
NS_RELEASE(colspan);
NS_RELEASE(combobox);
NS_RELEASE(columnPseudo);
NS_RELEASE(commentPseudo);
NS_RELEASE(compact);
NS_RELEASE(content);
NS_RELEASE(coords);
NS_RELEASE(data);
NS_RELEASE(datetime);
NS_RELEASE(defaultchecked);
NS_RELEASE(defaultselected);
NS_RELEASE(defaultvalue);
NS_RELEASE(declare);
NS_RELEASE(defer);
NS_RELEASE(dir);
NS_RELEASE(disabled);
NS_RELEASE(div);
NS_RELEASE(dl);
NS_RELEASE(dropDownListPseudo);
NS_RELEASE(embed);
NS_RELEASE(encoding);
NS_RELEASE(face);
NS_RELEASE(fieldset);
NS_RELEASE(fieldsetContentPseudo);
NS_RELEASE(firstLetterPseudo);
NS_RELEASE(firstLinePseudo);
NS_RELEASE(font);
NS_RELEASE(fontWeight);
NS_RELEASE(_for);
NS_RELEASE(form);
NS_RELEASE(frameborder);
NS_RELEASE(frameset);
NS_RELEASE(framesetBlankPseudo);
NS_RELEASE(gutter);
NS_RELEASE(h1);
NS_RELEASE(h2);
NS_RELEASE(h3);
NS_RELEASE(h4);
NS_RELEASE(h5);
NS_RELEASE(h6);
NS_RELEASE(headerContentBase);
NS_RELEASE(headerContentLanguage);
NS_RELEASE(headerContentScriptType);
NS_RELEASE(headerContentStyleType);
NS_RELEASE(headerContentType);
NS_RELEASE(headerDefaultStyle);
NS_RELEASE(headerWindowTarget);
NS_RELEASE(headers);
NS_RELEASE(height);
NS_RELEASE(hidden);
NS_RELEASE(horizontalFramesetBorderPseudo);
NS_RELEASE(hr);
NS_RELEASE(href);
NS_RELEASE(hspace);
NS_RELEASE(html);
NS_RELEASE(httpEquiv);
NS_RELEASE(ibPseudo);
NS_RELEASE(id);
NS_RELEASE(iframe);
NS_RELEASE(ilayer);
NS_RELEASE(img);
NS_RELEASE(index);
NS_RELEASE(input);
NS_RELEASE(ismap);
NS_RELEASE(label);
NS_RELEASE(labelContentPseudo);
NS_RELEASE(lang);
NS_RELEASE(layer);
NS_RELEASE(layout);
NS_RELEASE(li);
NS_RELEASE(link);
NS_RELEASE(left);
NS_RELEASE(leftpadding);
NS_RELEASE(legend);
NS_RELEASE(legendContentPseudo);
NS_RELEASE(length);
NS_RELEASE(lowsrc);
NS_RELEASE(marginheight);
NS_RELEASE(marginwidth);
NS_RELEASE(maxlength);
NS_RELEASE(mayscript);
NS_RELEASE(media);
NS_RELEASE(menu);
NS_RELEASE(method);
NS_RELEASE(multicol);
NS_RELEASE(multiple);
NS_RELEASE(name);
NS_RELEASE(nohref);
NS_RELEASE(noresize);
NS_RELEASE(noshade);
NS_RELEASE(nowrap);
NS_RELEASE(object);
NS_RELEASE(ol);
NS_RELEASE(onabort);
NS_RELEASE(onblur);
NS_RELEASE(onchange);
NS_RELEASE(onclick);
NS_RELEASE(ondblclick);
NS_RELEASE(ondragdrop);
NS_RELEASE(onerror);
NS_RELEASE(onfocus);
NS_RELEASE(onkeydown);
NS_RELEASE(onkeypress);
NS_RELEASE(onkeyup);
NS_RELEASE(onload);
NS_RELEASE(onmousedown);
NS_RELEASE(onmousemove);
NS_RELEASE(onmouseover);
NS_RELEASE(onmouseout);
NS_RELEASE(onmouseup);
NS_RELEASE(onpaint);
NS_RELEASE(onreset);
NS_RELEASE(onsubmit);
NS_RELEASE(onunload);
NS_RELEASE(option);
NS_RELEASE(overflow);
NS_RELEASE(p);
NS_RELEASE(pagex);
NS_RELEASE(pagey);
NS_RELEASE(param);
NS_RELEASE(placeholderPseudo);
NS_RELEASE(pointSize);
NS_RELEASE(pre);
NS_RELEASE(processingInstructionPseudo);
NS_RELEASE(profile);
NS_RELEASE(prompt);
NS_RELEASE(radioPseudo);
NS_RELEASE(readonly);
NS_RELEASE(rel);
NS_RELEASE(repeat);
NS_RELEASE(rightpadding);
NS_RELEASE(rootPseudo);
NS_RELEASE(rows);
NS_RELEASE(rowspan);
NS_RELEASE(rules);
NS_RELEASE(scheme);
NS_RELEASE(scope);
NS_RELEASE(script);
NS_RELEASE(scrolling);
NS_RELEASE(select);
NS_RELEASE(selected);
NS_RELEASE(selectedindex);
NS_RELEASE(shape);
NS_RELEASE(size);
NS_RELEASE(spacer);
NS_RELEASE(span);
NS_RELEASE(src);
NS_RELEASE(standby);
NS_RELEASE(start);
NS_RELEASE(style);
NS_RELEASE(summary);
NS_RELEASE(suppress);
NS_RELEASE(table);
NS_RELEASE(tablePseudo);
NS_RELEASE(tableCellPseudo);
NS_RELEASE(tableColGroupPseudo);
NS_RELEASE(tableColPseudo);
NS_RELEASE(tableOuterPseudo);
NS_RELEASE(tableRowGroupPseudo);
NS_RELEASE(tableRowPseudo);
NS_RELEASE(tabstop);
NS_RELEASE(target);
NS_RELEASE(tbody);
NS_RELEASE(td);
NS_RELEASE(tfoot);
NS_RELEASE(thead);
NS_RELEASE(text);
NS_RELEASE(textarea);
NS_RELEASE(textPseudo);
NS_RELEASE(th);
NS_RELEASE(top);
NS_RELEASE(toppadding);
NS_RELEASE(tr);
NS_RELEASE(type);
NS_RELEASE(ul);
NS_RELEASE(usemap);
NS_RELEASE(valign);
NS_RELEASE(value);
NS_RELEASE(valuetype);
NS_RELEASE(variable);
NS_RELEASE(vcard_name);
NS_RELEASE(version);
NS_RELEASE(verticalFramesetBorderPseudo);
NS_RELEASE(visibility);
NS_RELEASE(vlink);
NS_RELEASE(vspace);
NS_RELEASE(wbr);
NS_RELEASE(width);
NS_RELEASE(wrap);
NS_RELEASE(wrappedFramePseudo);
NS_RELEASE(zindex);
NS_RELEASE(z_index);
} }
} }

View File

@ -32,288 +32,19 @@
class nsHTMLAtoms { class nsHTMLAtoms {
public: public:
static void AddrefAtoms(); static void AddRefAtoms();
static void ReleaseAtoms(); static void ReleaseAtoms();
static nsIAtom* mozAnonymousBlock; /* Declare all atoms
static nsIAtom* mozFirstLineFixup;
static nsIAtom* mozLetterFrame;
static nsIAtom* mozLineFrame;
static nsIAtom* mozListBulletPseudo;
// Special attribute atoms The atom names and values are stored in nsHTMLAtomList.h and
static nsIAtom* _baseHref; are brought to you by the magic of C preprocessing
static nsIAtom* _baseTarget;
// Alphabetical list of html attribute atoms Add new atoms to nsHTMLAtomList and all support logic will be auto-generated
static nsIAtom* a; */
static nsIAtom* abbr; #define HTML_ATOM(_name, _value) static nsIAtom* _name;
static nsIAtom* above; #include "nsHTMLAtomList.h"
static nsIAtom* accept; #undef HTML_ATOM
static nsIAtom* acceptcharset;
static nsIAtom* accesskey;
static nsIAtom* action;
static nsIAtom* align;
static nsIAtom* alink;
static nsIAtom* alt;
static nsIAtom* applet;
static nsIAtom* archive;
static nsIAtom* area;
static nsIAtom* axis;
static nsIAtom* background;
static nsIAtom* below;
static nsIAtom* bgcolor;
static nsIAtom* body;
static nsIAtom* border;
static nsIAtom* bordercolor;
static nsIAtom* bottompadding;
static nsIAtom* br;
static nsIAtom* button;
static nsIAtom* buttonContentPseudo;
static nsIAtom* caption;
static nsIAtom* cellContentPseudo;
static nsIAtom* cellpadding;
static nsIAtom* cellspacing;
static nsIAtom* ch;
static nsIAtom* _char;
static nsIAtom* charoff;
static nsIAtom* charset;
static nsIAtom* checked;
static nsIAtom* choff;
static nsIAtom* cite;
static nsIAtom* kClass;
static nsIAtom* classid;
static nsIAtom* clear;
static nsIAtom* clip;
static nsIAtom* code;
static nsIAtom* codebase;
static nsIAtom* codetype;
static nsIAtom* color;
static nsIAtom* col;
static nsIAtom* colgroup;
static nsIAtom* cols;
static nsIAtom* colspan;
static nsIAtom* columnPseudo;
static nsIAtom* combobox;
static nsIAtom* commentPseudo;
static nsIAtom* compact;
static nsIAtom* content;
static nsIAtom* coords;
static nsIAtom* data;
static nsIAtom* datetime;
static nsIAtom* declare;
static nsIAtom* defer;
static nsIAtom* defaultchecked;
static nsIAtom* defaultselected;
static nsIAtom* defaultvalue;
static nsIAtom* dir;
static nsIAtom* disabled;
static nsIAtom* div;
static nsIAtom* dl;
static nsIAtom* dropDownListPseudo;
static nsIAtom* embed;
static nsIAtom* encoding;
static nsIAtom* enctype;
static nsIAtom* face;
static nsIAtom* fieldset;
static nsIAtom* fieldsetContentPseudo;
static nsIAtom* fileTextStylePseudo;
static nsIAtom* fileButtonStylePseudo;
static nsIAtom* firstLetterPseudo;
static nsIAtom* firstLinePseudo;
static nsIAtom* font;
static nsIAtom* fontWeight;
static nsIAtom* _for;
static nsIAtom* form;
static nsIAtom* frame;
static nsIAtom* frameborder;
static nsIAtom* frameset;
static nsIAtom* framesetBlankPseudo;
static nsIAtom* gutter;
static nsIAtom* h1;
static nsIAtom* h2;
static nsIAtom* h3;
static nsIAtom* h4;
static nsIAtom* h5;
static nsIAtom* h6;
static nsIAtom* headerContentBase;
static nsIAtom* headerContentLanguage;
static nsIAtom* headerContentScriptType;
static nsIAtom* headerContentStyleType;
static nsIAtom* headerContentType;
static nsIAtom* headerDefaultStyle;
static nsIAtom* headerWindowTarget;
static nsIAtom* headers;
static nsIAtom* height;
static nsIAtom* hidden;
static nsIAtom* horizontalFramesetBorderPseudo;
static nsIAtom* hr;
static nsIAtom* href;
static nsIAtom* hreflang;
static nsIAtom* hspace;
static nsIAtom* html;
static nsIAtom* httpEquiv;
static nsIAtom* ibPseudo;
static nsIAtom* id;
static nsIAtom* iframe;
static nsIAtom* ilayer;
static nsIAtom* img;
static nsIAtom* index;
static nsIAtom* input;
static nsIAtom* ismap;
static nsIAtom* label;
static nsIAtom* labelContentPseudo;
static nsIAtom* lang;
static nsIAtom* layer;
static nsIAtom* layout;
static nsIAtom* li;
static nsIAtom* link;
static nsIAtom* left;
static nsIAtom* leftpadding;
static nsIAtom* legend;
static nsIAtom* legendContentPseudo;
static nsIAtom* length;
static nsIAtom* longdesc;
static nsIAtom* lowsrc;
static nsIAtom* marginheight;
static nsIAtom* marginwidth;
static nsIAtom* maxlength;
static nsIAtom* mayscript;
static nsIAtom* media;
static nsIAtom* menu;
static nsIAtom* method;
static nsIAtom* multicol;
static nsIAtom* multiple;
static nsIAtom* name;
static nsIAtom* nohref;
static nsIAtom* noresize;
static nsIAtom* noshade;
static nsIAtom* nowrap;
static nsIAtom* object;
static nsIAtom* ol;
static nsIAtom* onabort;
static nsIAtom* onblur;
static nsIAtom* onchange;
static nsIAtom* onclick;
static nsIAtom* ondblclick;
static nsIAtom* ondragdrop;
static nsIAtom* onerror;
static nsIAtom* onfocus;
static nsIAtom* onkeydown;
static nsIAtom* onkeypress;
static nsIAtom* onkeyup;
static nsIAtom* onload;
static nsIAtom* onmousedown;
static nsIAtom* onmousemove;
static nsIAtom* onmouseover;
static nsIAtom* onmouseout;
static nsIAtom* onmouseup;
static nsIAtom* onpaint;
static nsIAtom* onreset;
static nsIAtom* onsubmit;
static nsIAtom* onunload;
static nsIAtom* option;
static nsIAtom* overflow;
static nsIAtom* p;
static nsIAtom* pagex;
static nsIAtom* pagey;
static nsIAtom* param;
static nsIAtom* placeholderPseudo;
static nsIAtom* pointSize;
static nsIAtom* pre;
static nsIAtom* processingInstructionPseudo;
static nsIAtom* profile;
static nsIAtom* prompt;
static nsIAtom* radioPseudo;
static nsIAtom* readonly;
static nsIAtom* rel;
static nsIAtom* repeat;
static nsIAtom* rev;
static nsIAtom* rightpadding;
static nsIAtom* rootPseudo;
static nsIAtom* rows;
static nsIAtom* rowspan;
static nsIAtom* rules;
static nsIAtom* scheme;
static nsIAtom* scope;
static nsIAtom* script;
static nsIAtom* scrolledContentPseudo;
static nsIAtom* scrolling;
static nsIAtom* select;
static nsIAtom* selected;
static nsIAtom* selectedindex;
static nsIAtom* shape;
static nsIAtom* size;
static nsIAtom* spacer;
static nsIAtom* span;
static nsIAtom* src;
static nsIAtom* standby;
static nsIAtom* start;
static nsIAtom* style;
static nsIAtom* summary;
static nsIAtom* suppress;
static nsIAtom* tabindex;
static nsIAtom* table;
static nsIAtom* tablePseudo;
static nsIAtom* tableCellPseudo;
static nsIAtom* tableColGroupPseudo;
static nsIAtom* tableColPseudo;
static nsIAtom* tableOuterPseudo;
static nsIAtom* tableRowGroupPseudo;
static nsIAtom* tableRowPseudo;
static nsIAtom* tabstop;
static nsIAtom* target;
static nsIAtom* tbody;
static nsIAtom* td;
static nsIAtom* tfoot;
static nsIAtom* thead;
static nsIAtom* text;
static nsIAtom* textarea;
static nsIAtom* textPseudo;
static nsIAtom* th;
static nsIAtom* title;
static nsIAtom* top;
static nsIAtom* toppadding;
static nsIAtom* tr;
static nsIAtom* type;
static nsIAtom* ul;
static nsIAtom* usemap;
static nsIAtom* valign;
static nsIAtom* value;
static nsIAtom* valuetype;
static nsIAtom* variable;
static nsIAtom* vcard_name;
static nsIAtom* version;
static nsIAtom* verticalFramesetBorderPseudo;
static nsIAtom* visibility;
static nsIAtom* vlink;
static nsIAtom* vspace;
static nsIAtom* wbr;
static nsIAtom* width;
static nsIAtom* wrap;
static nsIAtom* wrappedFramePseudo;
static nsIAtom* zindex;
static nsIAtom* z_index;
}; };
#endif /* nsHTMLAtoms_h___ */ #endif /* nsHTMLAtoms_h___ */

View File

@ -0,0 +1,67 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
/******
This file contains the list of all CSS nsIAtomsand their values
It is designed to be used as inline input to nsCSSAtoms.cpp *only*
through the magic of C preprocessing.
All entires must be enclosed in the macro CSS_ATOM which will have cruel
and unusual things done to it
It is recommended (but not strictly necessary) to keep all entries
in alphabetical order
The first argument to CSS_ATOM is the C++ identifier of the atom
The second argument is the string value of the atom
******/
CSS_ATOM(activePseudo, ":active")
CSS_ATOM(afterPseudo, ":after")
CSS_ATOM(beforePseudo, ":before")
CSS_ATOM(checkedPseudo, ":checked")
CSS_ATOM(disabledPseudo, ":disabled")
CSS_ATOM(dragOverPseudo, ":drag-over")
CSS_ATOM(dragPseudo, ":drag")
CSS_ATOM(enabledPseudo, ":enabled")
CSS_ATOM(firstChildPseudo, ":first-child")
CSS_ATOM(focusPseudo, ":focus")
CSS_ATOM(hoverPseudo, ":hover")
CSS_ATOM(langPseudo, ":lang")
CSS_ATOM(linkPseudo, ":link")
CSS_ATOM(menuPseudo, ":menu")
CSS_ATOM(outOfDatePseudo, ":out-of-date")
CSS_ATOM(selectionPseudo, ":selection")
CSS_ATOM(universalSelector, "*")
CSS_ATOM(visitedPseudo, ":visited")

View File

@ -29,37 +29,20 @@
class nsCSSAtoms { class nsCSSAtoms {
public: public:
static void AddrefAtoms(); static void AddRefAtoms();
static void ReleaseAtoms(); static void ReleaseAtoms();
// Alphabetical list of css atoms
static nsIAtom* activePseudo;
static nsIAtom* afterPseudo;
static nsIAtom* beforePseudo;
static nsIAtom* disabledPseudo; /* Declare all atoms
static nsIAtom* dragOverPseudo;
static nsIAtom* dragPseudo;
static nsIAtom* enabledPseudo; The atom names and values are stored in nsCSSAtomList.h and
are brought to you by the magic of C preprocessing
static nsIAtom* firstChildPseudo; Add new atoms to nsCSSAtomList and all support logic will be auto-generated
static nsIAtom* focusPseudo; */
#define CSS_ATOM(_name, _value) static nsIAtom* _name;
static nsIAtom* hoverPseudo; #include "nsCSSAtomList.h"
#undef CSS_ATOM
static nsIAtom* langPseudo;
static nsIAtom* linkPseudo;
static nsIAtom* outOfDatePseudo; // Netscape extension
static nsIAtom* selectedPseudo;
static nsIAtom* selectionPseudo;
static nsIAtom* universalSelector;
static nsIAtom* visitedPseudo;
}; };
#endif /* nsCSSAtoms_h___ */ #endif /* nsCSSAtoms_h___ */

View File

@ -0,0 +1,67 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
/******
This file contains the list of all CSS nsIAtomsand their values
It is designed to be used as inline input to nsCSSAtoms.cpp *only*
through the magic of C preprocessing.
All entires must be enclosed in the macro CSS_ATOM which will have cruel
and unusual things done to it
It is recommended (but not strictly necessary) to keep all entries
in alphabetical order
The first argument to CSS_ATOM is the C++ identifier of the atom
The second argument is the string value of the atom
******/
CSS_ATOM(activePseudo, ":active")
CSS_ATOM(afterPseudo, ":after")
CSS_ATOM(beforePseudo, ":before")
CSS_ATOM(checkedPseudo, ":checked")
CSS_ATOM(disabledPseudo, ":disabled")
CSS_ATOM(dragOverPseudo, ":drag-over")
CSS_ATOM(dragPseudo, ":drag")
CSS_ATOM(enabledPseudo, ":enabled")
CSS_ATOM(firstChildPseudo, ":first-child")
CSS_ATOM(focusPseudo, ":focus")
CSS_ATOM(hoverPseudo, ":hover")
CSS_ATOM(langPseudo, ":lang")
CSS_ATOM(linkPseudo, ":link")
CSS_ATOM(menuPseudo, ":menu")
CSS_ATOM(outOfDatePseudo, ":out-of-date")
CSS_ATOM(selectionPseudo, ":selection")
CSS_ATOM(universalSelector, "*")
CSS_ATOM(visitedPseudo, ":visited")

View File

@ -29,37 +29,20 @@
class nsCSSAtoms { class nsCSSAtoms {
public: public:
static void AddrefAtoms(); static void AddRefAtoms();
static void ReleaseAtoms(); static void ReleaseAtoms();
// Alphabetical list of css atoms
static nsIAtom* activePseudo;
static nsIAtom* afterPseudo;
static nsIAtom* beforePseudo;
static nsIAtom* disabledPseudo; /* Declare all atoms
static nsIAtom* dragOverPseudo;
static nsIAtom* dragPseudo;
static nsIAtom* enabledPseudo; The atom names and values are stored in nsCSSAtomList.h and
are brought to you by the magic of C preprocessing
static nsIAtom* firstChildPseudo; Add new atoms to nsCSSAtomList and all support logic will be auto-generated
static nsIAtom* focusPseudo; */
#define CSS_ATOM(_name, _value) static nsIAtom* _name;
static nsIAtom* hoverPseudo; #include "nsCSSAtomList.h"
#undef CSS_ATOM
static nsIAtom* langPseudo;
static nsIAtom* linkPseudo;
static nsIAtom* outOfDatePseudo; // Netscape extension
static nsIAtom* selectedPseudo;
static nsIAtom* selectionPseudo;
static nsIAtom* universalSelector;
static nsIAtom* visitedPseudo;
}; };
#endif /* nsCSSAtoms_h___ */ #endif /* nsCSSAtoms_h___ */

View File

@ -0,0 +1,293 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
/******
This file contains the list of all HTML atoms
See nsHTMLAtoms.h for access to the atoms
It is designed to be used as inline input to nsHTMLAtoms.cpp *only*
through the magic of C preprocessing.
All entires must be enclosed in the macro HTML_ATOM which will have cruel
and unusual things done to it
The first argument to HTML_ATOM is the C++ name of the atom
The second argument it HTML_ATOM is the string value of the atom
******/
HTML_ATOM(mozAnonymousBlock, ":-moz-anonymous-block")
HTML_ATOM(mozFirstLineFixup, ":-moz-first-line-fixup")
HTML_ATOM(mozLetterFrame, ":-moz-letter-frame")
HTML_ATOM(mozLineFrame, ":-moz-line-frame")
HTML_ATOM(mozListBulletPseudo, ":-moz-list-bullet")
HTML_ATOM(_baseHref, NS_HTML_BASE_HREF)
HTML_ATOM(_baseTarget, NS_HTML_BASE_TARGET)
HTML_ATOM(a, "a")
HTML_ATOM(abbr, "abbr")
HTML_ATOM(above, "above")
HTML_ATOM(accept, "accept")
HTML_ATOM(acceptcharset, "acceptcharset")
HTML_ATOM(accesskey, "accesskey")
HTML_ATOM(action, "action")
HTML_ATOM(align, "align")
HTML_ATOM(alink, "alink")
HTML_ATOM(alt, "alt")
HTML_ATOM(applet, "applet")
HTML_ATOM(archive, "archive")
HTML_ATOM(area, "area")
HTML_ATOM(axis, "axis")
HTML_ATOM(background, "background")
HTML_ATOM(below, "below")
HTML_ATOM(bgcolor, "bgcolor")
HTML_ATOM(body, "body")
HTML_ATOM(border, "border")
HTML_ATOM(bordercolor, "bordercolor")
HTML_ATOM(bottompadding, "bottompadding")
HTML_ATOM(br, "br")
HTML_ATOM(button, "button")
HTML_ATOM(buttonContentPseudo, ":button-content")
HTML_ATOM(caption, "caption")
HTML_ATOM(cellContentPseudo, ":cell-content")
HTML_ATOM(cellpadding, "cellpadding")
HTML_ATOM(cellspacing, "cellspacing")
HTML_ATOM(ch, "ch")
HTML_ATOM(_char, "char")
HTML_ATOM(charoff, "charoff")
HTML_ATOM(charset, "charset")
HTML_ATOM(checked, "checked")
HTML_ATOM(choff, "choff")
HTML_ATOM(cite, "cite")
HTML_ATOM(kClass, "class")
HTML_ATOM(classid, "classid")
HTML_ATOM(clear, "clear")
HTML_ATOM(clip, "clip")
HTML_ATOM(code, "code")
HTML_ATOM(codebase, "codebase")
HTML_ATOM(codetype, "codetype")
HTML_ATOM(color, "color")
HTML_ATOM(col, "col")
HTML_ATOM(colgroup, "colgroup")
HTML_ATOM(cols, "cols")
HTML_ATOM(colspan, "colspan")
HTML_ATOM(combobox, "combobox")
HTML_ATOM(columnPseudo, ":body-column")
HTML_ATOM(commentPseudo, ":-moz-comment")
HTML_ATOM(compact, "compact")
HTML_ATOM(content, "content")
HTML_ATOM(coords, "coords")
HTML_ATOM(defaultchecked, "defaultchecked")
HTML_ATOM(defaultselected, "defaultselected")
HTML_ATOM(defaultvalue, "defaultvalue")
HTML_ATOM(declare, "declare")
HTML_ATOM(defer, "defer")
HTML_ATOM(dir, "dir")
HTML_ATOM(div, "div")
HTML_ATOM(disabled, "disabled")
HTML_ATOM(dl, "dl")
HTML_ATOM(dropDownListPseudo, ":-moz-dropdown-list")
HTML_ATOM(datetime, "datetime")
HTML_ATOM(data, "data")
HTML_ATOM(embed, "embed")
HTML_ATOM(encoding, "encoding")
HTML_ATOM(enctype, "enctype")
HTML_ATOM(face, "face")
HTML_ATOM(fieldset, "fieldset")
HTML_ATOM(fieldsetContentPseudo, ":fieldset-content")
HTML_ATOM(fileButtonStylePseudo, ":-moz-file-button")
HTML_ATOM(fileTextStylePseudo, ":-moz-file-text")
HTML_ATOM(firstLetterPseudo, ":first-letter")
HTML_ATOM(firstLinePseudo, ":first-line")
HTML_ATOM(font, "font")
HTML_ATOM(fontWeight, "font-weight")
HTML_ATOM(_for, "for")
HTML_ATOM(form, "form")
HTML_ATOM(frame, "frame")
HTML_ATOM(frameborder, "frameborder")
HTML_ATOM(frameset, "frameset")
HTML_ATOM(framesetBlankPseudo, ":frameset-blank")
HTML_ATOM(gutter, "gutter")
HTML_ATOM(h1, "h1")
HTML_ATOM(h2, "h2")
HTML_ATOM(h3, "h3")
HTML_ATOM(h4, "h4")
HTML_ATOM(h5, "h5")
HTML_ATOM(h6, "h6")
HTML_ATOM(headerContentBase, "content-base")
HTML_ATOM(headerContentLanguage, "content-language")
HTML_ATOM(headerContentScriptType, "content-script-type")
HTML_ATOM(headerContentStyleType, "content-style-type")
HTML_ATOM(headerContentType, "content-type")
HTML_ATOM(headerDefaultStyle, "default-style")
HTML_ATOM(headerWindowTarget, "window-target")
HTML_ATOM(headers, "headers")
HTML_ATOM(height, "height")
HTML_ATOM(hidden, "hidden")
HTML_ATOM(horizontalFramesetBorderPseudo, ":hframeset-border")
HTML_ATOM(hr, "hr")
HTML_ATOM(href, "href")
HTML_ATOM(hreflang, "hreflang")
HTML_ATOM(hspace, "hspace")
HTML_ATOM(html, "html")
HTML_ATOM(httpEquiv, "http-equiv")
HTML_ATOM(ibPseudo, ":ib-pseudo")
HTML_ATOM(id, "id")
HTML_ATOM(iframe, "iframe")
HTML_ATOM(ilayer, "ilayer")
HTML_ATOM(img, "img")
HTML_ATOM(index, "index")
HTML_ATOM(input, "input")
HTML_ATOM(ismap, "ismap")
HTML_ATOM(label, "label")
HTML_ATOM(labelContentPseudo, ":label-content")
HTML_ATOM(lang, "lang")
HTML_ATOM(layer, "layer")
HTML_ATOM(layout, "layout")
HTML_ATOM(li, "li")
HTML_ATOM(link, "link")
HTML_ATOM(left, "left")
HTML_ATOM(leftpadding, "leftpadding")
HTML_ATOM(legend, "legend")
HTML_ATOM(legendContentPseudo, ":legend-content")
HTML_ATOM(length, "length")
HTML_ATOM(longdesc, "longdesc")
HTML_ATOM(lowsrc, "lowsrc")
HTML_ATOM(marginheight, "marginheight")
HTML_ATOM(marginwidth, "marginwidth")
HTML_ATOM(maxlength, "maxlength")
HTML_ATOM(mayscript, "mayscript")
HTML_ATOM(media, "media")
HTML_ATOM(menu, "menu")
HTML_ATOM(method, "method")
HTML_ATOM(multicol, "multicol")
HTML_ATOM(multiple, "multiple")
HTML_ATOM(name, "name")
HTML_ATOM(nohref, "nohref")
HTML_ATOM(noresize, "noresize")
HTML_ATOM(noshade, "noshade")
HTML_ATOM(nowrap, "nowrap")
HTML_ATOM(object, "object")
HTML_ATOM(ol, "ol")
HTML_ATOM(onabort, "onabort")
HTML_ATOM(onblur, "onblur")
HTML_ATOM(onchange, "onchange")
HTML_ATOM(onclick, "onclick")
HTML_ATOM(ondblclick, "ondblclick")
HTML_ATOM(ondragdrop, "ondragdrop")
HTML_ATOM(onerror, "onerror")
HTML_ATOM(onfocus, "onfocus")
HTML_ATOM(onkeydown, "onkeydown")
HTML_ATOM(onkeypress, "onkeypress")
HTML_ATOM(onkeyup, "onkeyup")
HTML_ATOM(onload, "onload")
HTML_ATOM(onmousedown, "onmousedown")
HTML_ATOM(onmousemove, "onmousemove")
HTML_ATOM(onmouseover, "onmouseover")
HTML_ATOM(onmouseout, "onmouseout")
HTML_ATOM(onmouseup, "onmouseup")
HTML_ATOM(onpaint, "onpaint")
HTML_ATOM(onreset, "onreset")
HTML_ATOM(onsubmit, "onsubmit")
HTML_ATOM(onunload, "onunload")
HTML_ATOM(option, "option")
HTML_ATOM(overflow, "overflow")
HTML_ATOM(p, "p")
HTML_ATOM(pagex, "pagex")
HTML_ATOM(pagey, "pagey")
HTML_ATOM(param, "param")
HTML_ATOM(placeholderPseudo, ":placeholder-frame")
HTML_ATOM(pointSize, "point-size")
HTML_ATOM(pre, "pre")
HTML_ATOM(processingInstructionPseudo, ":-moz-pi")
HTML_ATOM(profile, "profile")
HTML_ATOM(prompt, "prompt")
HTML_ATOM(radioPseudo, ":-moz-radio")
HTML_ATOM(readonly, "readonly")
HTML_ATOM(rel, "rel")
HTML_ATOM(repeat, "repeat")
HTML_ATOM(rev, "rev")
HTML_ATOM(rightpadding, "rightpadding")
HTML_ATOM(rootPseudo, ":root")
HTML_ATOM(rows, "rows")
HTML_ATOM(rowspan, "rowspan")
HTML_ATOM(rules, "rules")
HTML_ATOM(scheme, "scheme")
HTML_ATOM(scope, "scope")
HTML_ATOM(script, "script")
HTML_ATOM(scrolledContentPseudo, ":scrolled-content")
HTML_ATOM(scrolling, "scrolling")
HTML_ATOM(select, "select")
HTML_ATOM(selected, "selected")
HTML_ATOM(selectedindex, "selectedindex")
HTML_ATOM(shape, "shape")
HTML_ATOM(size, "size")
HTML_ATOM(spacer, "spacer")
HTML_ATOM(span, "span")
HTML_ATOM(src, "src")
HTML_ATOM(standby, "standby")
HTML_ATOM(start, "start")
HTML_ATOM(style, "style")
HTML_ATOM(summary, "summary")
HTML_ATOM(suppress, "suppress")
HTML_ATOM(tabindex, "tabindex")
HTML_ATOM(table, "table")
HTML_ATOM(tablePseudo, ":table")
HTML_ATOM(tableCellPseudo, ":table-cell")
HTML_ATOM(tableColGroupPseudo, ":table-column-group")
HTML_ATOM(tableColPseudo, ":table-column")
HTML_ATOM(tableOuterPseudo, ":table-outer")
HTML_ATOM(tableRowGroupPseudo, ":table-row-group")
HTML_ATOM(tableRowPseudo, ":table-row")
HTML_ATOM(tabstop, "tabstop")
HTML_ATOM(target, "target")
HTML_ATOM(tbody, "tbody")
HTML_ATOM(td, "td")
HTML_ATOM(tfoot, "tfoot")
HTML_ATOM(thead, "thead")
HTML_ATOM(text, "text")
HTML_ATOM(textarea, "textarea")
HTML_ATOM(textPseudo, ":-moz-text")
HTML_ATOM(th, "th")
HTML_ATOM(title, "title")
HTML_ATOM(top, "top")
HTML_ATOM(toppadding, "toppadding")
HTML_ATOM(tr, "tr")
HTML_ATOM(type, "type")
HTML_ATOM(ul, "ul")
HTML_ATOM(usemap, "usemap")
HTML_ATOM(valign, "valign")
HTML_ATOM(value, "value")
HTML_ATOM(valuetype, "valuetype")
HTML_ATOM(variable, "variable")
HTML_ATOM(vcard_name, "vcard_name")
HTML_ATOM(version, "version")
HTML_ATOM(verticalFramesetBorderPseudo, ":vframeset-border")
HTML_ATOM(visibility, "visibility")
HTML_ATOM(vlink, "vlink")
HTML_ATOM(vspace, "vspace")
HTML_ATOM(wbr, "wbr")
HTML_ATOM(width, "width")
HTML_ATOM(wrap, "wrap")
HTML_ATOM(wrappedFramePseudo, ":wrapped-frame")
HTML_ATOM(zindex, "zindex")
HTML_ATOM(z_index, "z-index")

View File

@ -32,288 +32,19 @@
class nsHTMLAtoms { class nsHTMLAtoms {
public: public:
static void AddrefAtoms(); static void AddRefAtoms();
static void ReleaseAtoms(); static void ReleaseAtoms();
static nsIAtom* mozAnonymousBlock; /* Declare all atoms
static nsIAtom* mozFirstLineFixup;
static nsIAtom* mozLetterFrame;
static nsIAtom* mozLineFrame;
static nsIAtom* mozListBulletPseudo;
// Special attribute atoms The atom names and values are stored in nsHTMLAtomList.h and
static nsIAtom* _baseHref; are brought to you by the magic of C preprocessing
static nsIAtom* _baseTarget;
// Alphabetical list of html attribute atoms Add new atoms to nsHTMLAtomList and all support logic will be auto-generated
static nsIAtom* a; */
static nsIAtom* abbr; #define HTML_ATOM(_name, _value) static nsIAtom* _name;
static nsIAtom* above; #include "nsHTMLAtomList.h"
static nsIAtom* accept; #undef HTML_ATOM
static nsIAtom* acceptcharset;
static nsIAtom* accesskey;
static nsIAtom* action;
static nsIAtom* align;
static nsIAtom* alink;
static nsIAtom* alt;
static nsIAtom* applet;
static nsIAtom* archive;
static nsIAtom* area;
static nsIAtom* axis;
static nsIAtom* background;
static nsIAtom* below;
static nsIAtom* bgcolor;
static nsIAtom* body;
static nsIAtom* border;
static nsIAtom* bordercolor;
static nsIAtom* bottompadding;
static nsIAtom* br;
static nsIAtom* button;
static nsIAtom* buttonContentPseudo;
static nsIAtom* caption;
static nsIAtom* cellContentPseudo;
static nsIAtom* cellpadding;
static nsIAtom* cellspacing;
static nsIAtom* ch;
static nsIAtom* _char;
static nsIAtom* charoff;
static nsIAtom* charset;
static nsIAtom* checked;
static nsIAtom* choff;
static nsIAtom* cite;
static nsIAtom* kClass;
static nsIAtom* classid;
static nsIAtom* clear;
static nsIAtom* clip;
static nsIAtom* code;
static nsIAtom* codebase;
static nsIAtom* codetype;
static nsIAtom* color;
static nsIAtom* col;
static nsIAtom* colgroup;
static nsIAtom* cols;
static nsIAtom* colspan;
static nsIAtom* columnPseudo;
static nsIAtom* combobox;
static nsIAtom* commentPseudo;
static nsIAtom* compact;
static nsIAtom* content;
static nsIAtom* coords;
static nsIAtom* data;
static nsIAtom* datetime;
static nsIAtom* declare;
static nsIAtom* defer;
static nsIAtom* defaultchecked;
static nsIAtom* defaultselected;
static nsIAtom* defaultvalue;
static nsIAtom* dir;
static nsIAtom* disabled;
static nsIAtom* div;
static nsIAtom* dl;
static nsIAtom* dropDownListPseudo;
static nsIAtom* embed;
static nsIAtom* encoding;
static nsIAtom* enctype;
static nsIAtom* face;
static nsIAtom* fieldset;
static nsIAtom* fieldsetContentPseudo;
static nsIAtom* fileTextStylePseudo;
static nsIAtom* fileButtonStylePseudo;
static nsIAtom* firstLetterPseudo;
static nsIAtom* firstLinePseudo;
static nsIAtom* font;
static nsIAtom* fontWeight;
static nsIAtom* _for;
static nsIAtom* form;
static nsIAtom* frame;
static nsIAtom* frameborder;
static nsIAtom* frameset;
static nsIAtom* framesetBlankPseudo;
static nsIAtom* gutter;
static nsIAtom* h1;
static nsIAtom* h2;
static nsIAtom* h3;
static nsIAtom* h4;
static nsIAtom* h5;
static nsIAtom* h6;
static nsIAtom* headerContentBase;
static nsIAtom* headerContentLanguage;
static nsIAtom* headerContentScriptType;
static nsIAtom* headerContentStyleType;
static nsIAtom* headerContentType;
static nsIAtom* headerDefaultStyle;
static nsIAtom* headerWindowTarget;
static nsIAtom* headers;
static nsIAtom* height;
static nsIAtom* hidden;
static nsIAtom* horizontalFramesetBorderPseudo;
static nsIAtom* hr;
static nsIAtom* href;
static nsIAtom* hreflang;
static nsIAtom* hspace;
static nsIAtom* html;
static nsIAtom* httpEquiv;
static nsIAtom* ibPseudo;
static nsIAtom* id;
static nsIAtom* iframe;
static nsIAtom* ilayer;
static nsIAtom* img;
static nsIAtom* index;
static nsIAtom* input;
static nsIAtom* ismap;
static nsIAtom* label;
static nsIAtom* labelContentPseudo;
static nsIAtom* lang;
static nsIAtom* layer;
static nsIAtom* layout;
static nsIAtom* li;
static nsIAtom* link;
static nsIAtom* left;
static nsIAtom* leftpadding;
static nsIAtom* legend;
static nsIAtom* legendContentPseudo;
static nsIAtom* length;
static nsIAtom* longdesc;
static nsIAtom* lowsrc;
static nsIAtom* marginheight;
static nsIAtom* marginwidth;
static nsIAtom* maxlength;
static nsIAtom* mayscript;
static nsIAtom* media;
static nsIAtom* menu;
static nsIAtom* method;
static nsIAtom* multicol;
static nsIAtom* multiple;
static nsIAtom* name;
static nsIAtom* nohref;
static nsIAtom* noresize;
static nsIAtom* noshade;
static nsIAtom* nowrap;
static nsIAtom* object;
static nsIAtom* ol;
static nsIAtom* onabort;
static nsIAtom* onblur;
static nsIAtom* onchange;
static nsIAtom* onclick;
static nsIAtom* ondblclick;
static nsIAtom* ondragdrop;
static nsIAtom* onerror;
static nsIAtom* onfocus;
static nsIAtom* onkeydown;
static nsIAtom* onkeypress;
static nsIAtom* onkeyup;
static nsIAtom* onload;
static nsIAtom* onmousedown;
static nsIAtom* onmousemove;
static nsIAtom* onmouseover;
static nsIAtom* onmouseout;
static nsIAtom* onmouseup;
static nsIAtom* onpaint;
static nsIAtom* onreset;
static nsIAtom* onsubmit;
static nsIAtom* onunload;
static nsIAtom* option;
static nsIAtom* overflow;
static nsIAtom* p;
static nsIAtom* pagex;
static nsIAtom* pagey;
static nsIAtom* param;
static nsIAtom* placeholderPseudo;
static nsIAtom* pointSize;
static nsIAtom* pre;
static nsIAtom* processingInstructionPseudo;
static nsIAtom* profile;
static nsIAtom* prompt;
static nsIAtom* radioPseudo;
static nsIAtom* readonly;
static nsIAtom* rel;
static nsIAtom* repeat;
static nsIAtom* rev;
static nsIAtom* rightpadding;
static nsIAtom* rootPseudo;
static nsIAtom* rows;
static nsIAtom* rowspan;
static nsIAtom* rules;
static nsIAtom* scheme;
static nsIAtom* scope;
static nsIAtom* script;
static nsIAtom* scrolledContentPseudo;
static nsIAtom* scrolling;
static nsIAtom* select;
static nsIAtom* selected;
static nsIAtom* selectedindex;
static nsIAtom* shape;
static nsIAtom* size;
static nsIAtom* spacer;
static nsIAtom* span;
static nsIAtom* src;
static nsIAtom* standby;
static nsIAtom* start;
static nsIAtom* style;
static nsIAtom* summary;
static nsIAtom* suppress;
static nsIAtom* tabindex;
static nsIAtom* table;
static nsIAtom* tablePseudo;
static nsIAtom* tableCellPseudo;
static nsIAtom* tableColGroupPseudo;
static nsIAtom* tableColPseudo;
static nsIAtom* tableOuterPseudo;
static nsIAtom* tableRowGroupPseudo;
static nsIAtom* tableRowPseudo;
static nsIAtom* tabstop;
static nsIAtom* target;
static nsIAtom* tbody;
static nsIAtom* td;
static nsIAtom* tfoot;
static nsIAtom* thead;
static nsIAtom* text;
static nsIAtom* textarea;
static nsIAtom* textPseudo;
static nsIAtom* th;
static nsIAtom* title;
static nsIAtom* top;
static nsIAtom* toppadding;
static nsIAtom* tr;
static nsIAtom* type;
static nsIAtom* ul;
static nsIAtom* usemap;
static nsIAtom* valign;
static nsIAtom* value;
static nsIAtom* valuetype;
static nsIAtom* variable;
static nsIAtom* vcard_name;
static nsIAtom* version;
static nsIAtom* verticalFramesetBorderPseudo;
static nsIAtom* visibility;
static nsIAtom* vlink;
static nsIAtom* vspace;
static nsIAtom* wbr;
static nsIAtom* width;
static nsIAtom* wrap;
static nsIAtom* wrappedFramePseudo;
static nsIAtom* zindex;
static nsIAtom* z_index;
}; };
#endif /* nsHTMLAtoms_h___ */ #endif /* nsHTMLAtoms_h___ */

View File

@ -17,104 +17,32 @@
*/ */
#include "nsCSSAtoms.h" #include "nsCSSAtoms.h"
// XXX make this be autogenerated. doh! // define storage for all atoms
#define CSS_ATOM(_name, _value) nsIAtom* nsCSSAtoms::_name;
nsIAtom* nsCSSAtoms::activePseudo; #include "nsCSSAtomList.h"
nsIAtom* nsCSSAtoms::afterPseudo; #undef CSS_ATOM
nsIAtom* nsCSSAtoms::beforePseudo;
nsIAtom* nsCSSAtoms::disabledPseudo;
nsIAtom* nsCSSAtoms::dragOverPseudo;
nsIAtom* nsCSSAtoms::dragPseudo;
nsIAtom* nsCSSAtoms::enabledPseudo;
nsIAtom* nsCSSAtoms::firstChildPseudo;
nsIAtom* nsCSSAtoms::focusPseudo;
nsIAtom* nsCSSAtoms::hoverPseudo;
nsIAtom* nsCSSAtoms::langPseudo;
nsIAtom* nsCSSAtoms::linkPseudo;
nsIAtom* nsCSSAtoms::outOfDatePseudo;
nsIAtom* nsCSSAtoms::selectedPseudo;
nsIAtom* nsCSSAtoms::selectionPseudo;
nsIAtom* nsCSSAtoms::universalSelector;
nsIAtom* nsCSSAtoms::visitedPseudo;
static nsrefcnt gRefCnt; static nsrefcnt gRefCnt;
void nsCSSAtoms::AddrefAtoms() void nsCSSAtoms::AddRefAtoms()
{ {
if (0 == gRefCnt) { if (0 == gRefCnt++) {
activePseudo = NS_NewAtom(":active"); // create atoms
afterPseudo = NS_NewAtom(":after"); #define CSS_ATOM(_name, _value) _name = NS_NewAtom(_value);
#include "nsCSSAtomList.h"
beforePseudo = NS_NewAtom(":before"); #undef CSS_ATOM
disabledPseudo = NS_NewAtom(":disabled");
dragOverPseudo = NS_NewAtom(":drag-over");
dragPseudo = NS_NewAtom(":drag");
enabledPseudo = NS_NewAtom(":enabled");
firstChildPseudo = NS_NewAtom(":first-child");
focusPseudo = NS_NewAtom(":focus");
hoverPseudo = NS_NewAtom(":hover");
langPseudo = NS_NewAtom(":lang");
linkPseudo = NS_NewAtom(":link");
outOfDatePseudo = NS_NewAtom(":out-of-date");
selectedPseudo = NS_NewAtom(":selected");
selectionPseudo = NS_NewAtom(":selection");
universalSelector = NS_NewAtom("*");
visitedPseudo = NS_NewAtom(":visited");
} }
++gRefCnt;
} }
void nsCSSAtoms::ReleaseAtoms() void nsCSSAtoms::ReleaseAtoms()
{ {
NS_PRECONDITION(gRefCnt != 0, "bad release atoms"); NS_PRECONDITION(gRefCnt != 0, "bad release atoms");
if (--gRefCnt == 0) { if (--gRefCnt == 0) {
NS_RELEASE(activePseudo); // release atoms
NS_RELEASE(afterPseudo); #define CSS_ATOM(_name, _value) NS_RELEASE(_name);
#include "nsCSSAtomList.h"
NS_RELEASE(beforePseudo); #undef CSS_ATOM
NS_RELEASE(disabledPseudo);
NS_RELEASE(dragOverPseudo);
NS_RELEASE(dragPseudo);
NS_RELEASE(enabledPseudo);
NS_RELEASE(firstChildPseudo);
NS_RELEASE(focusPseudo);
NS_RELEASE(hoverPseudo);
NS_RELEASE(langPseudo);
NS_RELEASE(linkPseudo);
NS_RELEASE(outOfDatePseudo);
NS_RELEASE(universalSelector);
NS_RELEASE(selectedPseudo);
NS_RELEASE(selectionPseudo);
NS_RELEASE(visitedPseudo);
} }
} }

View File

@ -17,779 +17,32 @@
*/ */
#include "nsHTMLAtoms.h" #include "nsHTMLAtoms.h"
// XXX make this be autogenerated. doh! // define storage for all atoms
#define HTML_ATOM(_name, _value) nsIAtom* nsHTMLAtoms::_name;
nsIAtom* nsHTMLAtoms::mozAnonymousBlock; #include "nsHTMLAtomList.h"
nsIAtom* nsHTMLAtoms::mozFirstLineFixup; #undef HTML_ATOM
nsIAtom* nsHTMLAtoms::mozLetterFrame;
nsIAtom* nsHTMLAtoms::mozLineFrame;
nsIAtom* nsHTMLAtoms::mozListBulletPseudo;
nsIAtom* nsHTMLAtoms::_baseHref;
nsIAtom* nsHTMLAtoms::_baseTarget;
nsIAtom* nsHTMLAtoms::a;
nsIAtom* nsHTMLAtoms::abbr;
nsIAtom* nsHTMLAtoms::above;
nsIAtom* nsHTMLAtoms::accept;
nsIAtom* nsHTMLAtoms::acceptcharset;
nsIAtom* nsHTMLAtoms::accesskey;
nsIAtom* nsHTMLAtoms::action;
nsIAtom* nsHTMLAtoms::align;
nsIAtom* nsHTMLAtoms::alink;
nsIAtom* nsHTMLAtoms::alt;
nsIAtom* nsHTMLAtoms::applet;
nsIAtom* nsHTMLAtoms::archive;
nsIAtom* nsHTMLAtoms::area;
nsIAtom* nsHTMLAtoms::axis;
nsIAtom* nsHTMLAtoms::background;
nsIAtom* nsHTMLAtoms::below;
nsIAtom* nsHTMLAtoms::bgcolor;
nsIAtom* nsHTMLAtoms::body;
nsIAtom* nsHTMLAtoms::border;
nsIAtom* nsHTMLAtoms::bordercolor;
nsIAtom* nsHTMLAtoms::bottompadding;
nsIAtom* nsHTMLAtoms::br;
nsIAtom* nsHTMLAtoms::button;
nsIAtom* nsHTMLAtoms::buttonContentPseudo;
nsIAtom* nsHTMLAtoms::caption;
nsIAtom* nsHTMLAtoms::cellContentPseudo;
nsIAtom* nsHTMLAtoms::cellpadding;
nsIAtom* nsHTMLAtoms::cellspacing;
nsIAtom* nsHTMLAtoms::ch;
nsIAtom* nsHTMLAtoms::_char;
nsIAtom* nsHTMLAtoms::charoff;
nsIAtom* nsHTMLAtoms::charset;
nsIAtom* nsHTMLAtoms::checked;
nsIAtom* nsHTMLAtoms::choff;
nsIAtom* nsHTMLAtoms::cite;
nsIAtom* nsHTMLAtoms::kClass;
nsIAtom* nsHTMLAtoms::classid;
nsIAtom* nsHTMLAtoms::clear;
nsIAtom* nsHTMLAtoms::clip;
nsIAtom* nsHTMLAtoms::code;
nsIAtom* nsHTMLAtoms::codebase;
nsIAtom* nsHTMLAtoms::codetype;
nsIAtom* nsHTMLAtoms::color;
nsIAtom* nsHTMLAtoms::col;
nsIAtom* nsHTMLAtoms::colgroup;
nsIAtom* nsHTMLAtoms::cols;
nsIAtom* nsHTMLAtoms::colspan;
nsIAtom* nsHTMLAtoms::columnPseudo;
nsIAtom* nsHTMLAtoms::combobox;
nsIAtom* nsHTMLAtoms::commentPseudo;
nsIAtom* nsHTMLAtoms::compact;
nsIAtom* nsHTMLAtoms::content;
nsIAtom* nsHTMLAtoms::coords;
nsIAtom* nsHTMLAtoms::datetime;
nsIAtom* nsHTMLAtoms::data;
nsIAtom* nsHTMLAtoms::declare;
nsIAtom* nsHTMLAtoms::defer;
nsIAtom* nsHTMLAtoms::defaultchecked;
nsIAtom* nsHTMLAtoms::defaultselected;
nsIAtom* nsHTMLAtoms::defaultvalue;
nsIAtom* nsHTMLAtoms::dir;
nsIAtom* nsHTMLAtoms::disabled;
nsIAtom* nsHTMLAtoms::div;
nsIAtom* nsHTMLAtoms::dl;
nsIAtom* nsHTMLAtoms::dropDownListPseudo;
nsIAtom* nsHTMLAtoms::embed;
nsIAtom* nsHTMLAtoms::encoding;
nsIAtom* nsHTMLAtoms::enctype;
nsIAtom* nsHTMLAtoms::face;
nsIAtom* nsHTMLAtoms::fieldset;
nsIAtom* nsHTMLAtoms::fieldsetContentPseudo;
nsIAtom* nsHTMLAtoms::fileButtonStylePseudo;
nsIAtom* nsHTMLAtoms::fileTextStylePseudo;
nsIAtom* nsHTMLAtoms::firstLetterPseudo;
nsIAtom* nsHTMLAtoms::firstLinePseudo;
nsIAtom* nsHTMLAtoms::font;
nsIAtom* nsHTMLAtoms::fontWeight;
nsIAtom* nsHTMLAtoms::_for;
nsIAtom* nsHTMLAtoms::form;
nsIAtom* nsHTMLAtoms::frame;
nsIAtom* nsHTMLAtoms::frameborder;
nsIAtom* nsHTMLAtoms::frameset;
nsIAtom* nsHTMLAtoms::framesetBlankPseudo;
nsIAtom* nsHTMLAtoms::gutter;
nsIAtom* nsHTMLAtoms::h1;
nsIAtom* nsHTMLAtoms::h2;
nsIAtom* nsHTMLAtoms::h3;
nsIAtom* nsHTMLAtoms::h4;
nsIAtom* nsHTMLAtoms::h5;
nsIAtom* nsHTMLAtoms::h6;
nsIAtom* nsHTMLAtoms::headerContentBase;
nsIAtom* nsHTMLAtoms::headerContentLanguage;
nsIAtom* nsHTMLAtoms::headerContentScriptType;
nsIAtom* nsHTMLAtoms::headerContentStyleType;
nsIAtom* nsHTMLAtoms::headerContentType;
nsIAtom* nsHTMLAtoms::headerDefaultStyle;
nsIAtom* nsHTMLAtoms::headerWindowTarget;
nsIAtom* nsHTMLAtoms::headers;
nsIAtom* nsHTMLAtoms::height;
nsIAtom* nsHTMLAtoms::hidden;
nsIAtom* nsHTMLAtoms::horizontalFramesetBorderPseudo;
nsIAtom* nsHTMLAtoms::hr;
nsIAtom* nsHTMLAtoms::href;
nsIAtom* nsHTMLAtoms::hreflang;
nsIAtom* nsHTMLAtoms::hspace;
nsIAtom* nsHTMLAtoms::html;
nsIAtom* nsHTMLAtoms::httpEquiv;
nsIAtom* nsHTMLAtoms::ibPseudo;
nsIAtom* nsHTMLAtoms::id;
nsIAtom* nsHTMLAtoms::iframe;
nsIAtom* nsHTMLAtoms::ilayer;
nsIAtom* nsHTMLAtoms::img;
nsIAtom* nsHTMLAtoms::index;
nsIAtom* nsHTMLAtoms::input;
nsIAtom* nsHTMLAtoms::ismap;
nsIAtom* nsHTMLAtoms::label;
nsIAtom* nsHTMLAtoms::labelContentPseudo;
nsIAtom* nsHTMLAtoms::lang;
nsIAtom* nsHTMLAtoms::layer;
nsIAtom* nsHTMLAtoms::layout;
nsIAtom* nsHTMLAtoms::li;
nsIAtom* nsHTMLAtoms::link;
nsIAtom* nsHTMLAtoms::left;
nsIAtom* nsHTMLAtoms::leftpadding;
nsIAtom* nsHTMLAtoms::length;
nsIAtom* nsHTMLAtoms::legend;
nsIAtom* nsHTMLAtoms::legendContentPseudo;
nsIAtom* nsHTMLAtoms::longdesc;
nsIAtom* nsHTMLAtoms::lowsrc;
nsIAtom* nsHTMLAtoms::marginheight;
nsIAtom* nsHTMLAtoms::marginwidth;
nsIAtom* nsHTMLAtoms::maxlength;
nsIAtom* nsHTMLAtoms::mayscript;
nsIAtom* nsHTMLAtoms::media;
nsIAtom* nsHTMLAtoms::menu;
nsIAtom* nsHTMLAtoms::method;
nsIAtom* nsHTMLAtoms::multicol;
nsIAtom* nsHTMLAtoms::multiple;
nsIAtom* nsHTMLAtoms::name;
nsIAtom* nsHTMLAtoms::nohref;
nsIAtom* nsHTMLAtoms::noresize;
nsIAtom* nsHTMLAtoms::noshade;
nsIAtom* nsHTMLAtoms::nowrap;
nsIAtom* nsHTMLAtoms::object;
nsIAtom* nsHTMLAtoms::ol;
nsIAtom* nsHTMLAtoms::onabort;
nsIAtom* nsHTMLAtoms::onblur;
nsIAtom* nsHTMLAtoms::onchange;
nsIAtom* nsHTMLAtoms::onclick;
nsIAtom* nsHTMLAtoms::ondblclick;
nsIAtom* nsHTMLAtoms::ondragdrop;
nsIAtom* nsHTMLAtoms::onerror;
nsIAtom* nsHTMLAtoms::onfocus;
nsIAtom* nsHTMLAtoms::onkeydown;
nsIAtom* nsHTMLAtoms::onkeypress;
nsIAtom* nsHTMLAtoms::onkeyup;
nsIAtom* nsHTMLAtoms::onload;
nsIAtom* nsHTMLAtoms::onmousedown;
nsIAtom* nsHTMLAtoms::onmousemove;
nsIAtom* nsHTMLAtoms::onmouseover;
nsIAtom* nsHTMLAtoms::onmouseout;
nsIAtom* nsHTMLAtoms::onmouseup;
nsIAtom* nsHTMLAtoms::onpaint;
nsIAtom* nsHTMLAtoms::onreset;
nsIAtom* nsHTMLAtoms::onsubmit;
nsIAtom* nsHTMLAtoms::onunload;
nsIAtom* nsHTMLAtoms::option;
nsIAtom* nsHTMLAtoms::overflow;
nsIAtom* nsHTMLAtoms::p;
nsIAtom* nsHTMLAtoms::pagex;
nsIAtom* nsHTMLAtoms::pagey;
nsIAtom* nsHTMLAtoms::param;
nsIAtom* nsHTMLAtoms::placeholderPseudo;
nsIAtom* nsHTMLAtoms::pointSize;
nsIAtom* nsHTMLAtoms::pre;
nsIAtom* nsHTMLAtoms::processingInstructionPseudo;
nsIAtom* nsHTMLAtoms::profile;
nsIAtom* nsHTMLAtoms::prompt;
nsIAtom* nsHTMLAtoms::radioPseudo;
nsIAtom* nsHTMLAtoms::readonly;
nsIAtom* nsHTMLAtoms::rel;
nsIAtom* nsHTMLAtoms::repeat;
nsIAtom* nsHTMLAtoms::rev;
nsIAtom* nsHTMLAtoms::rightpadding;
nsIAtom* nsHTMLAtoms::rootPseudo;
nsIAtom* nsHTMLAtoms::rows;
nsIAtom* nsHTMLAtoms::rowspan;
nsIAtom* nsHTMLAtoms::rules;
nsIAtom* nsHTMLAtoms::scheme;
nsIAtom* nsHTMLAtoms::scope;
nsIAtom* nsHTMLAtoms::script;
nsIAtom* nsHTMLAtoms::scrolledContentPseudo;
nsIAtom* nsHTMLAtoms::scrolling;
nsIAtom* nsHTMLAtoms::select;
nsIAtom* nsHTMLAtoms::selected;
nsIAtom* nsHTMLAtoms::selectedindex;
nsIAtom* nsHTMLAtoms::shape;
nsIAtom* nsHTMLAtoms::size;
nsIAtom* nsHTMLAtoms::spacer;
nsIAtom* nsHTMLAtoms::span;
nsIAtom* nsHTMLAtoms::src;
nsIAtom* nsHTMLAtoms::standby;
nsIAtom* nsHTMLAtoms::start;
nsIAtom* nsHTMLAtoms::style;
nsIAtom* nsHTMLAtoms::summary;
nsIAtom* nsHTMLAtoms::suppress;
nsIAtom* nsHTMLAtoms::tabindex;
nsIAtom* nsHTMLAtoms::table;
nsIAtom* nsHTMLAtoms::tablePseudo;
nsIAtom* nsHTMLAtoms::tableCellPseudo;
nsIAtom* nsHTMLAtoms::tableColGroupPseudo;
nsIAtom* nsHTMLAtoms::tableColPseudo;
nsIAtom* nsHTMLAtoms::tableOuterPseudo;
nsIAtom* nsHTMLAtoms::tableRowGroupPseudo;
nsIAtom* nsHTMLAtoms::tableRowPseudo;
nsIAtom* nsHTMLAtoms::tabstop;
nsIAtom* nsHTMLAtoms::target;
nsIAtom* nsHTMLAtoms::tbody;
nsIAtom* nsHTMLAtoms::td;
nsIAtom* nsHTMLAtoms::tfoot;
nsIAtom* nsHTMLAtoms::thead;
nsIAtom* nsHTMLAtoms::text;
nsIAtom* nsHTMLAtoms::textarea;
nsIAtom* nsHTMLAtoms::textPseudo;
nsIAtom* nsHTMLAtoms::th;
nsIAtom* nsHTMLAtoms::title;
nsIAtom* nsHTMLAtoms::top;
nsIAtom* nsHTMLAtoms::toppadding;
nsIAtom* nsHTMLAtoms::tr;
nsIAtom* nsHTMLAtoms::type;
nsIAtom* nsHTMLAtoms::ul;
nsIAtom* nsHTMLAtoms::usemap;
nsIAtom* nsHTMLAtoms::valign;
nsIAtom* nsHTMLAtoms::value;
nsIAtom* nsHTMLAtoms::valuetype;
nsIAtom* nsHTMLAtoms::variable;
nsIAtom* nsHTMLAtoms::vcard_name;
nsIAtom* nsHTMLAtoms::version;
nsIAtom* nsHTMLAtoms::verticalFramesetBorderPseudo;
nsIAtom* nsHTMLAtoms::visibility;
nsIAtom* nsHTMLAtoms::vlink;
nsIAtom* nsHTMLAtoms::vspace;
nsIAtom* nsHTMLAtoms::wbr;
nsIAtom* nsHTMLAtoms::width;
nsIAtom* nsHTMLAtoms::wrap;
nsIAtom* nsHTMLAtoms::wrappedFramePseudo;
nsIAtom* nsHTMLAtoms::zindex;
nsIAtom* nsHTMLAtoms::z_index;
static nsrefcnt gRefCnt; static nsrefcnt gRefCnt;
void nsHTMLAtoms::AddrefAtoms() void nsHTMLAtoms::AddRefAtoms()
{ {
if (0 == gRefCnt) { if (0 == gRefCnt++) {
mozAnonymousBlock = NS_NewAtom(":-moz-anonymous-block"); // create atoms
mozFirstLineFixup = NS_NewAtom(":-moz-first-line-fixup"); #define HTML_ATOM(_name, _value) _name = NS_NewAtom(_value);
mozLetterFrame = NS_NewAtom(":-moz-letter-frame"); #include "nsHTMLAtomList.h"
mozLineFrame = NS_NewAtom(":-moz-line-frame"); #undef HTML_ATOM
mozListBulletPseudo = NS_NewAtom(":-moz-list-bullet");
_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");
accesskey = NS_NewAtom("accesskey");
action = NS_NewAtom("action");
align = NS_NewAtom("align");
alink = NS_NewAtom("alink");
alt = NS_NewAtom("alt");
applet = NS_NewAtom("applet");
archive = NS_NewAtom("archive");
area = NS_NewAtom("area");
axis = NS_NewAtom("axis");
background = NS_NewAtom("background");
below = NS_NewAtom("below");
bgcolor = NS_NewAtom("bgcolor");
body = NS_NewAtom("body");
border = NS_NewAtom("border");
bordercolor = NS_NewAtom("bordercolor");
bottompadding = NS_NewAtom("bottompadding");
br = NS_NewAtom("br");
button = NS_NewAtom("button");
buttonContentPseudo = NS_NewAtom(":button-content");
caption = NS_NewAtom("caption");
cellContentPseudo = NS_NewAtom(":cell-content");
cellpadding = NS_NewAtom("cellpadding");
cellspacing = NS_NewAtom("cellspacing");
ch = NS_NewAtom("ch");
_char = NS_NewAtom("char");
charoff = NS_NewAtom("charoff");
charset = NS_NewAtom("charset");
checked = NS_NewAtom("checked");
choff = NS_NewAtom("choff");
cite = NS_NewAtom("cite");
kClass = NS_NewAtom("class");
classid = NS_NewAtom("classid");
clear = NS_NewAtom("clear");
clip = NS_NewAtom("clip");
code = NS_NewAtom("code");
codebase = NS_NewAtom("codebase");
codetype = NS_NewAtom("codetype");
color = NS_NewAtom("color");
col = NS_NewAtom("col");
colgroup = NS_NewAtom("colgroup");
cols = NS_NewAtom("cols");
colspan = NS_NewAtom("colspan");
combobox = NS_NewAtom("combobox");
columnPseudo = NS_NewAtom(":body-column");
commentPseudo = NS_NewAtom(":-moz-comment");
compact = NS_NewAtom("compact");
content = NS_NewAtom("content");
coords = NS_NewAtom("coords");
defaultchecked = NS_NewAtom("defaultchecked");
defaultselected = NS_NewAtom("defaultselected");
defaultvalue = NS_NewAtom("defaultvalue");
declare = NS_NewAtom("declare");
defer = NS_NewAtom("defer");
dir = NS_NewAtom("dir");
div = NS_NewAtom("div");
disabled = NS_NewAtom("disabled");
dl = NS_NewAtom("dl");
dropDownListPseudo = NS_NewAtom(":-moz-dropdown-list");
datetime = NS_NewAtom("datetime");
data = NS_NewAtom("data");
embed = NS_NewAtom("embed");
encoding = NS_NewAtom("encoding");
enctype = NS_NewAtom("enctype");
face = NS_NewAtom("face");
fieldset = NS_NewAtom("fieldset");
fieldsetContentPseudo = NS_NewAtom(":fieldset-content");
fileButtonStylePseudo = NS_NewAtom(":-moz-file-button");
fileTextStylePseudo = NS_NewAtom(":-moz-file-text");
firstLetterPseudo = NS_NewAtom(":first-letter");
firstLinePseudo = NS_NewAtom(":first-line");
font = NS_NewAtom("font");
fontWeight = NS_NewAtom("font-weight");
_for = NS_NewAtom("for");
form = NS_NewAtom("form");
frame = NS_NewAtom("frame");
frameborder = NS_NewAtom("frameborder");
frameset = NS_NewAtom("frameset");
framesetBlankPseudo = NS_NewAtom(":frameset-blank");
gutter = NS_NewAtom("gutter");
h1 = NS_NewAtom("h1");
h2 = NS_NewAtom("h2");
h3 = NS_NewAtom("h3");
h4 = NS_NewAtom("h4");
h5 = NS_NewAtom("h5");
h6 = NS_NewAtom("h6");
headerContentBase = NS_NewAtom("content-base");
headerContentLanguage = NS_NewAtom("content-language");
headerContentScriptType = NS_NewAtom("content-script-type");
headerContentStyleType = NS_NewAtom("content-style-type");
headerContentType = NS_NewAtom("content-type");
headerDefaultStyle = NS_NewAtom("default-style");
headerWindowTarget = NS_NewAtom("window-target");
headers = NS_NewAtom("headers");
height = NS_NewAtom("height");
hidden = NS_NewAtom("hidden");
horizontalFramesetBorderPseudo = NS_NewAtom(":hframeset-border");
hr = NS_NewAtom("hr");
href = NS_NewAtom("href");
hreflang = NS_NewAtom("hreflang");
hspace = NS_NewAtom("hspace");
html = NS_NewAtom("html");
httpEquiv = NS_NewAtom("http-equiv");
ibPseudo = NS_NewAtom(":ib-pseudo");
id = NS_NewAtom("id");
iframe = NS_NewAtom("iframe");
ilayer = NS_NewAtom("ilayer");
img = NS_NewAtom("img");
index = NS_NewAtom("index");
input = NS_NewAtom("input");
ismap = NS_NewAtom("ismap");
label = NS_NewAtom("label");
labelContentPseudo = NS_NewAtom(":label-content");
lang = NS_NewAtom("lang");
layer = NS_NewAtom("layer");
layout = NS_NewAtom("layout");
li = NS_NewAtom("li");
link = NS_NewAtom("link");
left = NS_NewAtom("left");
leftpadding = NS_NewAtom("leftpadding");
legend = NS_NewAtom("legend");
legendContentPseudo = NS_NewAtom(":legend-content");
length = NS_NewAtom("length");
longdesc = NS_NewAtom("longdesc");
lowsrc = NS_NewAtom("lowsrc");
marginheight = NS_NewAtom("marginheight");
marginwidth = NS_NewAtom("marginwidth");
maxlength = NS_NewAtom("maxlength");
mayscript = NS_NewAtom("mayscript");
media = NS_NewAtom("media");
menu = NS_NewAtom("menu");
method = NS_NewAtom("method");
multicol = NS_NewAtom("multicol");
multiple = NS_NewAtom("multiple");
name = NS_NewAtom("name");
nohref = NS_NewAtom("nohref");
noresize = NS_NewAtom("noresize");
noshade = NS_NewAtom("noshade");
nowrap = NS_NewAtom("nowrap");
object = NS_NewAtom("object");
ol = NS_NewAtom("ol");
onabort = NS_NewAtom("onabort");
onblur = NS_NewAtom("onblur");
onchange = NS_NewAtom("onchange");
onclick = NS_NewAtom("onclick");
ondblclick = NS_NewAtom("ondblclick");
ondragdrop = NS_NewAtom("ondragdrop");
onerror = NS_NewAtom("onerror");
onfocus = NS_NewAtom("onfocus");
onkeydown = NS_NewAtom("onkeydown");
onkeypress = NS_NewAtom("onkeypress");
onkeyup = NS_NewAtom("onkeyup");
onload = NS_NewAtom("onload");
onmousedown = NS_NewAtom("onmousedown");
onmousemove = NS_NewAtom("onmousemove");
onmouseover = NS_NewAtom("onmouseover");
onmouseout = NS_NewAtom("onmouseout");
onmouseup = NS_NewAtom("onmouseup");
onpaint = NS_NewAtom("onpaint");
onreset = NS_NewAtom("onreset");
onsubmit = NS_NewAtom("onsubmit");
onunload = NS_NewAtom("onunload");
option = NS_NewAtom("option");
overflow = NS_NewAtom("overflow");
p = NS_NewAtom("p");
pagex = NS_NewAtom("pagex");
pagey = NS_NewAtom("pagey");
param = NS_NewAtom("param");
placeholderPseudo = NS_NewAtom(":placeholder-frame");
pointSize = NS_NewAtom("point-size");
pre = NS_NewAtom("pre");
processingInstructionPseudo = NS_NewAtom(":-moz-pi");
profile = NS_NewAtom("profile");
prompt = NS_NewAtom("prompt");
radioPseudo = NS_NewAtom(":-moz-radio");
readonly = NS_NewAtom("readonly");
rel = NS_NewAtom("rel");
repeat = NS_NewAtom("repeat");
rev = NS_NewAtom("rev");
rightpadding = NS_NewAtom("rightpadding");
rootPseudo = NS_NewAtom(":root");
rows = NS_NewAtom("rows");
rowspan = NS_NewAtom("rowspan");
rules = NS_NewAtom("rules");
scheme = NS_NewAtom("scheme");
scope = NS_NewAtom("scope");
script = NS_NewAtom("script");
scrolledContentPseudo = NS_NewAtom(":scrolled-content");
scrolling = NS_NewAtom("scrolling");
select = NS_NewAtom("select");
selected = NS_NewAtom("selected");
selectedindex = NS_NewAtom("selectedindex");
shape = NS_NewAtom("shape");
size = NS_NewAtom("size");
spacer = NS_NewAtom("spacer");
span = NS_NewAtom("span");
src = NS_NewAtom("src");
standby = NS_NewAtom("standby");
start = NS_NewAtom("start");
style = NS_NewAtom("style");
summary = NS_NewAtom("summary");
suppress = NS_NewAtom("suppress");
tabindex = NS_NewAtom("tabindex");
table = NS_NewAtom("table");
tablePseudo = NS_NewAtom(":table");
tableCellPseudo = NS_NewAtom(":table-cell");
tableColGroupPseudo = NS_NewAtom(":table-column-group");
tableColPseudo = NS_NewAtom(":table-column");
tableOuterPseudo = NS_NewAtom(":table-outer");
tableRowGroupPseudo = NS_NewAtom(":table-row-group");
tableRowPseudo = NS_NewAtom(":table-row");
tabstop = NS_NewAtom("tabstop");
target = NS_NewAtom("target");
tbody = NS_NewAtom("tbody");
td = NS_NewAtom("td");
tfoot = NS_NewAtom("tfoot");
thead = NS_NewAtom("thead");
text = NS_NewAtom("text");
textarea = NS_NewAtom("textarea");
textPseudo = NS_NewAtom(":-moz-text");
th = NS_NewAtom("th");
title = NS_NewAtom("title");
top = NS_NewAtom("top");
toppadding = NS_NewAtom("toppadding");
tr = NS_NewAtom("tr");
type = NS_NewAtom("type");
ul = NS_NewAtom("ul");
usemap = NS_NewAtom("usemap");
valign = NS_NewAtom("valign");
value = NS_NewAtom("value");
valuetype = NS_NewAtom("valuetype");
variable = NS_NewAtom("variable");
vcard_name = NS_NewAtom("vcard_name");
version = NS_NewAtom("version");
verticalFramesetBorderPseudo = NS_NewAtom(":vframeset-border");
visibility = NS_NewAtom("visibility");
vlink = NS_NewAtom("vlink");
vspace = NS_NewAtom("vspace");
wbr = NS_NewAtom("wbr");
width = NS_NewAtom("width");
wrap = NS_NewAtom("wrap");
wrappedFramePseudo = NS_NewAtom(":wrapped-frame");
zindex = NS_NewAtom("zindex");
z_index = NS_NewAtom("z-index");
} }
++gRefCnt;
} }
void nsHTMLAtoms::ReleaseAtoms() void nsHTMLAtoms::ReleaseAtoms()
{ {
NS_PRECONDITION(gRefCnt != 0, "bad release atoms"); NS_PRECONDITION(gRefCnt != 0, "bad release atoms");
if (--gRefCnt == 0) { if (--gRefCnt == 0) {
NS_RELEASE(mozAnonymousBlock); // release atoms
NS_RELEASE(mozLetterFrame); #define HTML_ATOM(_name, _value) NS_RELEASE(_name);
NS_RELEASE(mozLineFrame); #include "nsHTMLAtomList.h"
NS_RELEASE(mozListBulletPseudo); #undef HTML_ATOM
NS_RELEASE(_baseHref);
NS_RELEASE(_baseTarget);
NS_RELEASE(a);
NS_RELEASE(abbr);
NS_RELEASE(above);
NS_RELEASE(action);
NS_RELEASE(align);
NS_RELEASE(alink);
NS_RELEASE(alt);
NS_RELEASE(applet);
NS_RELEASE(archive);
NS_RELEASE(area);
NS_RELEASE(axis);
NS_RELEASE(background);
NS_RELEASE(below);
NS_RELEASE(bgcolor);
NS_RELEASE(body);
NS_RELEASE(border);
NS_RELEASE(bordercolor);
NS_RELEASE(bottompadding);
NS_RELEASE(br);
NS_RELEASE(button);
NS_RELEASE(buttonContentPseudo);
NS_RELEASE(caption);
NS_RELEASE(cellContentPseudo);
NS_RELEASE(cellpadding);
NS_RELEASE(cellspacing);
NS_RELEASE(ch);
NS_RELEASE(_char);
NS_RELEASE(charoff);
NS_RELEASE(charset);
NS_RELEASE(checked);
NS_RELEASE(choff);
NS_RELEASE(cite);
NS_RELEASE(kClass);
NS_RELEASE(classid);
NS_RELEASE(clear);
NS_RELEASE(clip);
NS_RELEASE(code);
NS_RELEASE(codebase);
NS_RELEASE(codetype);
NS_RELEASE(color);
NS_RELEASE(col);
NS_RELEASE(colgroup);
NS_RELEASE(cols);
NS_RELEASE(colspan);
NS_RELEASE(combobox);
NS_RELEASE(columnPseudo);
NS_RELEASE(commentPseudo);
NS_RELEASE(compact);
NS_RELEASE(content);
NS_RELEASE(coords);
NS_RELEASE(data);
NS_RELEASE(datetime);
NS_RELEASE(defaultchecked);
NS_RELEASE(defaultselected);
NS_RELEASE(defaultvalue);
NS_RELEASE(declare);
NS_RELEASE(defer);
NS_RELEASE(dir);
NS_RELEASE(disabled);
NS_RELEASE(div);
NS_RELEASE(dl);
NS_RELEASE(dropDownListPseudo);
NS_RELEASE(embed);
NS_RELEASE(encoding);
NS_RELEASE(face);
NS_RELEASE(fieldset);
NS_RELEASE(fieldsetContentPseudo);
NS_RELEASE(firstLetterPseudo);
NS_RELEASE(firstLinePseudo);
NS_RELEASE(font);
NS_RELEASE(fontWeight);
NS_RELEASE(_for);
NS_RELEASE(form);
NS_RELEASE(frameborder);
NS_RELEASE(frameset);
NS_RELEASE(framesetBlankPseudo);
NS_RELEASE(gutter);
NS_RELEASE(h1);
NS_RELEASE(h2);
NS_RELEASE(h3);
NS_RELEASE(h4);
NS_RELEASE(h5);
NS_RELEASE(h6);
NS_RELEASE(headerContentBase);
NS_RELEASE(headerContentLanguage);
NS_RELEASE(headerContentScriptType);
NS_RELEASE(headerContentStyleType);
NS_RELEASE(headerContentType);
NS_RELEASE(headerDefaultStyle);
NS_RELEASE(headerWindowTarget);
NS_RELEASE(headers);
NS_RELEASE(height);
NS_RELEASE(hidden);
NS_RELEASE(horizontalFramesetBorderPseudo);
NS_RELEASE(hr);
NS_RELEASE(href);
NS_RELEASE(hspace);
NS_RELEASE(html);
NS_RELEASE(httpEquiv);
NS_RELEASE(ibPseudo);
NS_RELEASE(id);
NS_RELEASE(iframe);
NS_RELEASE(ilayer);
NS_RELEASE(img);
NS_RELEASE(index);
NS_RELEASE(input);
NS_RELEASE(ismap);
NS_RELEASE(label);
NS_RELEASE(labelContentPseudo);
NS_RELEASE(lang);
NS_RELEASE(layer);
NS_RELEASE(layout);
NS_RELEASE(li);
NS_RELEASE(link);
NS_RELEASE(left);
NS_RELEASE(leftpadding);
NS_RELEASE(legend);
NS_RELEASE(legendContentPseudo);
NS_RELEASE(length);
NS_RELEASE(lowsrc);
NS_RELEASE(marginheight);
NS_RELEASE(marginwidth);
NS_RELEASE(maxlength);
NS_RELEASE(mayscript);
NS_RELEASE(media);
NS_RELEASE(menu);
NS_RELEASE(method);
NS_RELEASE(multicol);
NS_RELEASE(multiple);
NS_RELEASE(name);
NS_RELEASE(nohref);
NS_RELEASE(noresize);
NS_RELEASE(noshade);
NS_RELEASE(nowrap);
NS_RELEASE(object);
NS_RELEASE(ol);
NS_RELEASE(onabort);
NS_RELEASE(onblur);
NS_RELEASE(onchange);
NS_RELEASE(onclick);
NS_RELEASE(ondblclick);
NS_RELEASE(ondragdrop);
NS_RELEASE(onerror);
NS_RELEASE(onfocus);
NS_RELEASE(onkeydown);
NS_RELEASE(onkeypress);
NS_RELEASE(onkeyup);
NS_RELEASE(onload);
NS_RELEASE(onmousedown);
NS_RELEASE(onmousemove);
NS_RELEASE(onmouseover);
NS_RELEASE(onmouseout);
NS_RELEASE(onmouseup);
NS_RELEASE(onpaint);
NS_RELEASE(onreset);
NS_RELEASE(onsubmit);
NS_RELEASE(onunload);
NS_RELEASE(option);
NS_RELEASE(overflow);
NS_RELEASE(p);
NS_RELEASE(pagex);
NS_RELEASE(pagey);
NS_RELEASE(param);
NS_RELEASE(placeholderPseudo);
NS_RELEASE(pointSize);
NS_RELEASE(pre);
NS_RELEASE(processingInstructionPseudo);
NS_RELEASE(profile);
NS_RELEASE(prompt);
NS_RELEASE(radioPseudo);
NS_RELEASE(readonly);
NS_RELEASE(rel);
NS_RELEASE(repeat);
NS_RELEASE(rightpadding);
NS_RELEASE(rootPseudo);
NS_RELEASE(rows);
NS_RELEASE(rowspan);
NS_RELEASE(rules);
NS_RELEASE(scheme);
NS_RELEASE(scope);
NS_RELEASE(script);
NS_RELEASE(scrolling);
NS_RELEASE(select);
NS_RELEASE(selected);
NS_RELEASE(selectedindex);
NS_RELEASE(shape);
NS_RELEASE(size);
NS_RELEASE(spacer);
NS_RELEASE(span);
NS_RELEASE(src);
NS_RELEASE(standby);
NS_RELEASE(start);
NS_RELEASE(style);
NS_RELEASE(summary);
NS_RELEASE(suppress);
NS_RELEASE(table);
NS_RELEASE(tablePseudo);
NS_RELEASE(tableCellPseudo);
NS_RELEASE(tableColGroupPseudo);
NS_RELEASE(tableColPseudo);
NS_RELEASE(tableOuterPseudo);
NS_RELEASE(tableRowGroupPseudo);
NS_RELEASE(tableRowPseudo);
NS_RELEASE(tabstop);
NS_RELEASE(target);
NS_RELEASE(tbody);
NS_RELEASE(td);
NS_RELEASE(tfoot);
NS_RELEASE(thead);
NS_RELEASE(text);
NS_RELEASE(textarea);
NS_RELEASE(textPseudo);
NS_RELEASE(th);
NS_RELEASE(top);
NS_RELEASE(toppadding);
NS_RELEASE(tr);
NS_RELEASE(type);
NS_RELEASE(ul);
NS_RELEASE(usemap);
NS_RELEASE(valign);
NS_RELEASE(value);
NS_RELEASE(valuetype);
NS_RELEASE(variable);
NS_RELEASE(vcard_name);
NS_RELEASE(version);
NS_RELEASE(verticalFramesetBorderPseudo);
NS_RELEASE(visibility);
NS_RELEASE(vlink);
NS_RELEASE(vspace);
NS_RELEASE(wbr);
NS_RELEASE(width);
NS_RELEASE(wrap);
NS_RELEASE(wrappedFramePseudo);
NS_RELEASE(zindex);
NS_RELEASE(z_index);
} }
} }

View File

@ -0,0 +1,293 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
/******
This file contains the list of all HTML atoms
See nsHTMLAtoms.h for access to the atoms
It is designed to be used as inline input to nsHTMLAtoms.cpp *only*
through the magic of C preprocessing.
All entires must be enclosed in the macro HTML_ATOM which will have cruel
and unusual things done to it
The first argument to HTML_ATOM is the C++ name of the atom
The second argument it HTML_ATOM is the string value of the atom
******/
HTML_ATOM(mozAnonymousBlock, ":-moz-anonymous-block")
HTML_ATOM(mozFirstLineFixup, ":-moz-first-line-fixup")
HTML_ATOM(mozLetterFrame, ":-moz-letter-frame")
HTML_ATOM(mozLineFrame, ":-moz-line-frame")
HTML_ATOM(mozListBulletPseudo, ":-moz-list-bullet")
HTML_ATOM(_baseHref, NS_HTML_BASE_HREF)
HTML_ATOM(_baseTarget, NS_HTML_BASE_TARGET)
HTML_ATOM(a, "a")
HTML_ATOM(abbr, "abbr")
HTML_ATOM(above, "above")
HTML_ATOM(accept, "accept")
HTML_ATOM(acceptcharset, "acceptcharset")
HTML_ATOM(accesskey, "accesskey")
HTML_ATOM(action, "action")
HTML_ATOM(align, "align")
HTML_ATOM(alink, "alink")
HTML_ATOM(alt, "alt")
HTML_ATOM(applet, "applet")
HTML_ATOM(archive, "archive")
HTML_ATOM(area, "area")
HTML_ATOM(axis, "axis")
HTML_ATOM(background, "background")
HTML_ATOM(below, "below")
HTML_ATOM(bgcolor, "bgcolor")
HTML_ATOM(body, "body")
HTML_ATOM(border, "border")
HTML_ATOM(bordercolor, "bordercolor")
HTML_ATOM(bottompadding, "bottompadding")
HTML_ATOM(br, "br")
HTML_ATOM(button, "button")
HTML_ATOM(buttonContentPseudo, ":button-content")
HTML_ATOM(caption, "caption")
HTML_ATOM(cellContentPseudo, ":cell-content")
HTML_ATOM(cellpadding, "cellpadding")
HTML_ATOM(cellspacing, "cellspacing")
HTML_ATOM(ch, "ch")
HTML_ATOM(_char, "char")
HTML_ATOM(charoff, "charoff")
HTML_ATOM(charset, "charset")
HTML_ATOM(checked, "checked")
HTML_ATOM(choff, "choff")
HTML_ATOM(cite, "cite")
HTML_ATOM(kClass, "class")
HTML_ATOM(classid, "classid")
HTML_ATOM(clear, "clear")
HTML_ATOM(clip, "clip")
HTML_ATOM(code, "code")
HTML_ATOM(codebase, "codebase")
HTML_ATOM(codetype, "codetype")
HTML_ATOM(color, "color")
HTML_ATOM(col, "col")
HTML_ATOM(colgroup, "colgroup")
HTML_ATOM(cols, "cols")
HTML_ATOM(colspan, "colspan")
HTML_ATOM(combobox, "combobox")
HTML_ATOM(columnPseudo, ":body-column")
HTML_ATOM(commentPseudo, ":-moz-comment")
HTML_ATOM(compact, "compact")
HTML_ATOM(content, "content")
HTML_ATOM(coords, "coords")
HTML_ATOM(defaultchecked, "defaultchecked")
HTML_ATOM(defaultselected, "defaultselected")
HTML_ATOM(defaultvalue, "defaultvalue")
HTML_ATOM(declare, "declare")
HTML_ATOM(defer, "defer")
HTML_ATOM(dir, "dir")
HTML_ATOM(div, "div")
HTML_ATOM(disabled, "disabled")
HTML_ATOM(dl, "dl")
HTML_ATOM(dropDownListPseudo, ":-moz-dropdown-list")
HTML_ATOM(datetime, "datetime")
HTML_ATOM(data, "data")
HTML_ATOM(embed, "embed")
HTML_ATOM(encoding, "encoding")
HTML_ATOM(enctype, "enctype")
HTML_ATOM(face, "face")
HTML_ATOM(fieldset, "fieldset")
HTML_ATOM(fieldsetContentPseudo, ":fieldset-content")
HTML_ATOM(fileButtonStylePseudo, ":-moz-file-button")
HTML_ATOM(fileTextStylePseudo, ":-moz-file-text")
HTML_ATOM(firstLetterPseudo, ":first-letter")
HTML_ATOM(firstLinePseudo, ":first-line")
HTML_ATOM(font, "font")
HTML_ATOM(fontWeight, "font-weight")
HTML_ATOM(_for, "for")
HTML_ATOM(form, "form")
HTML_ATOM(frame, "frame")
HTML_ATOM(frameborder, "frameborder")
HTML_ATOM(frameset, "frameset")
HTML_ATOM(framesetBlankPseudo, ":frameset-blank")
HTML_ATOM(gutter, "gutter")
HTML_ATOM(h1, "h1")
HTML_ATOM(h2, "h2")
HTML_ATOM(h3, "h3")
HTML_ATOM(h4, "h4")
HTML_ATOM(h5, "h5")
HTML_ATOM(h6, "h6")
HTML_ATOM(headerContentBase, "content-base")
HTML_ATOM(headerContentLanguage, "content-language")
HTML_ATOM(headerContentScriptType, "content-script-type")
HTML_ATOM(headerContentStyleType, "content-style-type")
HTML_ATOM(headerContentType, "content-type")
HTML_ATOM(headerDefaultStyle, "default-style")
HTML_ATOM(headerWindowTarget, "window-target")
HTML_ATOM(headers, "headers")
HTML_ATOM(height, "height")
HTML_ATOM(hidden, "hidden")
HTML_ATOM(horizontalFramesetBorderPseudo, ":hframeset-border")
HTML_ATOM(hr, "hr")
HTML_ATOM(href, "href")
HTML_ATOM(hreflang, "hreflang")
HTML_ATOM(hspace, "hspace")
HTML_ATOM(html, "html")
HTML_ATOM(httpEquiv, "http-equiv")
HTML_ATOM(ibPseudo, ":ib-pseudo")
HTML_ATOM(id, "id")
HTML_ATOM(iframe, "iframe")
HTML_ATOM(ilayer, "ilayer")
HTML_ATOM(img, "img")
HTML_ATOM(index, "index")
HTML_ATOM(input, "input")
HTML_ATOM(ismap, "ismap")
HTML_ATOM(label, "label")
HTML_ATOM(labelContentPseudo, ":label-content")
HTML_ATOM(lang, "lang")
HTML_ATOM(layer, "layer")
HTML_ATOM(layout, "layout")
HTML_ATOM(li, "li")
HTML_ATOM(link, "link")
HTML_ATOM(left, "left")
HTML_ATOM(leftpadding, "leftpadding")
HTML_ATOM(legend, "legend")
HTML_ATOM(legendContentPseudo, ":legend-content")
HTML_ATOM(length, "length")
HTML_ATOM(longdesc, "longdesc")
HTML_ATOM(lowsrc, "lowsrc")
HTML_ATOM(marginheight, "marginheight")
HTML_ATOM(marginwidth, "marginwidth")
HTML_ATOM(maxlength, "maxlength")
HTML_ATOM(mayscript, "mayscript")
HTML_ATOM(media, "media")
HTML_ATOM(menu, "menu")
HTML_ATOM(method, "method")
HTML_ATOM(multicol, "multicol")
HTML_ATOM(multiple, "multiple")
HTML_ATOM(name, "name")
HTML_ATOM(nohref, "nohref")
HTML_ATOM(noresize, "noresize")
HTML_ATOM(noshade, "noshade")
HTML_ATOM(nowrap, "nowrap")
HTML_ATOM(object, "object")
HTML_ATOM(ol, "ol")
HTML_ATOM(onabort, "onabort")
HTML_ATOM(onblur, "onblur")
HTML_ATOM(onchange, "onchange")
HTML_ATOM(onclick, "onclick")
HTML_ATOM(ondblclick, "ondblclick")
HTML_ATOM(ondragdrop, "ondragdrop")
HTML_ATOM(onerror, "onerror")
HTML_ATOM(onfocus, "onfocus")
HTML_ATOM(onkeydown, "onkeydown")
HTML_ATOM(onkeypress, "onkeypress")
HTML_ATOM(onkeyup, "onkeyup")
HTML_ATOM(onload, "onload")
HTML_ATOM(onmousedown, "onmousedown")
HTML_ATOM(onmousemove, "onmousemove")
HTML_ATOM(onmouseover, "onmouseover")
HTML_ATOM(onmouseout, "onmouseout")
HTML_ATOM(onmouseup, "onmouseup")
HTML_ATOM(onpaint, "onpaint")
HTML_ATOM(onreset, "onreset")
HTML_ATOM(onsubmit, "onsubmit")
HTML_ATOM(onunload, "onunload")
HTML_ATOM(option, "option")
HTML_ATOM(overflow, "overflow")
HTML_ATOM(p, "p")
HTML_ATOM(pagex, "pagex")
HTML_ATOM(pagey, "pagey")
HTML_ATOM(param, "param")
HTML_ATOM(placeholderPseudo, ":placeholder-frame")
HTML_ATOM(pointSize, "point-size")
HTML_ATOM(pre, "pre")
HTML_ATOM(processingInstructionPseudo, ":-moz-pi")
HTML_ATOM(profile, "profile")
HTML_ATOM(prompt, "prompt")
HTML_ATOM(radioPseudo, ":-moz-radio")
HTML_ATOM(readonly, "readonly")
HTML_ATOM(rel, "rel")
HTML_ATOM(repeat, "repeat")
HTML_ATOM(rev, "rev")
HTML_ATOM(rightpadding, "rightpadding")
HTML_ATOM(rootPseudo, ":root")
HTML_ATOM(rows, "rows")
HTML_ATOM(rowspan, "rowspan")
HTML_ATOM(rules, "rules")
HTML_ATOM(scheme, "scheme")
HTML_ATOM(scope, "scope")
HTML_ATOM(script, "script")
HTML_ATOM(scrolledContentPseudo, ":scrolled-content")
HTML_ATOM(scrolling, "scrolling")
HTML_ATOM(select, "select")
HTML_ATOM(selected, "selected")
HTML_ATOM(selectedindex, "selectedindex")
HTML_ATOM(shape, "shape")
HTML_ATOM(size, "size")
HTML_ATOM(spacer, "spacer")
HTML_ATOM(span, "span")
HTML_ATOM(src, "src")
HTML_ATOM(standby, "standby")
HTML_ATOM(start, "start")
HTML_ATOM(style, "style")
HTML_ATOM(summary, "summary")
HTML_ATOM(suppress, "suppress")
HTML_ATOM(tabindex, "tabindex")
HTML_ATOM(table, "table")
HTML_ATOM(tablePseudo, ":table")
HTML_ATOM(tableCellPseudo, ":table-cell")
HTML_ATOM(tableColGroupPseudo, ":table-column-group")
HTML_ATOM(tableColPseudo, ":table-column")
HTML_ATOM(tableOuterPseudo, ":table-outer")
HTML_ATOM(tableRowGroupPseudo, ":table-row-group")
HTML_ATOM(tableRowPseudo, ":table-row")
HTML_ATOM(tabstop, "tabstop")
HTML_ATOM(target, "target")
HTML_ATOM(tbody, "tbody")
HTML_ATOM(td, "td")
HTML_ATOM(tfoot, "tfoot")
HTML_ATOM(thead, "thead")
HTML_ATOM(text, "text")
HTML_ATOM(textarea, "textarea")
HTML_ATOM(textPseudo, ":-moz-text")
HTML_ATOM(th, "th")
HTML_ATOM(title, "title")
HTML_ATOM(top, "top")
HTML_ATOM(toppadding, "toppadding")
HTML_ATOM(tr, "tr")
HTML_ATOM(type, "type")
HTML_ATOM(ul, "ul")
HTML_ATOM(usemap, "usemap")
HTML_ATOM(valign, "valign")
HTML_ATOM(value, "value")
HTML_ATOM(valuetype, "valuetype")
HTML_ATOM(variable, "variable")
HTML_ATOM(vcard_name, "vcard_name")
HTML_ATOM(version, "version")
HTML_ATOM(verticalFramesetBorderPseudo, ":vframeset-border")
HTML_ATOM(visibility, "visibility")
HTML_ATOM(vlink, "vlink")
HTML_ATOM(vspace, "vspace")
HTML_ATOM(wbr, "wbr")
HTML_ATOM(width, "width")
HTML_ATOM(wrap, "wrap")
HTML_ATOM(wrappedFramePseudo, ":wrapped-frame")
HTML_ATOM(zindex, "zindex")
HTML_ATOM(z_index, "z-index")

View File

@ -17,779 +17,32 @@
*/ */
#include "nsHTMLAtoms.h" #include "nsHTMLAtoms.h"
// XXX make this be autogenerated. doh! // define storage for all atoms
#define HTML_ATOM(_name, _value) nsIAtom* nsHTMLAtoms::_name;
nsIAtom* nsHTMLAtoms::mozAnonymousBlock; #include "nsHTMLAtomList.h"
nsIAtom* nsHTMLAtoms::mozFirstLineFixup; #undef HTML_ATOM
nsIAtom* nsHTMLAtoms::mozLetterFrame;
nsIAtom* nsHTMLAtoms::mozLineFrame;
nsIAtom* nsHTMLAtoms::mozListBulletPseudo;
nsIAtom* nsHTMLAtoms::_baseHref;
nsIAtom* nsHTMLAtoms::_baseTarget;
nsIAtom* nsHTMLAtoms::a;
nsIAtom* nsHTMLAtoms::abbr;
nsIAtom* nsHTMLAtoms::above;
nsIAtom* nsHTMLAtoms::accept;
nsIAtom* nsHTMLAtoms::acceptcharset;
nsIAtom* nsHTMLAtoms::accesskey;
nsIAtom* nsHTMLAtoms::action;
nsIAtom* nsHTMLAtoms::align;
nsIAtom* nsHTMLAtoms::alink;
nsIAtom* nsHTMLAtoms::alt;
nsIAtom* nsHTMLAtoms::applet;
nsIAtom* nsHTMLAtoms::archive;
nsIAtom* nsHTMLAtoms::area;
nsIAtom* nsHTMLAtoms::axis;
nsIAtom* nsHTMLAtoms::background;
nsIAtom* nsHTMLAtoms::below;
nsIAtom* nsHTMLAtoms::bgcolor;
nsIAtom* nsHTMLAtoms::body;
nsIAtom* nsHTMLAtoms::border;
nsIAtom* nsHTMLAtoms::bordercolor;
nsIAtom* nsHTMLAtoms::bottompadding;
nsIAtom* nsHTMLAtoms::br;
nsIAtom* nsHTMLAtoms::button;
nsIAtom* nsHTMLAtoms::buttonContentPseudo;
nsIAtom* nsHTMLAtoms::caption;
nsIAtom* nsHTMLAtoms::cellContentPseudo;
nsIAtom* nsHTMLAtoms::cellpadding;
nsIAtom* nsHTMLAtoms::cellspacing;
nsIAtom* nsHTMLAtoms::ch;
nsIAtom* nsHTMLAtoms::_char;
nsIAtom* nsHTMLAtoms::charoff;
nsIAtom* nsHTMLAtoms::charset;
nsIAtom* nsHTMLAtoms::checked;
nsIAtom* nsHTMLAtoms::choff;
nsIAtom* nsHTMLAtoms::cite;
nsIAtom* nsHTMLAtoms::kClass;
nsIAtom* nsHTMLAtoms::classid;
nsIAtom* nsHTMLAtoms::clear;
nsIAtom* nsHTMLAtoms::clip;
nsIAtom* nsHTMLAtoms::code;
nsIAtom* nsHTMLAtoms::codebase;
nsIAtom* nsHTMLAtoms::codetype;
nsIAtom* nsHTMLAtoms::color;
nsIAtom* nsHTMLAtoms::col;
nsIAtom* nsHTMLAtoms::colgroup;
nsIAtom* nsHTMLAtoms::cols;
nsIAtom* nsHTMLAtoms::colspan;
nsIAtom* nsHTMLAtoms::columnPseudo;
nsIAtom* nsHTMLAtoms::combobox;
nsIAtom* nsHTMLAtoms::commentPseudo;
nsIAtom* nsHTMLAtoms::compact;
nsIAtom* nsHTMLAtoms::content;
nsIAtom* nsHTMLAtoms::coords;
nsIAtom* nsHTMLAtoms::datetime;
nsIAtom* nsHTMLAtoms::data;
nsIAtom* nsHTMLAtoms::declare;
nsIAtom* nsHTMLAtoms::defer;
nsIAtom* nsHTMLAtoms::defaultchecked;
nsIAtom* nsHTMLAtoms::defaultselected;
nsIAtom* nsHTMLAtoms::defaultvalue;
nsIAtom* nsHTMLAtoms::dir;
nsIAtom* nsHTMLAtoms::disabled;
nsIAtom* nsHTMLAtoms::div;
nsIAtom* nsHTMLAtoms::dl;
nsIAtom* nsHTMLAtoms::dropDownListPseudo;
nsIAtom* nsHTMLAtoms::embed;
nsIAtom* nsHTMLAtoms::encoding;
nsIAtom* nsHTMLAtoms::enctype;
nsIAtom* nsHTMLAtoms::face;
nsIAtom* nsHTMLAtoms::fieldset;
nsIAtom* nsHTMLAtoms::fieldsetContentPseudo;
nsIAtom* nsHTMLAtoms::fileButtonStylePseudo;
nsIAtom* nsHTMLAtoms::fileTextStylePseudo;
nsIAtom* nsHTMLAtoms::firstLetterPseudo;
nsIAtom* nsHTMLAtoms::firstLinePseudo;
nsIAtom* nsHTMLAtoms::font;
nsIAtom* nsHTMLAtoms::fontWeight;
nsIAtom* nsHTMLAtoms::_for;
nsIAtom* nsHTMLAtoms::form;
nsIAtom* nsHTMLAtoms::frame;
nsIAtom* nsHTMLAtoms::frameborder;
nsIAtom* nsHTMLAtoms::frameset;
nsIAtom* nsHTMLAtoms::framesetBlankPseudo;
nsIAtom* nsHTMLAtoms::gutter;
nsIAtom* nsHTMLAtoms::h1;
nsIAtom* nsHTMLAtoms::h2;
nsIAtom* nsHTMLAtoms::h3;
nsIAtom* nsHTMLAtoms::h4;
nsIAtom* nsHTMLAtoms::h5;
nsIAtom* nsHTMLAtoms::h6;
nsIAtom* nsHTMLAtoms::headerContentBase;
nsIAtom* nsHTMLAtoms::headerContentLanguage;
nsIAtom* nsHTMLAtoms::headerContentScriptType;
nsIAtom* nsHTMLAtoms::headerContentStyleType;
nsIAtom* nsHTMLAtoms::headerContentType;
nsIAtom* nsHTMLAtoms::headerDefaultStyle;
nsIAtom* nsHTMLAtoms::headerWindowTarget;
nsIAtom* nsHTMLAtoms::headers;
nsIAtom* nsHTMLAtoms::height;
nsIAtom* nsHTMLAtoms::hidden;
nsIAtom* nsHTMLAtoms::horizontalFramesetBorderPseudo;
nsIAtom* nsHTMLAtoms::hr;
nsIAtom* nsHTMLAtoms::href;
nsIAtom* nsHTMLAtoms::hreflang;
nsIAtom* nsHTMLAtoms::hspace;
nsIAtom* nsHTMLAtoms::html;
nsIAtom* nsHTMLAtoms::httpEquiv;
nsIAtom* nsHTMLAtoms::ibPseudo;
nsIAtom* nsHTMLAtoms::id;
nsIAtom* nsHTMLAtoms::iframe;
nsIAtom* nsHTMLAtoms::ilayer;
nsIAtom* nsHTMLAtoms::img;
nsIAtom* nsHTMLAtoms::index;
nsIAtom* nsHTMLAtoms::input;
nsIAtom* nsHTMLAtoms::ismap;
nsIAtom* nsHTMLAtoms::label;
nsIAtom* nsHTMLAtoms::labelContentPseudo;
nsIAtom* nsHTMLAtoms::lang;
nsIAtom* nsHTMLAtoms::layer;
nsIAtom* nsHTMLAtoms::layout;
nsIAtom* nsHTMLAtoms::li;
nsIAtom* nsHTMLAtoms::link;
nsIAtom* nsHTMLAtoms::left;
nsIAtom* nsHTMLAtoms::leftpadding;
nsIAtom* nsHTMLAtoms::length;
nsIAtom* nsHTMLAtoms::legend;
nsIAtom* nsHTMLAtoms::legendContentPseudo;
nsIAtom* nsHTMLAtoms::longdesc;
nsIAtom* nsHTMLAtoms::lowsrc;
nsIAtom* nsHTMLAtoms::marginheight;
nsIAtom* nsHTMLAtoms::marginwidth;
nsIAtom* nsHTMLAtoms::maxlength;
nsIAtom* nsHTMLAtoms::mayscript;
nsIAtom* nsHTMLAtoms::media;
nsIAtom* nsHTMLAtoms::menu;
nsIAtom* nsHTMLAtoms::method;
nsIAtom* nsHTMLAtoms::multicol;
nsIAtom* nsHTMLAtoms::multiple;
nsIAtom* nsHTMLAtoms::name;
nsIAtom* nsHTMLAtoms::nohref;
nsIAtom* nsHTMLAtoms::noresize;
nsIAtom* nsHTMLAtoms::noshade;
nsIAtom* nsHTMLAtoms::nowrap;
nsIAtom* nsHTMLAtoms::object;
nsIAtom* nsHTMLAtoms::ol;
nsIAtom* nsHTMLAtoms::onabort;
nsIAtom* nsHTMLAtoms::onblur;
nsIAtom* nsHTMLAtoms::onchange;
nsIAtom* nsHTMLAtoms::onclick;
nsIAtom* nsHTMLAtoms::ondblclick;
nsIAtom* nsHTMLAtoms::ondragdrop;
nsIAtom* nsHTMLAtoms::onerror;
nsIAtom* nsHTMLAtoms::onfocus;
nsIAtom* nsHTMLAtoms::onkeydown;
nsIAtom* nsHTMLAtoms::onkeypress;
nsIAtom* nsHTMLAtoms::onkeyup;
nsIAtom* nsHTMLAtoms::onload;
nsIAtom* nsHTMLAtoms::onmousedown;
nsIAtom* nsHTMLAtoms::onmousemove;
nsIAtom* nsHTMLAtoms::onmouseover;
nsIAtom* nsHTMLAtoms::onmouseout;
nsIAtom* nsHTMLAtoms::onmouseup;
nsIAtom* nsHTMLAtoms::onpaint;
nsIAtom* nsHTMLAtoms::onreset;
nsIAtom* nsHTMLAtoms::onsubmit;
nsIAtom* nsHTMLAtoms::onunload;
nsIAtom* nsHTMLAtoms::option;
nsIAtom* nsHTMLAtoms::overflow;
nsIAtom* nsHTMLAtoms::p;
nsIAtom* nsHTMLAtoms::pagex;
nsIAtom* nsHTMLAtoms::pagey;
nsIAtom* nsHTMLAtoms::param;
nsIAtom* nsHTMLAtoms::placeholderPseudo;
nsIAtom* nsHTMLAtoms::pointSize;
nsIAtom* nsHTMLAtoms::pre;
nsIAtom* nsHTMLAtoms::processingInstructionPseudo;
nsIAtom* nsHTMLAtoms::profile;
nsIAtom* nsHTMLAtoms::prompt;
nsIAtom* nsHTMLAtoms::radioPseudo;
nsIAtom* nsHTMLAtoms::readonly;
nsIAtom* nsHTMLAtoms::rel;
nsIAtom* nsHTMLAtoms::repeat;
nsIAtom* nsHTMLAtoms::rev;
nsIAtom* nsHTMLAtoms::rightpadding;
nsIAtom* nsHTMLAtoms::rootPseudo;
nsIAtom* nsHTMLAtoms::rows;
nsIAtom* nsHTMLAtoms::rowspan;
nsIAtom* nsHTMLAtoms::rules;
nsIAtom* nsHTMLAtoms::scheme;
nsIAtom* nsHTMLAtoms::scope;
nsIAtom* nsHTMLAtoms::script;
nsIAtom* nsHTMLAtoms::scrolledContentPseudo;
nsIAtom* nsHTMLAtoms::scrolling;
nsIAtom* nsHTMLAtoms::select;
nsIAtom* nsHTMLAtoms::selected;
nsIAtom* nsHTMLAtoms::selectedindex;
nsIAtom* nsHTMLAtoms::shape;
nsIAtom* nsHTMLAtoms::size;
nsIAtom* nsHTMLAtoms::spacer;
nsIAtom* nsHTMLAtoms::span;
nsIAtom* nsHTMLAtoms::src;
nsIAtom* nsHTMLAtoms::standby;
nsIAtom* nsHTMLAtoms::start;
nsIAtom* nsHTMLAtoms::style;
nsIAtom* nsHTMLAtoms::summary;
nsIAtom* nsHTMLAtoms::suppress;
nsIAtom* nsHTMLAtoms::tabindex;
nsIAtom* nsHTMLAtoms::table;
nsIAtom* nsHTMLAtoms::tablePseudo;
nsIAtom* nsHTMLAtoms::tableCellPseudo;
nsIAtom* nsHTMLAtoms::tableColGroupPseudo;
nsIAtom* nsHTMLAtoms::tableColPseudo;
nsIAtom* nsHTMLAtoms::tableOuterPseudo;
nsIAtom* nsHTMLAtoms::tableRowGroupPseudo;
nsIAtom* nsHTMLAtoms::tableRowPseudo;
nsIAtom* nsHTMLAtoms::tabstop;
nsIAtom* nsHTMLAtoms::target;
nsIAtom* nsHTMLAtoms::tbody;
nsIAtom* nsHTMLAtoms::td;
nsIAtom* nsHTMLAtoms::tfoot;
nsIAtom* nsHTMLAtoms::thead;
nsIAtom* nsHTMLAtoms::text;
nsIAtom* nsHTMLAtoms::textarea;
nsIAtom* nsHTMLAtoms::textPseudo;
nsIAtom* nsHTMLAtoms::th;
nsIAtom* nsHTMLAtoms::title;
nsIAtom* nsHTMLAtoms::top;
nsIAtom* nsHTMLAtoms::toppadding;
nsIAtom* nsHTMLAtoms::tr;
nsIAtom* nsHTMLAtoms::type;
nsIAtom* nsHTMLAtoms::ul;
nsIAtom* nsHTMLAtoms::usemap;
nsIAtom* nsHTMLAtoms::valign;
nsIAtom* nsHTMLAtoms::value;
nsIAtom* nsHTMLAtoms::valuetype;
nsIAtom* nsHTMLAtoms::variable;
nsIAtom* nsHTMLAtoms::vcard_name;
nsIAtom* nsHTMLAtoms::version;
nsIAtom* nsHTMLAtoms::verticalFramesetBorderPseudo;
nsIAtom* nsHTMLAtoms::visibility;
nsIAtom* nsHTMLAtoms::vlink;
nsIAtom* nsHTMLAtoms::vspace;
nsIAtom* nsHTMLAtoms::wbr;
nsIAtom* nsHTMLAtoms::width;
nsIAtom* nsHTMLAtoms::wrap;
nsIAtom* nsHTMLAtoms::wrappedFramePseudo;
nsIAtom* nsHTMLAtoms::zindex;
nsIAtom* nsHTMLAtoms::z_index;
static nsrefcnt gRefCnt; static nsrefcnt gRefCnt;
void nsHTMLAtoms::AddrefAtoms() void nsHTMLAtoms::AddRefAtoms()
{ {
if (0 == gRefCnt) { if (0 == gRefCnt++) {
mozAnonymousBlock = NS_NewAtom(":-moz-anonymous-block"); // create atoms
mozFirstLineFixup = NS_NewAtom(":-moz-first-line-fixup"); #define HTML_ATOM(_name, _value) _name = NS_NewAtom(_value);
mozLetterFrame = NS_NewAtom(":-moz-letter-frame"); #include "nsHTMLAtomList.h"
mozLineFrame = NS_NewAtom(":-moz-line-frame"); #undef HTML_ATOM
mozListBulletPseudo = NS_NewAtom(":-moz-list-bullet");
_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");
accesskey = NS_NewAtom("accesskey");
action = NS_NewAtom("action");
align = NS_NewAtom("align");
alink = NS_NewAtom("alink");
alt = NS_NewAtom("alt");
applet = NS_NewAtom("applet");
archive = NS_NewAtom("archive");
area = NS_NewAtom("area");
axis = NS_NewAtom("axis");
background = NS_NewAtom("background");
below = NS_NewAtom("below");
bgcolor = NS_NewAtom("bgcolor");
body = NS_NewAtom("body");
border = NS_NewAtom("border");
bordercolor = NS_NewAtom("bordercolor");
bottompadding = NS_NewAtom("bottompadding");
br = NS_NewAtom("br");
button = NS_NewAtom("button");
buttonContentPseudo = NS_NewAtom(":button-content");
caption = NS_NewAtom("caption");
cellContentPseudo = NS_NewAtom(":cell-content");
cellpadding = NS_NewAtom("cellpadding");
cellspacing = NS_NewAtom("cellspacing");
ch = NS_NewAtom("ch");
_char = NS_NewAtom("char");
charoff = NS_NewAtom("charoff");
charset = NS_NewAtom("charset");
checked = NS_NewAtom("checked");
choff = NS_NewAtom("choff");
cite = NS_NewAtom("cite");
kClass = NS_NewAtom("class");
classid = NS_NewAtom("classid");
clear = NS_NewAtom("clear");
clip = NS_NewAtom("clip");
code = NS_NewAtom("code");
codebase = NS_NewAtom("codebase");
codetype = NS_NewAtom("codetype");
color = NS_NewAtom("color");
col = NS_NewAtom("col");
colgroup = NS_NewAtom("colgroup");
cols = NS_NewAtom("cols");
colspan = NS_NewAtom("colspan");
combobox = NS_NewAtom("combobox");
columnPseudo = NS_NewAtom(":body-column");
commentPseudo = NS_NewAtom(":-moz-comment");
compact = NS_NewAtom("compact");
content = NS_NewAtom("content");
coords = NS_NewAtom("coords");
defaultchecked = NS_NewAtom("defaultchecked");
defaultselected = NS_NewAtom("defaultselected");
defaultvalue = NS_NewAtom("defaultvalue");
declare = NS_NewAtom("declare");
defer = NS_NewAtom("defer");
dir = NS_NewAtom("dir");
div = NS_NewAtom("div");
disabled = NS_NewAtom("disabled");
dl = NS_NewAtom("dl");
dropDownListPseudo = NS_NewAtom(":-moz-dropdown-list");
datetime = NS_NewAtom("datetime");
data = NS_NewAtom("data");
embed = NS_NewAtom("embed");
encoding = NS_NewAtom("encoding");
enctype = NS_NewAtom("enctype");
face = NS_NewAtom("face");
fieldset = NS_NewAtom("fieldset");
fieldsetContentPseudo = NS_NewAtom(":fieldset-content");
fileButtonStylePseudo = NS_NewAtom(":-moz-file-button");
fileTextStylePseudo = NS_NewAtom(":-moz-file-text");
firstLetterPseudo = NS_NewAtom(":first-letter");
firstLinePseudo = NS_NewAtom(":first-line");
font = NS_NewAtom("font");
fontWeight = NS_NewAtom("font-weight");
_for = NS_NewAtom("for");
form = NS_NewAtom("form");
frame = NS_NewAtom("frame");
frameborder = NS_NewAtom("frameborder");
frameset = NS_NewAtom("frameset");
framesetBlankPseudo = NS_NewAtom(":frameset-blank");
gutter = NS_NewAtom("gutter");
h1 = NS_NewAtom("h1");
h2 = NS_NewAtom("h2");
h3 = NS_NewAtom("h3");
h4 = NS_NewAtom("h4");
h5 = NS_NewAtom("h5");
h6 = NS_NewAtom("h6");
headerContentBase = NS_NewAtom("content-base");
headerContentLanguage = NS_NewAtom("content-language");
headerContentScriptType = NS_NewAtom("content-script-type");
headerContentStyleType = NS_NewAtom("content-style-type");
headerContentType = NS_NewAtom("content-type");
headerDefaultStyle = NS_NewAtom("default-style");
headerWindowTarget = NS_NewAtom("window-target");
headers = NS_NewAtom("headers");
height = NS_NewAtom("height");
hidden = NS_NewAtom("hidden");
horizontalFramesetBorderPseudo = NS_NewAtom(":hframeset-border");
hr = NS_NewAtom("hr");
href = NS_NewAtom("href");
hreflang = NS_NewAtom("hreflang");
hspace = NS_NewAtom("hspace");
html = NS_NewAtom("html");
httpEquiv = NS_NewAtom("http-equiv");
ibPseudo = NS_NewAtom(":ib-pseudo");
id = NS_NewAtom("id");
iframe = NS_NewAtom("iframe");
ilayer = NS_NewAtom("ilayer");
img = NS_NewAtom("img");
index = NS_NewAtom("index");
input = NS_NewAtom("input");
ismap = NS_NewAtom("ismap");
label = NS_NewAtom("label");
labelContentPseudo = NS_NewAtom(":label-content");
lang = NS_NewAtom("lang");
layer = NS_NewAtom("layer");
layout = NS_NewAtom("layout");
li = NS_NewAtom("li");
link = NS_NewAtom("link");
left = NS_NewAtom("left");
leftpadding = NS_NewAtom("leftpadding");
legend = NS_NewAtom("legend");
legendContentPseudo = NS_NewAtom(":legend-content");
length = NS_NewAtom("length");
longdesc = NS_NewAtom("longdesc");
lowsrc = NS_NewAtom("lowsrc");
marginheight = NS_NewAtom("marginheight");
marginwidth = NS_NewAtom("marginwidth");
maxlength = NS_NewAtom("maxlength");
mayscript = NS_NewAtom("mayscript");
media = NS_NewAtom("media");
menu = NS_NewAtom("menu");
method = NS_NewAtom("method");
multicol = NS_NewAtom("multicol");
multiple = NS_NewAtom("multiple");
name = NS_NewAtom("name");
nohref = NS_NewAtom("nohref");
noresize = NS_NewAtom("noresize");
noshade = NS_NewAtom("noshade");
nowrap = NS_NewAtom("nowrap");
object = NS_NewAtom("object");
ol = NS_NewAtom("ol");
onabort = NS_NewAtom("onabort");
onblur = NS_NewAtom("onblur");
onchange = NS_NewAtom("onchange");
onclick = NS_NewAtom("onclick");
ondblclick = NS_NewAtom("ondblclick");
ondragdrop = NS_NewAtom("ondragdrop");
onerror = NS_NewAtom("onerror");
onfocus = NS_NewAtom("onfocus");
onkeydown = NS_NewAtom("onkeydown");
onkeypress = NS_NewAtom("onkeypress");
onkeyup = NS_NewAtom("onkeyup");
onload = NS_NewAtom("onload");
onmousedown = NS_NewAtom("onmousedown");
onmousemove = NS_NewAtom("onmousemove");
onmouseover = NS_NewAtom("onmouseover");
onmouseout = NS_NewAtom("onmouseout");
onmouseup = NS_NewAtom("onmouseup");
onpaint = NS_NewAtom("onpaint");
onreset = NS_NewAtom("onreset");
onsubmit = NS_NewAtom("onsubmit");
onunload = NS_NewAtom("onunload");
option = NS_NewAtom("option");
overflow = NS_NewAtom("overflow");
p = NS_NewAtom("p");
pagex = NS_NewAtom("pagex");
pagey = NS_NewAtom("pagey");
param = NS_NewAtom("param");
placeholderPseudo = NS_NewAtom(":placeholder-frame");
pointSize = NS_NewAtom("point-size");
pre = NS_NewAtom("pre");
processingInstructionPseudo = NS_NewAtom(":-moz-pi");
profile = NS_NewAtom("profile");
prompt = NS_NewAtom("prompt");
radioPseudo = NS_NewAtom(":-moz-radio");
readonly = NS_NewAtom("readonly");
rel = NS_NewAtom("rel");
repeat = NS_NewAtom("repeat");
rev = NS_NewAtom("rev");
rightpadding = NS_NewAtom("rightpadding");
rootPseudo = NS_NewAtom(":root");
rows = NS_NewAtom("rows");
rowspan = NS_NewAtom("rowspan");
rules = NS_NewAtom("rules");
scheme = NS_NewAtom("scheme");
scope = NS_NewAtom("scope");
script = NS_NewAtom("script");
scrolledContentPseudo = NS_NewAtom(":scrolled-content");
scrolling = NS_NewAtom("scrolling");
select = NS_NewAtom("select");
selected = NS_NewAtom("selected");
selectedindex = NS_NewAtom("selectedindex");
shape = NS_NewAtom("shape");
size = NS_NewAtom("size");
spacer = NS_NewAtom("spacer");
span = NS_NewAtom("span");
src = NS_NewAtom("src");
standby = NS_NewAtom("standby");
start = NS_NewAtom("start");
style = NS_NewAtom("style");
summary = NS_NewAtom("summary");
suppress = NS_NewAtom("suppress");
tabindex = NS_NewAtom("tabindex");
table = NS_NewAtom("table");
tablePseudo = NS_NewAtom(":table");
tableCellPseudo = NS_NewAtom(":table-cell");
tableColGroupPseudo = NS_NewAtom(":table-column-group");
tableColPseudo = NS_NewAtom(":table-column");
tableOuterPseudo = NS_NewAtom(":table-outer");
tableRowGroupPseudo = NS_NewAtom(":table-row-group");
tableRowPseudo = NS_NewAtom(":table-row");
tabstop = NS_NewAtom("tabstop");
target = NS_NewAtom("target");
tbody = NS_NewAtom("tbody");
td = NS_NewAtom("td");
tfoot = NS_NewAtom("tfoot");
thead = NS_NewAtom("thead");
text = NS_NewAtom("text");
textarea = NS_NewAtom("textarea");
textPseudo = NS_NewAtom(":-moz-text");
th = NS_NewAtom("th");
title = NS_NewAtom("title");
top = NS_NewAtom("top");
toppadding = NS_NewAtom("toppadding");
tr = NS_NewAtom("tr");
type = NS_NewAtom("type");
ul = NS_NewAtom("ul");
usemap = NS_NewAtom("usemap");
valign = NS_NewAtom("valign");
value = NS_NewAtom("value");
valuetype = NS_NewAtom("valuetype");
variable = NS_NewAtom("variable");
vcard_name = NS_NewAtom("vcard_name");
version = NS_NewAtom("version");
verticalFramesetBorderPseudo = NS_NewAtom(":vframeset-border");
visibility = NS_NewAtom("visibility");
vlink = NS_NewAtom("vlink");
vspace = NS_NewAtom("vspace");
wbr = NS_NewAtom("wbr");
width = NS_NewAtom("width");
wrap = NS_NewAtom("wrap");
wrappedFramePseudo = NS_NewAtom(":wrapped-frame");
zindex = NS_NewAtom("zindex");
z_index = NS_NewAtom("z-index");
} }
++gRefCnt;
} }
void nsHTMLAtoms::ReleaseAtoms() void nsHTMLAtoms::ReleaseAtoms()
{ {
NS_PRECONDITION(gRefCnt != 0, "bad release atoms"); NS_PRECONDITION(gRefCnt != 0, "bad release atoms");
if (--gRefCnt == 0) { if (--gRefCnt == 0) {
NS_RELEASE(mozAnonymousBlock); // release atoms
NS_RELEASE(mozLetterFrame); #define HTML_ATOM(_name, _value) NS_RELEASE(_name);
NS_RELEASE(mozLineFrame); #include "nsHTMLAtomList.h"
NS_RELEASE(mozListBulletPseudo); #undef HTML_ATOM
NS_RELEASE(_baseHref);
NS_RELEASE(_baseTarget);
NS_RELEASE(a);
NS_RELEASE(abbr);
NS_RELEASE(above);
NS_RELEASE(action);
NS_RELEASE(align);
NS_RELEASE(alink);
NS_RELEASE(alt);
NS_RELEASE(applet);
NS_RELEASE(archive);
NS_RELEASE(area);
NS_RELEASE(axis);
NS_RELEASE(background);
NS_RELEASE(below);
NS_RELEASE(bgcolor);
NS_RELEASE(body);
NS_RELEASE(border);
NS_RELEASE(bordercolor);
NS_RELEASE(bottompadding);
NS_RELEASE(br);
NS_RELEASE(button);
NS_RELEASE(buttonContentPseudo);
NS_RELEASE(caption);
NS_RELEASE(cellContentPseudo);
NS_RELEASE(cellpadding);
NS_RELEASE(cellspacing);
NS_RELEASE(ch);
NS_RELEASE(_char);
NS_RELEASE(charoff);
NS_RELEASE(charset);
NS_RELEASE(checked);
NS_RELEASE(choff);
NS_RELEASE(cite);
NS_RELEASE(kClass);
NS_RELEASE(classid);
NS_RELEASE(clear);
NS_RELEASE(clip);
NS_RELEASE(code);
NS_RELEASE(codebase);
NS_RELEASE(codetype);
NS_RELEASE(color);
NS_RELEASE(col);
NS_RELEASE(colgroup);
NS_RELEASE(cols);
NS_RELEASE(colspan);
NS_RELEASE(combobox);
NS_RELEASE(columnPseudo);
NS_RELEASE(commentPseudo);
NS_RELEASE(compact);
NS_RELEASE(content);
NS_RELEASE(coords);
NS_RELEASE(data);
NS_RELEASE(datetime);
NS_RELEASE(defaultchecked);
NS_RELEASE(defaultselected);
NS_RELEASE(defaultvalue);
NS_RELEASE(declare);
NS_RELEASE(defer);
NS_RELEASE(dir);
NS_RELEASE(disabled);
NS_RELEASE(div);
NS_RELEASE(dl);
NS_RELEASE(dropDownListPseudo);
NS_RELEASE(embed);
NS_RELEASE(encoding);
NS_RELEASE(face);
NS_RELEASE(fieldset);
NS_RELEASE(fieldsetContentPseudo);
NS_RELEASE(firstLetterPseudo);
NS_RELEASE(firstLinePseudo);
NS_RELEASE(font);
NS_RELEASE(fontWeight);
NS_RELEASE(_for);
NS_RELEASE(form);
NS_RELEASE(frameborder);
NS_RELEASE(frameset);
NS_RELEASE(framesetBlankPseudo);
NS_RELEASE(gutter);
NS_RELEASE(h1);
NS_RELEASE(h2);
NS_RELEASE(h3);
NS_RELEASE(h4);
NS_RELEASE(h5);
NS_RELEASE(h6);
NS_RELEASE(headerContentBase);
NS_RELEASE(headerContentLanguage);
NS_RELEASE(headerContentScriptType);
NS_RELEASE(headerContentStyleType);
NS_RELEASE(headerContentType);
NS_RELEASE(headerDefaultStyle);
NS_RELEASE(headerWindowTarget);
NS_RELEASE(headers);
NS_RELEASE(height);
NS_RELEASE(hidden);
NS_RELEASE(horizontalFramesetBorderPseudo);
NS_RELEASE(hr);
NS_RELEASE(href);
NS_RELEASE(hspace);
NS_RELEASE(html);
NS_RELEASE(httpEquiv);
NS_RELEASE(ibPseudo);
NS_RELEASE(id);
NS_RELEASE(iframe);
NS_RELEASE(ilayer);
NS_RELEASE(img);
NS_RELEASE(index);
NS_RELEASE(input);
NS_RELEASE(ismap);
NS_RELEASE(label);
NS_RELEASE(labelContentPseudo);
NS_RELEASE(lang);
NS_RELEASE(layer);
NS_RELEASE(layout);
NS_RELEASE(li);
NS_RELEASE(link);
NS_RELEASE(left);
NS_RELEASE(leftpadding);
NS_RELEASE(legend);
NS_RELEASE(legendContentPseudo);
NS_RELEASE(length);
NS_RELEASE(lowsrc);
NS_RELEASE(marginheight);
NS_RELEASE(marginwidth);
NS_RELEASE(maxlength);
NS_RELEASE(mayscript);
NS_RELEASE(media);
NS_RELEASE(menu);
NS_RELEASE(method);
NS_RELEASE(multicol);
NS_RELEASE(multiple);
NS_RELEASE(name);
NS_RELEASE(nohref);
NS_RELEASE(noresize);
NS_RELEASE(noshade);
NS_RELEASE(nowrap);
NS_RELEASE(object);
NS_RELEASE(ol);
NS_RELEASE(onabort);
NS_RELEASE(onblur);
NS_RELEASE(onchange);
NS_RELEASE(onclick);
NS_RELEASE(ondblclick);
NS_RELEASE(ondragdrop);
NS_RELEASE(onerror);
NS_RELEASE(onfocus);
NS_RELEASE(onkeydown);
NS_RELEASE(onkeypress);
NS_RELEASE(onkeyup);
NS_RELEASE(onload);
NS_RELEASE(onmousedown);
NS_RELEASE(onmousemove);
NS_RELEASE(onmouseover);
NS_RELEASE(onmouseout);
NS_RELEASE(onmouseup);
NS_RELEASE(onpaint);
NS_RELEASE(onreset);
NS_RELEASE(onsubmit);
NS_RELEASE(onunload);
NS_RELEASE(option);
NS_RELEASE(overflow);
NS_RELEASE(p);
NS_RELEASE(pagex);
NS_RELEASE(pagey);
NS_RELEASE(param);
NS_RELEASE(placeholderPseudo);
NS_RELEASE(pointSize);
NS_RELEASE(pre);
NS_RELEASE(processingInstructionPseudo);
NS_RELEASE(profile);
NS_RELEASE(prompt);
NS_RELEASE(radioPseudo);
NS_RELEASE(readonly);
NS_RELEASE(rel);
NS_RELEASE(repeat);
NS_RELEASE(rightpadding);
NS_RELEASE(rootPseudo);
NS_RELEASE(rows);
NS_RELEASE(rowspan);
NS_RELEASE(rules);
NS_RELEASE(scheme);
NS_RELEASE(scope);
NS_RELEASE(script);
NS_RELEASE(scrolling);
NS_RELEASE(select);
NS_RELEASE(selected);
NS_RELEASE(selectedindex);
NS_RELEASE(shape);
NS_RELEASE(size);
NS_RELEASE(spacer);
NS_RELEASE(span);
NS_RELEASE(src);
NS_RELEASE(standby);
NS_RELEASE(start);
NS_RELEASE(style);
NS_RELEASE(summary);
NS_RELEASE(suppress);
NS_RELEASE(table);
NS_RELEASE(tablePseudo);
NS_RELEASE(tableCellPseudo);
NS_RELEASE(tableColGroupPseudo);
NS_RELEASE(tableColPseudo);
NS_RELEASE(tableOuterPseudo);
NS_RELEASE(tableRowGroupPseudo);
NS_RELEASE(tableRowPseudo);
NS_RELEASE(tabstop);
NS_RELEASE(target);
NS_RELEASE(tbody);
NS_RELEASE(td);
NS_RELEASE(tfoot);
NS_RELEASE(thead);
NS_RELEASE(text);
NS_RELEASE(textarea);
NS_RELEASE(textPseudo);
NS_RELEASE(th);
NS_RELEASE(top);
NS_RELEASE(toppadding);
NS_RELEASE(tr);
NS_RELEASE(type);
NS_RELEASE(ul);
NS_RELEASE(usemap);
NS_RELEASE(valign);
NS_RELEASE(value);
NS_RELEASE(valuetype);
NS_RELEASE(variable);
NS_RELEASE(vcard_name);
NS_RELEASE(version);
NS_RELEASE(verticalFramesetBorderPseudo);
NS_RELEASE(visibility);
NS_RELEASE(vlink);
NS_RELEASE(vspace);
NS_RELEASE(wbr);
NS_RELEASE(width);
NS_RELEASE(wrap);
NS_RELEASE(wrappedFramePseudo);
NS_RELEASE(zindex);
NS_RELEASE(z_index);
} }
} }

View File

@ -32,288 +32,19 @@
class nsHTMLAtoms { class nsHTMLAtoms {
public: public:
static void AddrefAtoms(); static void AddRefAtoms();
static void ReleaseAtoms(); static void ReleaseAtoms();
static nsIAtom* mozAnonymousBlock; /* Declare all atoms
static nsIAtom* mozFirstLineFixup;
static nsIAtom* mozLetterFrame;
static nsIAtom* mozLineFrame;
static nsIAtom* mozListBulletPseudo;
// Special attribute atoms The atom names and values are stored in nsHTMLAtomList.h and
static nsIAtom* _baseHref; are brought to you by the magic of C preprocessing
static nsIAtom* _baseTarget;
// Alphabetical list of html attribute atoms Add new atoms to nsHTMLAtomList and all support logic will be auto-generated
static nsIAtom* a; */
static nsIAtom* abbr; #define HTML_ATOM(_name, _value) static nsIAtom* _name;
static nsIAtom* above; #include "nsHTMLAtomList.h"
static nsIAtom* accept; #undef HTML_ATOM
static nsIAtom* acceptcharset;
static nsIAtom* accesskey;
static nsIAtom* action;
static nsIAtom* align;
static nsIAtom* alink;
static nsIAtom* alt;
static nsIAtom* applet;
static nsIAtom* archive;
static nsIAtom* area;
static nsIAtom* axis;
static nsIAtom* background;
static nsIAtom* below;
static nsIAtom* bgcolor;
static nsIAtom* body;
static nsIAtom* border;
static nsIAtom* bordercolor;
static nsIAtom* bottompadding;
static nsIAtom* br;
static nsIAtom* button;
static nsIAtom* buttonContentPseudo;
static nsIAtom* caption;
static nsIAtom* cellContentPseudo;
static nsIAtom* cellpadding;
static nsIAtom* cellspacing;
static nsIAtom* ch;
static nsIAtom* _char;
static nsIAtom* charoff;
static nsIAtom* charset;
static nsIAtom* checked;
static nsIAtom* choff;
static nsIAtom* cite;
static nsIAtom* kClass;
static nsIAtom* classid;
static nsIAtom* clear;
static nsIAtom* clip;
static nsIAtom* code;
static nsIAtom* codebase;
static nsIAtom* codetype;
static nsIAtom* color;
static nsIAtom* col;
static nsIAtom* colgroup;
static nsIAtom* cols;
static nsIAtom* colspan;
static nsIAtom* columnPseudo;
static nsIAtom* combobox;
static nsIAtom* commentPseudo;
static nsIAtom* compact;
static nsIAtom* content;
static nsIAtom* coords;
static nsIAtom* data;
static nsIAtom* datetime;
static nsIAtom* declare;
static nsIAtom* defer;
static nsIAtom* defaultchecked;
static nsIAtom* defaultselected;
static nsIAtom* defaultvalue;
static nsIAtom* dir;
static nsIAtom* disabled;
static nsIAtom* div;
static nsIAtom* dl;
static nsIAtom* dropDownListPseudo;
static nsIAtom* embed;
static nsIAtom* encoding;
static nsIAtom* enctype;
static nsIAtom* face;
static nsIAtom* fieldset;
static nsIAtom* fieldsetContentPseudo;
static nsIAtom* fileTextStylePseudo;
static nsIAtom* fileButtonStylePseudo;
static nsIAtom* firstLetterPseudo;
static nsIAtom* firstLinePseudo;
static nsIAtom* font;
static nsIAtom* fontWeight;
static nsIAtom* _for;
static nsIAtom* form;
static nsIAtom* frame;
static nsIAtom* frameborder;
static nsIAtom* frameset;
static nsIAtom* framesetBlankPseudo;
static nsIAtom* gutter;
static nsIAtom* h1;
static nsIAtom* h2;
static nsIAtom* h3;
static nsIAtom* h4;
static nsIAtom* h5;
static nsIAtom* h6;
static nsIAtom* headerContentBase;
static nsIAtom* headerContentLanguage;
static nsIAtom* headerContentScriptType;
static nsIAtom* headerContentStyleType;
static nsIAtom* headerContentType;
static nsIAtom* headerDefaultStyle;
static nsIAtom* headerWindowTarget;
static nsIAtom* headers;
static nsIAtom* height;
static nsIAtom* hidden;
static nsIAtom* horizontalFramesetBorderPseudo;
static nsIAtom* hr;
static nsIAtom* href;
static nsIAtom* hreflang;
static nsIAtom* hspace;
static nsIAtom* html;
static nsIAtom* httpEquiv;
static nsIAtom* ibPseudo;
static nsIAtom* id;
static nsIAtom* iframe;
static nsIAtom* ilayer;
static nsIAtom* img;
static nsIAtom* index;
static nsIAtom* input;
static nsIAtom* ismap;
static nsIAtom* label;
static nsIAtom* labelContentPseudo;
static nsIAtom* lang;
static nsIAtom* layer;
static nsIAtom* layout;
static nsIAtom* li;
static nsIAtom* link;
static nsIAtom* left;
static nsIAtom* leftpadding;
static nsIAtom* legend;
static nsIAtom* legendContentPseudo;
static nsIAtom* length;
static nsIAtom* longdesc;
static nsIAtom* lowsrc;
static nsIAtom* marginheight;
static nsIAtom* marginwidth;
static nsIAtom* maxlength;
static nsIAtom* mayscript;
static nsIAtom* media;
static nsIAtom* menu;
static nsIAtom* method;
static nsIAtom* multicol;
static nsIAtom* multiple;
static nsIAtom* name;
static nsIAtom* nohref;
static nsIAtom* noresize;
static nsIAtom* noshade;
static nsIAtom* nowrap;
static nsIAtom* object;
static nsIAtom* ol;
static nsIAtom* onabort;
static nsIAtom* onblur;
static nsIAtom* onchange;
static nsIAtom* onclick;
static nsIAtom* ondblclick;
static nsIAtom* ondragdrop;
static nsIAtom* onerror;
static nsIAtom* onfocus;
static nsIAtom* onkeydown;
static nsIAtom* onkeypress;
static nsIAtom* onkeyup;
static nsIAtom* onload;
static nsIAtom* onmousedown;
static nsIAtom* onmousemove;
static nsIAtom* onmouseover;
static nsIAtom* onmouseout;
static nsIAtom* onmouseup;
static nsIAtom* onpaint;
static nsIAtom* onreset;
static nsIAtom* onsubmit;
static nsIAtom* onunload;
static nsIAtom* option;
static nsIAtom* overflow;
static nsIAtom* p;
static nsIAtom* pagex;
static nsIAtom* pagey;
static nsIAtom* param;
static nsIAtom* placeholderPseudo;
static nsIAtom* pointSize;
static nsIAtom* pre;
static nsIAtom* processingInstructionPseudo;
static nsIAtom* profile;
static nsIAtom* prompt;
static nsIAtom* radioPseudo;
static nsIAtom* readonly;
static nsIAtom* rel;
static nsIAtom* repeat;
static nsIAtom* rev;
static nsIAtom* rightpadding;
static nsIAtom* rootPseudo;
static nsIAtom* rows;
static nsIAtom* rowspan;
static nsIAtom* rules;
static nsIAtom* scheme;
static nsIAtom* scope;
static nsIAtom* script;
static nsIAtom* scrolledContentPseudo;
static nsIAtom* scrolling;
static nsIAtom* select;
static nsIAtom* selected;
static nsIAtom* selectedindex;
static nsIAtom* shape;
static nsIAtom* size;
static nsIAtom* spacer;
static nsIAtom* span;
static nsIAtom* src;
static nsIAtom* standby;
static nsIAtom* start;
static nsIAtom* style;
static nsIAtom* summary;
static nsIAtom* suppress;
static nsIAtom* tabindex;
static nsIAtom* table;
static nsIAtom* tablePseudo;
static nsIAtom* tableCellPseudo;
static nsIAtom* tableColGroupPseudo;
static nsIAtom* tableColPseudo;
static nsIAtom* tableOuterPseudo;
static nsIAtom* tableRowGroupPseudo;
static nsIAtom* tableRowPseudo;
static nsIAtom* tabstop;
static nsIAtom* target;
static nsIAtom* tbody;
static nsIAtom* td;
static nsIAtom* tfoot;
static nsIAtom* thead;
static nsIAtom* text;
static nsIAtom* textarea;
static nsIAtom* textPseudo;
static nsIAtom* th;
static nsIAtom* title;
static nsIAtom* top;
static nsIAtom* toppadding;
static nsIAtom* tr;
static nsIAtom* type;
static nsIAtom* ul;
static nsIAtom* usemap;
static nsIAtom* valign;
static nsIAtom* value;
static nsIAtom* valuetype;
static nsIAtom* variable;
static nsIAtom* vcard_name;
static nsIAtom* version;
static nsIAtom* verticalFramesetBorderPseudo;
static nsIAtom* visibility;
static nsIAtom* vlink;
static nsIAtom* vspace;
static nsIAtom* wbr;
static nsIAtom* width;
static nsIAtom* wrap;
static nsIAtom* wrappedFramePseudo;
static nsIAtom* zindex;
static nsIAtom* z_index;
}; };
#endif /* nsHTMLAtoms_h___ */ #endif /* nsHTMLAtoms_h___ */

View File

@ -3,6 +3,7 @@
# #
nsCSSAtoms.h nsCSSAtoms.h
nsCSSAtomList.h
nsICSSLoader.h nsICSSLoader.h
nsICSSParser.h nsICSSParser.h
nsICSSStyleSheet.h nsICSSStyleSheet.h

View File

@ -26,6 +26,7 @@ MODULE=layout
EXPORTS = \ EXPORTS = \
nsCSSAtoms.h \ nsCSSAtoms.h \
nsCSSAtomList.h \
nsICSSLoader.h \ nsICSSLoader.h \
nsICSSParser.h \ nsICSSParser.h \
nsICSSStyleSheet.h \ nsICSSStyleSheet.h \

View File

@ -17,7 +17,7 @@
DEPTH=..\..\..\.. DEPTH=..\..\..\..
EXPORTS=nsCSSAtoms.h nsICSSLoader.h nsICSSParser.h nsICSSStyleSheet.h nsStyleUtil.h EXPORTS=nsCSSAtoms.h nsCSSAtomList.h nsICSSLoader.h nsICSSParser.h nsICSSStyleSheet.h nsStyleUtil.h
MODULE=raptor MODULE=raptor
include <$(DEPTH)\config\rules.mak> include <$(DEPTH)\config\rules.mak>

View File

@ -0,0 +1,67 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
/******
This file contains the list of all CSS nsIAtomsand their values
It is designed to be used as inline input to nsCSSAtoms.cpp *only*
through the magic of C preprocessing.
All entires must be enclosed in the macro CSS_ATOM which will have cruel
and unusual things done to it
It is recommended (but not strictly necessary) to keep all entries
in alphabetical order
The first argument to CSS_ATOM is the C++ identifier of the atom
The second argument is the string value of the atom
******/
CSS_ATOM(activePseudo, ":active")
CSS_ATOM(afterPseudo, ":after")
CSS_ATOM(beforePseudo, ":before")
CSS_ATOM(checkedPseudo, ":checked")
CSS_ATOM(disabledPseudo, ":disabled")
CSS_ATOM(dragOverPseudo, ":drag-over")
CSS_ATOM(dragPseudo, ":drag")
CSS_ATOM(enabledPseudo, ":enabled")
CSS_ATOM(firstChildPseudo, ":first-child")
CSS_ATOM(focusPseudo, ":focus")
CSS_ATOM(hoverPseudo, ":hover")
CSS_ATOM(langPseudo, ":lang")
CSS_ATOM(linkPseudo, ":link")
CSS_ATOM(menuPseudo, ":menu")
CSS_ATOM(outOfDatePseudo, ":out-of-date")
CSS_ATOM(selectionPseudo, ":selection")
CSS_ATOM(universalSelector, "*")
CSS_ATOM(visitedPseudo, ":visited")

View File

@ -29,37 +29,20 @@
class nsCSSAtoms { class nsCSSAtoms {
public: public:
static void AddrefAtoms(); static void AddRefAtoms();
static void ReleaseAtoms(); static void ReleaseAtoms();
// Alphabetical list of css atoms
static nsIAtom* activePseudo;
static nsIAtom* afterPseudo;
static nsIAtom* beforePseudo;
static nsIAtom* disabledPseudo; /* Declare all atoms
static nsIAtom* dragOverPseudo;
static nsIAtom* dragPseudo;
static nsIAtom* enabledPseudo; The atom names and values are stored in nsCSSAtomList.h and
are brought to you by the magic of C preprocessing
static nsIAtom* firstChildPseudo; Add new atoms to nsCSSAtomList and all support logic will be auto-generated
static nsIAtom* focusPseudo; */
#define CSS_ATOM(_name, _value) static nsIAtom* _name;
static nsIAtom* hoverPseudo; #include "nsCSSAtomList.h"
#undef CSS_ATOM
static nsIAtom* langPseudo;
static nsIAtom* linkPseudo;
static nsIAtom* outOfDatePseudo; // Netscape extension
static nsIAtom* selectedPseudo;
static nsIAtom* selectionPseudo;
static nsIAtom* universalSelector;
static nsIAtom* visitedPseudo;
}; };
#endif /* nsCSSAtoms_h___ */ #endif /* nsCSSAtoms_h___ */

View File

@ -17,104 +17,32 @@
*/ */
#include "nsCSSAtoms.h" #include "nsCSSAtoms.h"
// XXX make this be autogenerated. doh! // define storage for all atoms
#define CSS_ATOM(_name, _value) nsIAtom* nsCSSAtoms::_name;
nsIAtom* nsCSSAtoms::activePseudo; #include "nsCSSAtomList.h"
nsIAtom* nsCSSAtoms::afterPseudo; #undef CSS_ATOM
nsIAtom* nsCSSAtoms::beforePseudo;
nsIAtom* nsCSSAtoms::disabledPseudo;
nsIAtom* nsCSSAtoms::dragOverPseudo;
nsIAtom* nsCSSAtoms::dragPseudo;
nsIAtom* nsCSSAtoms::enabledPseudo;
nsIAtom* nsCSSAtoms::firstChildPseudo;
nsIAtom* nsCSSAtoms::focusPseudo;
nsIAtom* nsCSSAtoms::hoverPseudo;
nsIAtom* nsCSSAtoms::langPseudo;
nsIAtom* nsCSSAtoms::linkPseudo;
nsIAtom* nsCSSAtoms::outOfDatePseudo;
nsIAtom* nsCSSAtoms::selectedPseudo;
nsIAtom* nsCSSAtoms::selectionPseudo;
nsIAtom* nsCSSAtoms::universalSelector;
nsIAtom* nsCSSAtoms::visitedPseudo;
static nsrefcnt gRefCnt; static nsrefcnt gRefCnt;
void nsCSSAtoms::AddrefAtoms() void nsCSSAtoms::AddRefAtoms()
{ {
if (0 == gRefCnt) { if (0 == gRefCnt++) {
activePseudo = NS_NewAtom(":active"); // create atoms
afterPseudo = NS_NewAtom(":after"); #define CSS_ATOM(_name, _value) _name = NS_NewAtom(_value);
#include "nsCSSAtomList.h"
beforePseudo = NS_NewAtom(":before"); #undef CSS_ATOM
disabledPseudo = NS_NewAtom(":disabled");
dragOverPseudo = NS_NewAtom(":drag-over");
dragPseudo = NS_NewAtom(":drag");
enabledPseudo = NS_NewAtom(":enabled");
firstChildPseudo = NS_NewAtom(":first-child");
focusPseudo = NS_NewAtom(":focus");
hoverPseudo = NS_NewAtom(":hover");
langPseudo = NS_NewAtom(":lang");
linkPseudo = NS_NewAtom(":link");
outOfDatePseudo = NS_NewAtom(":out-of-date");
selectedPseudo = NS_NewAtom(":selected");
selectionPseudo = NS_NewAtom(":selection");
universalSelector = NS_NewAtom("*");
visitedPseudo = NS_NewAtom(":visited");
} }
++gRefCnt;
} }
void nsCSSAtoms::ReleaseAtoms() void nsCSSAtoms::ReleaseAtoms()
{ {
NS_PRECONDITION(gRefCnt != 0, "bad release atoms"); NS_PRECONDITION(gRefCnt != 0, "bad release atoms");
if (--gRefCnt == 0) { if (--gRefCnt == 0) {
NS_RELEASE(activePseudo); // release atoms
NS_RELEASE(afterPseudo); #define CSS_ATOM(_name, _value) NS_RELEASE(_name);
#include "nsCSSAtomList.h"
NS_RELEASE(beforePseudo); #undef CSS_ATOM
NS_RELEASE(disabledPseudo);
NS_RELEASE(dragOverPseudo);
NS_RELEASE(dragPseudo);
NS_RELEASE(enabledPseudo);
NS_RELEASE(firstChildPseudo);
NS_RELEASE(focusPseudo);
NS_RELEASE(hoverPseudo);
NS_RELEASE(langPseudo);
NS_RELEASE(linkPseudo);
NS_RELEASE(outOfDatePseudo);
NS_RELEASE(universalSelector);
NS_RELEASE(selectedPseudo);
NS_RELEASE(selectionPseudo);
NS_RELEASE(visitedPseudo);
} }
} }