2009-06-29 02:44:22 +04:00
|
|
|
/*
|
2017-04-11 17:43:54 +03:00
|
|
|
* Copyright (c) 2008-2017 Mozilla Foundation
|
2009-06-29 02:44:22 +04:00
|
|
|
*
|
2016-12-22 12:30:41 +03:00
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
|
|
* to deal in the Software without restriction, including without limitation
|
|
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
2009-06-29 02:44:22 +04:00
|
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
|
|
*
|
2016-12-22 12:30:41 +03:00
|
|
|
* The above copyright notice and this permission notice shall be included in
|
2009-06-29 02:44:22 +04:00
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
2016-12-22 12:30:41 +03:00
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
2009-06-29 02:44:22 +04:00
|
|
|
* DEALINGS IN THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* THIS IS A GENERATED FILE. PLEASE DO NOT EDIT.
|
|
|
|
* Please edit ElementName.java instead and regenerate.
|
|
|
|
*/
|
|
|
|
|
2013-08-23 19:07:10 +04:00
|
|
|
#ifndef nsHtml5ElementName_h
|
|
|
|
#define nsHtml5ElementName_h
|
2009-06-29 02:44:22 +04:00
|
|
|
|
2017-10-03 01:05:19 +03:00
|
|
|
#include "nsAtom.h"
|
2009-09-21 15:43:43 +04:00
|
|
|
#include "nsHtml5AtomTable.h"
|
2017-03-20 15:45:15 +03:00
|
|
|
#include "nsHtml5String.h"
|
2014-02-28 03:04:46 +04:00
|
|
|
#include "nsNameSpaceManager.h"
|
2009-06-29 02:44:22 +04:00
|
|
|
#include "nsIContent.h"
|
2014-03-05 23:38:49 +04:00
|
|
|
#include "nsTraceRefcnt.h"
|
2009-06-29 02:44:22 +04:00
|
|
|
#include "jArray.h"
|
|
|
|
#include "nsHtml5ArrayCopy.h"
|
2010-07-30 14:15:38 +04:00
|
|
|
#include "nsAHtml5TreeBuilderState.h"
|
2017-04-20 11:47:02 +03:00
|
|
|
#include "nsGkAtoms.h"
|
2009-06-29 02:44:22 +04:00
|
|
|
#include "nsHtml5ByteReadable.h"
|
2010-04-19 17:25:13 +04:00
|
|
|
#include "nsHtml5Macros.h"
|
2014-03-05 23:38:49 +04:00
|
|
|
#include "nsIContentHandle.h"
|
2017-04-20 10:34:32 +03:00
|
|
|
#include "nsHtml5Portability.h"
|
2017-07-04 11:00:03 +03:00
|
|
|
#include "nsHtml5ContentCreatorFunction.h"
|
2009-06-29 02:44:22 +04:00
|
|
|
|
2009-09-18 13:21:47 +04:00
|
|
|
class nsHtml5StreamParser;
|
2009-06-29 02:44:22 +04:00
|
|
|
|
2017-04-20 10:34:32 +03:00
|
|
|
class nsHtml5AttributeName;
|
2009-06-29 02:44:22 +04:00
|
|
|
class nsHtml5Tokenizer;
|
|
|
|
class nsHtml5TreeBuilder;
|
|
|
|
class nsHtml5MetaScanner;
|
|
|
|
class nsHtml5UTF16Buffer;
|
|
|
|
class nsHtml5StateSnapshot;
|
|
|
|
class nsHtml5Portability;
|
|
|
|
|
2018-11-30 13:46:48 +03:00
|
|
|
class nsHtml5ElementName {
|
|
|
|
public:
|
2017-04-20 10:34:32 +03:00
|
|
|
static const int32_t GROUP_MASK = 127;
|
|
|
|
|
|
|
|
static const int32_t NOT_INTERNED = (1 << 30);
|
|
|
|
|
|
|
|
static const int32_t SPECIAL = (1 << 29);
|
|
|
|
|
|
|
|
static const int32_t FOSTER_PARENTING = (1 << 28);
|
|
|
|
|
|
|
|
static const int32_t SCOPING = (1 << 27);
|
|
|
|
|
|
|
|
static const int32_t SCOPING_AS_SVG = (1 << 26);
|
|
|
|
|
|
|
|
static const int32_t SCOPING_AS_MATHML = (1 << 25);
|
|
|
|
|
|
|
|
static const int32_t HTML_INTEGRATION_POINT = (1 << 24);
|
|
|
|
|
|
|
|
static const int32_t OPTIONAL_END_TAG = (1 << 23);
|
|
|
|
|
2018-11-30 13:46:48 +03:00
|
|
|
private:
|
2018-11-09 16:27:10 +03:00
|
|
|
RefPtr<nsAtom> name;
|
|
|
|
RefPtr<nsAtom> camelCaseName;
|
2017-07-04 11:00:03 +03:00
|
|
|
mozilla::dom::HTMLContentCreatorFunction htmlCreator;
|
|
|
|
mozilla::dom::SVGContentCreatorFunction svgCreator;
|
2018-11-30 13:46:48 +03:00
|
|
|
|
|
|
|
public:
|
2017-04-12 13:21:03 +03:00
|
|
|
int32_t flags;
|
2017-10-03 01:05:19 +03:00
|
|
|
inline nsAtom* getName() { return name; }
|
2017-04-12 13:21:03 +03:00
|
|
|
|
2017-10-03 01:05:19 +03:00
|
|
|
inline nsAtom* getCamelCaseName() { return camelCaseName; }
|
2017-04-12 13:21:03 +03:00
|
|
|
|
2018-11-30 13:46:48 +03:00
|
|
|
inline mozilla::dom::HTMLContentCreatorFunction getHtmlCreator() {
|
2017-07-04 11:00:03 +03:00
|
|
|
return htmlCreator;
|
|
|
|
}
|
|
|
|
|
2018-11-30 13:46:48 +03:00
|
|
|
inline mozilla::dom::SVGContentCreatorFunction getSvgCreator() {
|
2017-07-04 11:00:03 +03:00
|
|
|
return svgCreator;
|
|
|
|
}
|
|
|
|
|
2017-04-12 13:21:03 +03:00
|
|
|
inline int32_t getFlags() { return flags; }
|
|
|
|
|
2017-04-20 10:34:32 +03:00
|
|
|
inline int32_t getGroup() { return flags & nsHtml5ElementName::GROUP_MASK; }
|
|
|
|
|
2018-11-30 13:46:48 +03:00
|
|
|
inline bool isInterned() {
|
2017-04-20 10:34:32 +03:00
|
|
|
return !(flags & nsHtml5ElementName::NOT_INTERNED);
|
2017-09-25 18:09:26 +03:00
|
|
|
}
|
2017-04-20 10:34:32 +03:00
|
|
|
|
2017-09-25 18:09:26 +03:00
|
|
|
inline static int32_t levelOrderBinarySearch(jArray<int32_t, int32_t> data,
|
2018-11-30 13:46:48 +03:00
|
|
|
int32_t key) {
|
2017-09-25 18:09:26 +03:00
|
|
|
int32_t n = data.length;
|
|
|
|
int32_t i = 0;
|
|
|
|
while (i < n) {
|
|
|
|
int32_t val = data[i];
|
|
|
|
if (val < key) {
|
|
|
|
i = 2 * i + 2;
|
|
|
|
} else if (val > key) {
|
|
|
|
i = 2 * i + 1;
|
|
|
|
} else {
|
|
|
|
return i;
|
2017-06-27 23:48:25 +03:00
|
|
|
}
|
2017-07-05 11:42:04 +03:00
|
|
|
}
|
2017-09-25 18:09:26 +03:00
|
|
|
return -1;
|
|
|
|
}
|
2017-06-27 23:48:25 +03:00
|
|
|
|
2018-11-30 13:46:48 +03:00
|
|
|
inline static nsHtml5ElementName* elementNameByBuffer(
|
|
|
|
char16_t* buf, int32_t length, nsHtml5AtomTable* interner) {
|
2017-09-25 18:09:26 +03:00
|
|
|
uint32_t hash = nsHtml5ElementName::bufToHash(buf, length);
|
|
|
|
jArray<int32_t, int32_t> hashes;
|
|
|
|
hashes = nsHtml5ElementName::ELEMENT_HASHES;
|
|
|
|
int32_t index = levelOrderBinarySearch(hashes, hash);
|
|
|
|
if (index < 0) {
|
|
|
|
return nullptr;
|
|
|
|
} else {
|
|
|
|
nsHtml5ElementName* elementName =
|
2018-11-30 13:46:48 +03:00
|
|
|
nsHtml5ElementName::ELEMENT_NAMES[index];
|
2017-10-03 01:05:19 +03:00
|
|
|
nsAtom* name = elementName->name;
|
2017-10-23 14:42:21 +03:00
|
|
|
if (!nsHtml5Portability::localEqualsBuffer(name, buf, length)) {
|
2017-04-20 10:34:32 +03:00
|
|
|
return nullptr;
|
|
|
|
}
|
2017-09-25 18:09:26 +03:00
|
|
|
return elementName;
|
|
|
|
}
|
2017-12-21 11:02:43 +03:00
|
|
|
}
|
2017-04-20 11:47:02 +03:00
|
|
|
|
2018-11-30 13:46:48 +03:00
|
|
|
private:
|
|
|
|
inline static uint32_t bufToHash(char16_t* buf, int32_t length) {
|
2017-12-21 11:02:43 +03:00
|
|
|
uint32_t len = length;
|
|
|
|
uint32_t first = buf[0];
|
|
|
|
first <<= 19;
|
|
|
|
uint32_t second = 1 << 23;
|
|
|
|
uint32_t third = 0;
|
|
|
|
uint32_t fourth = 0;
|
|
|
|
uint32_t fifth = 0;
|
|
|
|
if (length >= 4) {
|
|
|
|
second = buf[length - 4];
|
|
|
|
second <<= 4;
|
|
|
|
third = buf[length - 3];
|
|
|
|
third <<= 9;
|
|
|
|
fourth = buf[length - 2];
|
|
|
|
fourth <<= 14;
|
|
|
|
fifth = buf[length - 1];
|
|
|
|
fifth <<= 24;
|
|
|
|
} else if (length == 3) {
|
|
|
|
second = buf[1];
|
|
|
|
second <<= 4;
|
|
|
|
third = buf[2];
|
|
|
|
third <<= 9;
|
|
|
|
} else if (length == 2) {
|
|
|
|
second = buf[1];
|
|
|
|
second <<= 24;
|
2017-04-11 17:43:54 +03:00
|
|
|
}
|
2017-12-21 11:02:43 +03:00
|
|
|
return len + first + second + third + fourth + fifth;
|
|
|
|
}
|
2017-04-11 17:43:54 +03:00
|
|
|
|
2018-11-30 13:46:48 +03:00
|
|
|
nsHtml5ElementName(nsAtom* name, nsAtom* camelCaseName,
|
2017-12-21 11:02:43 +03:00
|
|
|
mozilla::dom::HTMLContentCreatorFunction htmlCreator,
|
|
|
|
mozilla::dom::SVGContentCreatorFunction svgCreator,
|
|
|
|
int32_t flags);
|
|
|
|
|
2018-11-30 13:46:48 +03:00
|
|
|
public:
|
2017-12-21 11:02:43 +03:00
|
|
|
nsHtml5ElementName();
|
|
|
|
~nsHtml5ElementName();
|
2018-11-30 13:46:48 +03:00
|
|
|
inline void setNameForNonInterned(nsAtom* name, bool custom) {
|
2017-12-21 11:02:43 +03:00
|
|
|
this->name = name;
|
|
|
|
this->camelCaseName = name;
|
|
|
|
if (custom) {
|
|
|
|
this->htmlCreator = NS_NewCustomElement;
|
|
|
|
} else {
|
|
|
|
this->htmlCreator = NS_NewHTMLUnknownElement;
|
2017-04-20 10:34:32 +03:00
|
|
|
}
|
2017-12-21 11:02:43 +03:00
|
|
|
MOZ_ASSERT(this->flags == nsHtml5ElementName::NOT_INTERNED);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline bool isCustom() { return this->htmlCreator == NS_NewCustomElement; }
|
|
|
|
|
|
|
|
static nsHtml5ElementName* ELT_ANNOTATION_XML;
|
|
|
|
static nsHtml5ElementName* ELT_BIG;
|
2018-03-16 18:26:09 +03:00
|
|
|
static nsHtml5ElementName* ELT_BDI;
|
2017-12-21 11:02:43 +03:00
|
|
|
static nsHtml5ElementName* ELT_BDO;
|
|
|
|
static nsHtml5ElementName* ELT_COL;
|
|
|
|
static nsHtml5ElementName* ELT_DEL;
|
|
|
|
static nsHtml5ElementName* ELT_DFN;
|
|
|
|
static nsHtml5ElementName* ELT_DIR;
|
|
|
|
static nsHtml5ElementName* ELT_DIV;
|
|
|
|
static nsHtml5ElementName* ELT_IMG;
|
|
|
|
static nsHtml5ElementName* ELT_INS;
|
|
|
|
static nsHtml5ElementName* ELT_KBD;
|
|
|
|
static nsHtml5ElementName* ELT_MAP;
|
|
|
|
static nsHtml5ElementName* ELT_NAV;
|
|
|
|
static nsHtml5ElementName* ELT_PRE;
|
|
|
|
static nsHtml5ElementName* ELT_A;
|
|
|
|
static nsHtml5ElementName* ELT_B;
|
|
|
|
static nsHtml5ElementName* ELT_RTC;
|
|
|
|
static nsHtml5ElementName* ELT_SUB;
|
|
|
|
static nsHtml5ElementName* ELT_SVG;
|
|
|
|
static nsHtml5ElementName* ELT_SUP;
|
|
|
|
static nsHtml5ElementName* ELT_SET;
|
|
|
|
static nsHtml5ElementName* ELT_USE;
|
|
|
|
static nsHtml5ElementName* ELT_VAR;
|
|
|
|
static nsHtml5ElementName* ELT_G;
|
|
|
|
static nsHtml5ElementName* ELT_WBR;
|
|
|
|
static nsHtml5ElementName* ELT_XMP;
|
|
|
|
static nsHtml5ElementName* ELT_I;
|
|
|
|
static nsHtml5ElementName* ELT_P;
|
|
|
|
static nsHtml5ElementName* ELT_Q;
|
|
|
|
static nsHtml5ElementName* ELT_S;
|
|
|
|
static nsHtml5ElementName* ELT_U;
|
|
|
|
static nsHtml5ElementName* ELT_H1;
|
|
|
|
static nsHtml5ElementName* ELT_H2;
|
|
|
|
static nsHtml5ElementName* ELT_H3;
|
|
|
|
static nsHtml5ElementName* ELT_H4;
|
|
|
|
static nsHtml5ElementName* ELT_H5;
|
|
|
|
static nsHtml5ElementName* ELT_H6;
|
|
|
|
static nsHtml5ElementName* ELT_AREA;
|
|
|
|
static nsHtml5ElementName* ELT_DATA;
|
|
|
|
static nsHtml5ElementName* ELT_FEFUNCA;
|
|
|
|
static nsHtml5ElementName* ELT_METADATA;
|
|
|
|
static nsHtml5ElementName* ELT_META;
|
|
|
|
static nsHtml5ElementName* ELT_TEXTAREA;
|
|
|
|
static nsHtml5ElementName* ELT_FEFUNCB;
|
|
|
|
static nsHtml5ElementName* ELT_RB;
|
|
|
|
static nsHtml5ElementName* ELT_DESC;
|
|
|
|
static nsHtml5ElementName* ELT_DD;
|
|
|
|
static nsHtml5ElementName* ELT_BGSOUND;
|
|
|
|
static nsHtml5ElementName* ELT_EMBED;
|
|
|
|
static nsHtml5ElementName* ELT_FEBLEND;
|
|
|
|
static nsHtml5ElementName* ELT_FEFLOOD;
|
|
|
|
static nsHtml5ElementName* ELT_HEAD;
|
|
|
|
static nsHtml5ElementName* ELT_LEGEND;
|
|
|
|
static nsHtml5ElementName* ELT_NOEMBED;
|
|
|
|
static nsHtml5ElementName* ELT_TD;
|
|
|
|
static nsHtml5ElementName* ELT_THEAD;
|
|
|
|
static nsHtml5ElementName* ELT_ASIDE;
|
|
|
|
static nsHtml5ElementName* ELT_ARTICLE;
|
|
|
|
static nsHtml5ElementName* ELT_ANIMATE;
|
|
|
|
static nsHtml5ElementName* ELT_BASE;
|
|
|
|
static nsHtml5ElementName* ELT_BLOCKQUOTE;
|
|
|
|
static nsHtml5ElementName* ELT_CODE;
|
|
|
|
static nsHtml5ElementName* ELT_CIRCLE;
|
|
|
|
static nsHtml5ElementName* ELT_CITE;
|
|
|
|
static nsHtml5ElementName* ELT_ELLIPSE;
|
|
|
|
static nsHtml5ElementName* ELT_FETURBULENCE;
|
|
|
|
static nsHtml5ElementName* ELT_FEMERGENODE;
|
|
|
|
static nsHtml5ElementName* ELT_FEIMAGE;
|
|
|
|
static nsHtml5ElementName* ELT_FEMERGE;
|
|
|
|
static nsHtml5ElementName* ELT_FETILE;
|
|
|
|
static nsHtml5ElementName* ELT_FRAME;
|
|
|
|
static nsHtml5ElementName* ELT_FIGURE;
|
|
|
|
static nsHtml5ElementName* ELT_FECOMPOSITE;
|
|
|
|
static nsHtml5ElementName* ELT_IMAGE;
|
|
|
|
static nsHtml5ElementName* ELT_IFRAME;
|
|
|
|
static nsHtml5ElementName* ELT_LINE;
|
|
|
|
static nsHtml5ElementName* ELT_MARQUEE;
|
|
|
|
static nsHtml5ElementName* ELT_POLYLINE;
|
|
|
|
static nsHtml5ElementName* ELT_PICTURE;
|
|
|
|
static nsHtml5ElementName* ELT_SOURCE;
|
|
|
|
static nsHtml5ElementName* ELT_STRIKE;
|
|
|
|
static nsHtml5ElementName* ELT_STYLE;
|
|
|
|
static nsHtml5ElementName* ELT_TABLE;
|
|
|
|
static nsHtml5ElementName* ELT_TITLE;
|
|
|
|
static nsHtml5ElementName* ELT_TIME;
|
|
|
|
static nsHtml5ElementName* ELT_TEMPLATE;
|
|
|
|
static nsHtml5ElementName* ELT_ALTGLYPHDEF;
|
|
|
|
static nsHtml5ElementName* ELT_GLYPHREF;
|
|
|
|
static nsHtml5ElementName* ELT_DIALOG;
|
|
|
|
static nsHtml5ElementName* ELT_FEFUNCG;
|
|
|
|
static nsHtml5ElementName* ELT_FEDIFFUSELIGHTING;
|
|
|
|
static nsHtml5ElementName* ELT_FESPECULARLIGHTING;
|
|
|
|
static nsHtml5ElementName* ELT_LISTING;
|
|
|
|
static nsHtml5ElementName* ELT_STRONG;
|
|
|
|
static nsHtml5ElementName* ELT_ALTGLYPH;
|
|
|
|
static nsHtml5ElementName* ELT_CLIPPATH;
|
|
|
|
static nsHtml5ElementName* ELT_MGLYPH;
|
|
|
|
static nsHtml5ElementName* ELT_MATH;
|
|
|
|
static nsHtml5ElementName* ELT_MPATH;
|
|
|
|
static nsHtml5ElementName* ELT_PATH;
|
|
|
|
static nsHtml5ElementName* ELT_TH;
|
|
|
|
static nsHtml5ElementName* ELT_SWITCH;
|
|
|
|
static nsHtml5ElementName* ELT_TEXTPATH;
|
|
|
|
static nsHtml5ElementName* ELT_LI;
|
|
|
|
static nsHtml5ElementName* ELT_MI;
|
|
|
|
static nsHtml5ElementName* ELT_LINK;
|
|
|
|
static nsHtml5ElementName* ELT_MARK;
|
|
|
|
static nsHtml5ElementName* ELT_MALIGNMARK;
|
|
|
|
static nsHtml5ElementName* ELT_MASK;
|
|
|
|
static nsHtml5ElementName* ELT_TRACK;
|
|
|
|
static nsHtml5ElementName* ELT_DL;
|
|
|
|
static nsHtml5ElementName* ELT_HTML;
|
|
|
|
static nsHtml5ElementName* ELT_OL;
|
|
|
|
static nsHtml5ElementName* ELT_LABEL;
|
|
|
|
static nsHtml5ElementName* ELT_UL;
|
|
|
|
static nsHtml5ElementName* ELT_SMALL;
|
|
|
|
static nsHtml5ElementName* ELT_SYMBOL;
|
|
|
|
static nsHtml5ElementName* ELT_ALTGLYPHITEM;
|
|
|
|
static nsHtml5ElementName* ELT_ANIMATETRANSFORM;
|
|
|
|
static nsHtml5ElementName* ELT_ACRONYM;
|
|
|
|
static nsHtml5ElementName* ELT_EM;
|
|
|
|
static nsHtml5ElementName* ELT_FORM;
|
|
|
|
static nsHtml5ElementName* ELT_MENUITEM;
|
|
|
|
static nsHtml5ElementName* ELT_PARAM;
|
|
|
|
static nsHtml5ElementName* ELT_ANIMATEMOTION;
|
|
|
|
static nsHtml5ElementName* ELT_BUTTON;
|
|
|
|
static nsHtml5ElementName* ELT_CAPTION;
|
|
|
|
static nsHtml5ElementName* ELT_FIGCAPTION;
|
|
|
|
static nsHtml5ElementName* ELT_MN;
|
|
|
|
static nsHtml5ElementName* ELT_KEYGEN;
|
|
|
|
static nsHtml5ElementName* ELT_MAIN;
|
|
|
|
static nsHtml5ElementName* ELT_OPTION;
|
|
|
|
static nsHtml5ElementName* ELT_POLYGON;
|
|
|
|
static nsHtml5ElementName* ELT_PATTERN;
|
|
|
|
static nsHtml5ElementName* ELT_SPAN;
|
|
|
|
static nsHtml5ElementName* ELT_SECTION;
|
|
|
|
static nsHtml5ElementName* ELT_TSPAN;
|
|
|
|
static nsHtml5ElementName* ELT_AUDIO;
|
|
|
|
static nsHtml5ElementName* ELT_MO;
|
|
|
|
static nsHtml5ElementName* ELT_VIDEO;
|
|
|
|
static nsHtml5ElementName* ELT_COLGROUP;
|
|
|
|
static nsHtml5ElementName* ELT_FEDISPLACEMENTMAP;
|
|
|
|
static nsHtml5ElementName* ELT_HGROUP;
|
|
|
|
static nsHtml5ElementName* ELT_RP;
|
|
|
|
static nsHtml5ElementName* ELT_OPTGROUP;
|
|
|
|
static nsHtml5ElementName* ELT_SAMP;
|
|
|
|
static nsHtml5ElementName* ELT_STOP;
|
|
|
|
static nsHtml5ElementName* ELT_BR;
|
|
|
|
static nsHtml5ElementName* ELT_ABBR;
|
|
|
|
static nsHtml5ElementName* ELT_ANIMATECOLOR;
|
|
|
|
static nsHtml5ElementName* ELT_CENTER;
|
|
|
|
static nsHtml5ElementName* ELT_HR;
|
|
|
|
static nsHtml5ElementName* ELT_FEFUNCR;
|
|
|
|
static nsHtml5ElementName* ELT_FECOMPONENTTRANSFER;
|
|
|
|
static nsHtml5ElementName* ELT_FILTER;
|
|
|
|
static nsHtml5ElementName* ELT_FOOTER;
|
|
|
|
static nsHtml5ElementName* ELT_FEGAUSSIANBLUR;
|
|
|
|
static nsHtml5ElementName* ELT_HEADER;
|
|
|
|
static nsHtml5ElementName* ELT_MARKER;
|
|
|
|
static nsHtml5ElementName* ELT_METER;
|
|
|
|
static nsHtml5ElementName* ELT_NOBR;
|
|
|
|
static nsHtml5ElementName* ELT_TR;
|
|
|
|
static nsHtml5ElementName* ELT_ADDRESS;
|
|
|
|
static nsHtml5ElementName* ELT_CANVAS;
|
|
|
|
static nsHtml5ElementName* ELT_DEFS;
|
|
|
|
static nsHtml5ElementName* ELT_DETAILS;
|
|
|
|
static nsHtml5ElementName* ELT_MS;
|
|
|
|
static nsHtml5ElementName* ELT_NOFRAMES;
|
|
|
|
static nsHtml5ElementName* ELT_PROGRESS;
|
|
|
|
static nsHtml5ElementName* ELT_DT;
|
|
|
|
static nsHtml5ElementName* ELT_APPLET;
|
|
|
|
static nsHtml5ElementName* ELT_BASEFONT;
|
|
|
|
static nsHtml5ElementName* ELT_DATALIST;
|
|
|
|
static nsHtml5ElementName* ELT_FOREIGNOBJECT;
|
|
|
|
static nsHtml5ElementName* ELT_FIELDSET;
|
|
|
|
static nsHtml5ElementName* ELT_FRAMESET;
|
|
|
|
static nsHtml5ElementName* ELT_FEOFFSET;
|
|
|
|
static nsHtml5ElementName* ELT_FESPOTLIGHT;
|
|
|
|
static nsHtml5ElementName* ELT_FEPOINTLIGHT;
|
|
|
|
static nsHtml5ElementName* ELT_FEDISTANTLIGHT;
|
|
|
|
static nsHtml5ElementName* ELT_FONT;
|
|
|
|
static nsHtml5ElementName* ELT_INPUT;
|
|
|
|
static nsHtml5ElementName* ELT_LINEARGRADIENT;
|
|
|
|
static nsHtml5ElementName* ELT_MTEXT;
|
|
|
|
static nsHtml5ElementName* ELT_NOSCRIPT;
|
|
|
|
static nsHtml5ElementName* ELT_RT;
|
|
|
|
static nsHtml5ElementName* ELT_OBJECT;
|
|
|
|
static nsHtml5ElementName* ELT_OUTPUT;
|
|
|
|
static nsHtml5ElementName* ELT_PLAINTEXT;
|
|
|
|
static nsHtml5ElementName* ELT_TT;
|
|
|
|
static nsHtml5ElementName* ELT_RECT;
|
|
|
|
static nsHtml5ElementName* ELT_RADIALGRADIENT;
|
|
|
|
static nsHtml5ElementName* ELT_SELECT;
|
|
|
|
static nsHtml5ElementName* ELT_SLOT;
|
|
|
|
static nsHtml5ElementName* ELT_SCRIPT;
|
|
|
|
static nsHtml5ElementName* ELT_TFOOT;
|
|
|
|
static nsHtml5ElementName* ELT_TEXT;
|
|
|
|
static nsHtml5ElementName* ELT_MENU;
|
|
|
|
static nsHtml5ElementName* ELT_FEDROPSHADOW;
|
|
|
|
static nsHtml5ElementName* ELT_VIEW;
|
|
|
|
static nsHtml5ElementName* ELT_FECOLORMATRIX;
|
|
|
|
static nsHtml5ElementName* ELT_FECONVOLVEMATRIX;
|
|
|
|
static nsHtml5ElementName* ELT_BODY;
|
|
|
|
static nsHtml5ElementName* ELT_FEMORPHOLOGY;
|
|
|
|
static nsHtml5ElementName* ELT_RUBY;
|
|
|
|
static nsHtml5ElementName* ELT_SUMMARY;
|
|
|
|
static nsHtml5ElementName* ELT_TBODY;
|
2018-11-30 13:46:48 +03:00
|
|
|
|
|
|
|
private:
|
2017-12-21 11:02:43 +03:00
|
|
|
static nsHtml5ElementName** ELEMENT_NAMES;
|
|
|
|
static staticJArray<int32_t, int32_t> ELEMENT_HASHES;
|
2018-11-30 13:46:48 +03:00
|
|
|
|
|
|
|
public:
|
2017-12-21 11:02:43 +03:00
|
|
|
static void initializeStatics();
|
|
|
|
static void releaseStatics();
|
2009-06-29 02:44:22 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|