Bug 1845715 - Check for failure when getting RegExp match result template r=iain
[gecko.git] / parser / html / nsHtml5AttributeName.h
blobe00e5f618436f42d3b2d27deafbb3724e10ac644
1 /*
2 * Copyright (c) 2008-2017 Mozilla Foundation
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE.
24 * THIS IS A GENERATED FILE. PLEASE DO NOT EDIT.
25 * Please edit AttributeName.java instead and regenerate.
28 #ifndef nsHtml5AttributeName_h
29 #define nsHtml5AttributeName_h
31 #include "nsAtom.h"
32 #include "nsHtml5AtomTable.h"
33 #include "nsHtml5String.h"
34 #include "nsNameSpaceManager.h"
35 #include "nsIContent.h"
36 #include "nsTraceRefcnt.h"
37 #include "jArray.h"
38 #include "nsHtml5ArrayCopy.h"
39 #include "nsAHtml5TreeBuilderState.h"
40 #include "nsGkAtoms.h"
41 #include "nsHtml5ByteReadable.h"
42 #include "nsHtml5Macros.h"
43 #include "nsIContentHandle.h"
44 #include "nsHtml5Portability.h"
45 #include "nsHtml5ContentCreatorFunction.h"
47 class nsHtml5StreamParser;
49 class nsHtml5ElementName;
50 class nsHtml5Tokenizer;
51 class nsHtml5TreeBuilder;
52 class nsHtml5UTF16Buffer;
53 class nsHtml5StateSnapshot;
54 class nsHtml5Portability;
56 class nsHtml5AttributeName {
57 public:
58 static int32_t* ALL_NO_NS;
60 private:
61 static int32_t* XMLNS_NS;
62 static int32_t* XML_NS;
63 static int32_t* XLINK_NS;
65 public:
66 static nsStaticAtom** ALL_NO_PREFIX;
68 private:
69 static nsStaticAtom** XMLNS_PREFIX;
70 static nsStaticAtom** XLINK_PREFIX;
71 static nsStaticAtom** XML_PREFIX;
72 static RefPtr<nsAtom>* SVG_DIFFERENT(nsAtom* name, nsAtom* camel);
73 static RefPtr<nsAtom>* MATH_DIFFERENT(nsAtom* name, nsAtom* camel);
74 static RefPtr<nsAtom>* COLONIFIED_LOCAL(nsAtom* name, nsAtom* suffix);
76 public:
77 static RefPtr<nsAtom>* SAME_LOCAL(nsAtom* name);
78 inline static int32_t levelOrderBinarySearch(jArray<int32_t, int32_t> data,
79 int32_t key) {
80 int32_t n = data.length;
81 int32_t i = 0;
82 while (i < n) {
83 int32_t val = data[i];
84 if (val < key) {
85 i = 2 * i + 2;
86 } else if (val > key) {
87 i = 2 * i + 1;
88 } else {
89 return i;
92 return -1;
95 inline static nsHtml5AttributeName* nameByBuffer(char16_t* buf,
96 int32_t length,
97 nsHtml5AtomTable* interner) {
98 uint32_t hash = nsHtml5AttributeName::bufToHash(buf, length);
99 jArray<int32_t, int32_t> hashes;
100 hashes = nsHtml5AttributeName::ATTRIBUTE_HASHES;
101 int32_t index = levelOrderBinarySearch(hashes, hash);
102 if (index < 0) {
103 return nullptr;
105 nsHtml5AttributeName* attributeName =
106 nsHtml5AttributeName::ATTRIBUTE_NAMES[index];
107 nsAtom* name = attributeName->getLocal(0);
108 if (!nsHtml5Portability::localEqualsBuffer(name, buf, length)) {
109 return nullptr;
111 return attributeName;
114 private:
115 inline static uint32_t bufToHash(char16_t* buf, int32_t length) {
116 uint32_t len = length;
117 uint32_t first = buf[0];
118 first <<= 19;
119 uint32_t second = 1 << 23;
120 uint32_t third = 0;
121 uint32_t fourth = 0;
122 uint32_t fifth = 0;
123 uint32_t sixth = 0;
124 if (length >= 4) {
125 second = buf[length - 4];
126 second <<= 4;
127 third = buf[1];
128 third <<= 9;
129 fourth = buf[length - 2];
130 fourth <<= 14;
131 fifth = buf[3];
132 fifth <<= 24;
133 sixth = buf[length - 1];
134 sixth <<= 11;
135 } else if (length == 3) {
136 second = buf[1];
137 second <<= 4;
138 third = buf[2];
139 third <<= 9;
140 } else if (length == 2) {
141 second = buf[1];
142 second <<= 24;
144 return len + first + second + third + fourth + fifth + sixth;
147 public:
148 static const int32_t HTML = 0;
150 static const int32_t MATHML = 1;
152 static const int32_t SVG = 2;
154 private:
155 int32_t* uri;
156 RefPtr<nsAtom>* local;
157 nsStaticAtom** prefix;
158 bool custom;
159 nsHtml5AttributeName(int32_t* uri, RefPtr<nsAtom>* local,
160 nsStaticAtom** prefix);
162 public:
163 nsHtml5AttributeName();
164 inline bool isInterned() { return !custom; }
166 inline void setNameForNonInterned(nsAtom* name) {
167 MOZ_ASSERT(custom);
168 local[0] = name;
169 local[1] = name;
170 local[2] = name;
173 static nsHtml5AttributeName* createAttributeName(nsAtom* name);
174 ~nsHtml5AttributeName();
175 int32_t getUri(int32_t mode);
176 nsAtom* getLocal(int32_t mode);
177 nsStaticAtom* getPrefix(int32_t mode);
178 bool equalsAnother(nsHtml5AttributeName* another);
179 static nsHtml5AttributeName* ATTR_ALT;
180 static nsHtml5AttributeName* ATTR_DIR;
181 static nsHtml5AttributeName* ATTR_DUR;
182 static nsHtml5AttributeName* ATTR_END;
183 static nsHtml5AttributeName* ATTR_FOR;
184 static nsHtml5AttributeName* ATTR_IN2;
185 static nsHtml5AttributeName* ATTR_LOW;
186 static nsHtml5AttributeName* ATTR_MIN;
187 static nsHtml5AttributeName* ATTR_MAX;
188 static nsHtml5AttributeName* ATTR_REL;
189 static nsHtml5AttributeName* ATTR_REV;
190 static nsHtml5AttributeName* ATTR_SRC;
191 static nsHtml5AttributeName* ATTR_D;
192 static nsHtml5AttributeName* ATTR_R;
193 static nsHtml5AttributeName* ATTR_X;
194 static nsHtml5AttributeName* ATTR_Y;
195 static nsHtml5AttributeName* ATTR_Z;
196 static nsHtml5AttributeName* ATTR_K1;
197 static nsHtml5AttributeName* ATTR_X1;
198 static nsHtml5AttributeName* ATTR_Y1;
199 static nsHtml5AttributeName* ATTR_K2;
200 static nsHtml5AttributeName* ATTR_X2;
201 static nsHtml5AttributeName* ATTR_Y2;
202 static nsHtml5AttributeName* ATTR_K3;
203 static nsHtml5AttributeName* ATTR_K4;
204 static nsHtml5AttributeName* ATTR_XML_SPACE;
205 static nsHtml5AttributeName* ATTR_XML_LANG;
206 static nsHtml5AttributeName* ATTR_ARIA_GRAB;
207 static nsHtml5AttributeName* ATTR_ARIA_VALUEMAX;
208 static nsHtml5AttributeName* ATTR_ARIA_LABELLEDBY;
209 static nsHtml5AttributeName* ATTR_ARIA_DESCRIBEDBY;
210 static nsHtml5AttributeName* ATTR_ARIA_DISABLED;
211 static nsHtml5AttributeName* ATTR_ARIA_CHECKED;
212 static nsHtml5AttributeName* ATTR_ARIA_SELECTED;
213 static nsHtml5AttributeName* ATTR_ARIA_DROPEFFECT;
214 static nsHtml5AttributeName* ATTR_ARIA_REQUIRED;
215 static nsHtml5AttributeName* ATTR_ARIA_EXPANDED;
216 static nsHtml5AttributeName* ATTR_ARIA_PRESSED;
217 static nsHtml5AttributeName* ATTR_ARIA_LEVEL;
218 static nsHtml5AttributeName* ATTR_ARIA_CHANNEL;
219 static nsHtml5AttributeName* ATTR_ARIA_HIDDEN;
220 static nsHtml5AttributeName* ATTR_ARIA_SECRET;
221 static nsHtml5AttributeName* ATTR_ARIA_POSINSET;
222 static nsHtml5AttributeName* ATTR_ARIA_ATOMIC;
223 static nsHtml5AttributeName* ATTR_ARIA_INVALID;
224 static nsHtml5AttributeName* ATTR_ARIA_TEMPLATEID;
225 static nsHtml5AttributeName* ATTR_ARIA_VALUEMIN;
226 static nsHtml5AttributeName* ATTR_ARIA_MULTISELECTABLE;
227 static nsHtml5AttributeName* ATTR_ARIA_CONTROLS;
228 static nsHtml5AttributeName* ATTR_ARIA_MULTILINE;
229 static nsHtml5AttributeName* ATTR_ARIA_READONLY;
230 static nsHtml5AttributeName* ATTR_ARIA_OWNS;
231 static nsHtml5AttributeName* ATTR_ARIA_ACTIVEDESCENDANT;
232 static nsHtml5AttributeName* ATTR_ARIA_RELEVANT;
233 static nsHtml5AttributeName* ATTR_ARIA_DATATYPE;
234 static nsHtml5AttributeName* ATTR_ARIA_VALUENOW;
235 static nsHtml5AttributeName* ATTR_ARIA_SORT;
236 static nsHtml5AttributeName* ATTR_ARIA_AUTOCOMPLETE;
237 static nsHtml5AttributeName* ATTR_ARIA_FLOWTO;
238 static nsHtml5AttributeName* ATTR_ARIA_BUSY;
239 static nsHtml5AttributeName* ATTR_ARIA_LIVE;
240 static nsHtml5AttributeName* ATTR_ARIA_HASPOPUP;
241 static nsHtml5AttributeName* ATTR_ARIA_SETSIZE;
242 static nsHtml5AttributeName* ATTR_CLEAR;
243 static nsHtml5AttributeName* ATTR_DISABLED;
244 static nsHtml5AttributeName* ATTR_DEFAULT;
245 static nsHtml5AttributeName* ATTR_DATA;
246 static nsHtml5AttributeName* ATTR_EQUALCOLUMNS;
247 static nsHtml5AttributeName* ATTR_EQUALROWS;
248 static nsHtml5AttributeName* ATTR_HSPACE;
249 static nsHtml5AttributeName* ATTR_ISMAP;
250 static nsHtml5AttributeName* ATTR_LOCAL;
251 static nsHtml5AttributeName* ATTR_LSPACE;
252 static nsHtml5AttributeName* ATTR_MOVABLELIMITS;
253 static nsHtml5AttributeName* ATTR_NOTATION;
254 static nsHtml5AttributeName* ATTR_ONDATAAVAILABLE;
255 static nsHtml5AttributeName* ATTR_ONPASTE;
256 static nsHtml5AttributeName* ATTR_RSPACE;
257 static nsHtml5AttributeName* ATTR_ROWALIGN;
258 static nsHtml5AttributeName* ATTR_ROTATE;
259 static nsHtml5AttributeName* ATTR_SEPARATOR;
260 static nsHtml5AttributeName* ATTR_SEPARATORS;
261 static nsHtml5AttributeName* ATTR_VSPACE;
262 static nsHtml5AttributeName* ATTR_XCHANNELSELECTOR;
263 static nsHtml5AttributeName* ATTR_YCHANNELSELECTOR;
264 static nsHtml5AttributeName* ATTR_ENABLE_BACKGROUND;
265 static nsHtml5AttributeName* ATTR_ONDBLCLICK;
266 static nsHtml5AttributeName* ATTR_ONABORT;
267 static nsHtml5AttributeName* ATTR_CALCMODE;
268 static nsHtml5AttributeName* ATTR_CHECKED;
269 static nsHtml5AttributeName* ATTR_FENCE;
270 static nsHtml5AttributeName* ATTR_FETCHPRIORITY;
271 static nsHtml5AttributeName* ATTR_NONCE;
272 static nsHtml5AttributeName* ATTR_ONSCROLL;
273 static nsHtml5AttributeName* ATTR_ONACTIVATE;
274 static nsHtml5AttributeName* ATTR_OPACITY;
275 static nsHtml5AttributeName* ATTR_SPACING;
276 static nsHtml5AttributeName* ATTR_SPECULAREXPONENT;
277 static nsHtml5AttributeName* ATTR_SPECULARCONSTANT;
278 static nsHtml5AttributeName* ATTR_BORDER;
279 static nsHtml5AttributeName* ATTR_ID;
280 static nsHtml5AttributeName* ATTR_GRADIENTTRANSFORM;
281 static nsHtml5AttributeName* ATTR_GRADIENTUNITS;
282 static nsHtml5AttributeName* ATTR_HIDDEN;
283 static nsHtml5AttributeName* ATTR_HEADERS;
284 static nsHtml5AttributeName* ATTR_LOADING;
285 static nsHtml5AttributeName* ATTR_READONLY;
286 static nsHtml5AttributeName* ATTR_RENDERING_INTENT;
287 static nsHtml5AttributeName* ATTR_SEED;
288 static nsHtml5AttributeName* ATTR_SRCDOC;
289 static nsHtml5AttributeName* ATTR_STDDEVIATION;
290 static nsHtml5AttributeName* ATTR_SANDBOX;
291 static nsHtml5AttributeName* ATTR_WORD_SPACING;
292 static nsHtml5AttributeName* ATTR_ACCENTUNDER;
293 static nsHtml5AttributeName* ATTR_ACCEPT_CHARSET;
294 static nsHtml5AttributeName* ATTR_ACCESSKEY;
295 static nsHtml5AttributeName* ATTR_ACCENT;
296 static nsHtml5AttributeName* ATTR_ACCEPT;
297 static nsHtml5AttributeName* ATTR_BEVELLED;
298 static nsHtml5AttributeName* ATTR_BASEFREQUENCY;
299 static nsHtml5AttributeName* ATTR_BASELINE_SHIFT;
300 static nsHtml5AttributeName* ATTR_BASEPROFILE;
301 static nsHtml5AttributeName* ATTR_BASELINE;
302 static nsHtml5AttributeName* ATTR_BASE;
303 static nsHtml5AttributeName* ATTR_CODE;
304 static nsHtml5AttributeName* ATTR_CODETYPE;
305 static nsHtml5AttributeName* ATTR_CODEBASE;
306 static nsHtml5AttributeName* ATTR_CITE;
307 static nsHtml5AttributeName* ATTR_DEFER;
308 static nsHtml5AttributeName* ATTR_DATETIME;
309 static nsHtml5AttributeName* ATTR_DIRECTION;
310 static nsHtml5AttributeName* ATTR_EDGEMODE;
311 static nsHtml5AttributeName* ATTR_EDGE;
312 static nsHtml5AttributeName* ATTR_ENTERKEYHINT;
313 static nsHtml5AttributeName* ATTR_FACE;
314 static nsHtml5AttributeName* ATTR_INDEX;
315 static nsHtml5AttributeName* ATTR_INTERCEPT;
316 static nsHtml5AttributeName* ATTR_INTEGRITY;
317 static nsHtml5AttributeName* ATTR_LINEBREAK;
318 static nsHtml5AttributeName* ATTR_LABEL;
319 static nsHtml5AttributeName* ATTR_LINETHICKNESS;
320 static nsHtml5AttributeName* ATTR_MODE;
321 static nsHtml5AttributeName* ATTR_NAME;
322 static nsHtml5AttributeName* ATTR_NORESIZE;
323 static nsHtml5AttributeName* ATTR_ONBEFOREUNLOAD;
324 static nsHtml5AttributeName* ATTR_ONREPEAT;
325 static nsHtml5AttributeName* ATTR_OBJECT;
326 static nsHtml5AttributeName* ATTR_ONSELECT;
327 static nsHtml5AttributeName* ATTR_ORDER;
328 static nsHtml5AttributeName* ATTR_OTHER;
329 static nsHtml5AttributeName* ATTR_ONRESET;
330 static nsHtml5AttributeName* ATTR_ONREADYSTATECHANGE;
331 static nsHtml5AttributeName* ATTR_ONMESSAGE;
332 static nsHtml5AttributeName* ATTR_ONBEGIN;
333 static nsHtml5AttributeName* ATTR_ONBEFOREPRINT;
334 static nsHtml5AttributeName* ATTR_ORIENT;
335 static nsHtml5AttributeName* ATTR_ORIENTATION;
336 static nsHtml5AttributeName* ATTR_ONBEFORECOPY;
337 static nsHtml5AttributeName* ATTR_ONSELECTSTART;
338 static nsHtml5AttributeName* ATTR_ONBEFOREPASTE;
339 static nsHtml5AttributeName* ATTR_ONKEYPRESS;
340 static nsHtml5AttributeName* ATTR_ONKEYUP;
341 static nsHtml5AttributeName* ATTR_ONBEFORECUT;
342 static nsHtml5AttributeName* ATTR_ONKEYDOWN;
343 static nsHtml5AttributeName* ATTR_ONRESIZE;
344 static nsHtml5AttributeName* ATTR_REPEAT;
345 static nsHtml5AttributeName* ATTR_REFERRERPOLICY;
346 static nsHtml5AttributeName* ATTR_RULES;
347 static nsHtml5AttributeName* ATTR_ROLE;
348 static nsHtml5AttributeName* ATTR_REPEATCOUNT;
349 static nsHtml5AttributeName* ATTR_REPEATDUR;
350 static nsHtml5AttributeName* ATTR_SELECTED;
351 static nsHtml5AttributeName* ATTR_SIZES;
352 static nsHtml5AttributeName* ATTR_SUPERSCRIPTSHIFT;
353 static nsHtml5AttributeName* ATTR_STRETCHY;
354 static nsHtml5AttributeName* ATTR_SCHEME;
355 static nsHtml5AttributeName* ATTR_SPREADMETHOD;
356 static nsHtml5AttributeName* ATTR_SELECTION;
357 static nsHtml5AttributeName* ATTR_SIZE;
358 static nsHtml5AttributeName* ATTR_TYPE;
359 static nsHtml5AttributeName* ATTR_DIFFUSECONSTANT;
360 static nsHtml5AttributeName* ATTR_HREF;
361 static nsHtml5AttributeName* ATTR_HREFLANG;
362 static nsHtml5AttributeName* ATTR_ONAFTERPRINT;
363 static nsHtml5AttributeName* ATTR_PROFILE;
364 static nsHtml5AttributeName* ATTR_SURFACESCALE;
365 static nsHtml5AttributeName* ATTR_XREF;
366 static nsHtml5AttributeName* ATTR_ALIGN;
367 static nsHtml5AttributeName* ATTR_ALIGNMENT_BASELINE;
368 static nsHtml5AttributeName* ATTR_ALIGNMENTSCOPE;
369 static nsHtml5AttributeName* ATTR_DRAGGABLE;
370 static nsHtml5AttributeName* ATTR_HEIGHT;
371 static nsHtml5AttributeName* ATTR_IMAGESIZES;
372 static nsHtml5AttributeName* ATTR_IMAGESRCSET;
373 static nsHtml5AttributeName* ATTR_IMAGE_RENDERING;
374 static nsHtml5AttributeName* ATTR_LANGUAGE;
375 static nsHtml5AttributeName* ATTR_LANG;
376 static nsHtml5AttributeName* ATTR_LARGEOP;
377 static nsHtml5AttributeName* ATTR_LONGDESC;
378 static nsHtml5AttributeName* ATTR_LENGTHADJUST;
379 static nsHtml5AttributeName* ATTR_MARGINHEIGHT;
380 static nsHtml5AttributeName* ATTR_MARGINWIDTH;
381 static nsHtml5AttributeName* ATTR_ORIGIN;
382 static nsHtml5AttributeName* ATTR_PING;
383 static nsHtml5AttributeName* ATTR_TARGET;
384 static nsHtml5AttributeName* ATTR_TARGETX;
385 static nsHtml5AttributeName* ATTR_TARGETY;
386 static nsHtml5AttributeName* ATTR_ARCHIVE;
387 static nsHtml5AttributeName* ATTR_HIGH;
388 static nsHtml5AttributeName* ATTR_LIGHTING_COLOR;
389 static nsHtml5AttributeName* ATTR_MATHBACKGROUND;
390 static nsHtml5AttributeName* ATTR_METHOD;
391 static nsHtml5AttributeName* ATTR_MATHVARIANT;
392 static nsHtml5AttributeName* ATTR_MATHCOLOR;
393 static nsHtml5AttributeName* ATTR_MATHSIZE;
394 static nsHtml5AttributeName* ATTR_NOSHADE;
395 static nsHtml5AttributeName* ATTR_ONCHANGE;
396 static nsHtml5AttributeName* ATTR_PATHLENGTH;
397 static nsHtml5AttributeName* ATTR_PATH;
398 static nsHtml5AttributeName* ATTR_ALTIMG;
399 static nsHtml5AttributeName* ATTR_ACTIONTYPE;
400 static nsHtml5AttributeName* ATTR_ACTION;
401 static nsHtml5AttributeName* ATTR_ACTIVE;
402 static nsHtml5AttributeName* ATTR_ADDITIVE;
403 static nsHtml5AttributeName* ATTR_BEGIN;
404 static nsHtml5AttributeName* ATTR_DOMINANT_BASELINE;
405 static nsHtml5AttributeName* ATTR_DIVISOR;
406 static nsHtml5AttributeName* ATTR_DEFINITIONURL;
407 static nsHtml5AttributeName* ATTR_LIMITINGCONEANGLE;
408 static nsHtml5AttributeName* ATTR_MEDIA;
409 static nsHtml5AttributeName* ATTR_MANIFEST;
410 static nsHtml5AttributeName* ATTR_ONFINISH;
411 static nsHtml5AttributeName* ATTR_OPTIMUM;
412 static nsHtml5AttributeName* ATTR_RADIOGROUP;
413 static nsHtml5AttributeName* ATTR_RADIUS;
414 static nsHtml5AttributeName* ATTR_SCRIPTLEVEL;
415 static nsHtml5AttributeName* ATTR_SCRIPTSIZEMULTIPLIER;
416 static nsHtml5AttributeName* ATTR_SCRIPTMINSIZE;
417 static nsHtml5AttributeName* ATTR_TABINDEX;
418 static nsHtml5AttributeName* ATTR_VALIGN;
419 static nsHtml5AttributeName* ATTR_VISIBILITY;
420 static nsHtml5AttributeName* ATTR_BACKGROUND;
421 static nsHtml5AttributeName* ATTR_LINK;
422 static nsHtml5AttributeName* ATTR_MARKER_MID;
423 static nsHtml5AttributeName* ATTR_MARKERHEIGHT;
424 static nsHtml5AttributeName* ATTR_MARKER_END;
425 static nsHtml5AttributeName* ATTR_MASK;
426 static nsHtml5AttributeName* ATTR_MARKER_START;
427 static nsHtml5AttributeName* ATTR_MARKERWIDTH;
428 static nsHtml5AttributeName* ATTR_MASKUNITS;
429 static nsHtml5AttributeName* ATTR_MARKERUNITS;
430 static nsHtml5AttributeName* ATTR_MASKCONTENTUNITS;
431 static nsHtml5AttributeName* ATTR_AMPLITUDE;
432 static nsHtml5AttributeName* ATTR_CELLSPACING;
433 static nsHtml5AttributeName* ATTR_CELLPADDING;
434 static nsHtml5AttributeName* ATTR_DECLARE;
435 static nsHtml5AttributeName* ATTR_FILL_RULE;
436 static nsHtml5AttributeName* ATTR_FILL;
437 static nsHtml5AttributeName* ATTR_FILL_OPACITY;
438 static nsHtml5AttributeName* ATTR_MAXLENGTH;
439 static nsHtml5AttributeName* ATTR_ONCLICK;
440 static nsHtml5AttributeName* ATTR_ONBLUR;
441 static nsHtml5AttributeName* ATTR_REPLACE;
442 static nsHtml5AttributeName* ATTR_ROWLINES;
443 static nsHtml5AttributeName* ATTR_SCALE;
444 static nsHtml5AttributeName* ATTR_STYLE;
445 static nsHtml5AttributeName* ATTR_TABLEVALUES;
446 static nsHtml5AttributeName* ATTR_TITLE;
447 static nsHtml5AttributeName* ATTR_AZIMUTH;
448 static nsHtml5AttributeName* ATTR_FORMAT;
449 static nsHtml5AttributeName* ATTR_FRAMEBORDER;
450 static nsHtml5AttributeName* ATTR_FRAME;
451 static nsHtml5AttributeName* ATTR_FRAMESPACING;
452 static nsHtml5AttributeName* ATTR_FROM;
453 static nsHtml5AttributeName* ATTR_FORM;
454 static nsHtml5AttributeName* ATTR_PROMPT;
455 static nsHtml5AttributeName* ATTR_PRIMITIVEUNITS;
456 static nsHtml5AttributeName* ATTR_SYMMETRIC;
457 static nsHtml5AttributeName* ATTR_SUMMARY;
458 static nsHtml5AttributeName* ATTR_USEMAP;
459 static nsHtml5AttributeName* ATTR_ZOOMANDPAN;
460 static nsHtml5AttributeName* ATTR_ASYNC;
461 static nsHtml5AttributeName* ATTR_ALINK;
462 static nsHtml5AttributeName* ATTR_IN;
463 static nsHtml5AttributeName* ATTR_ICON;
464 static nsHtml5AttributeName* ATTR_KERNELMATRIX;
465 static nsHtml5AttributeName* ATTR_KERNING;
466 static nsHtml5AttributeName* ATTR_KERNELUNITLENGTH;
467 static nsHtml5AttributeName* ATTR_ONUNLOAD;
468 static nsHtml5AttributeName* ATTR_OPEN;
469 static nsHtml5AttributeName* ATTR_ONINVALID;
470 static nsHtml5AttributeName* ATTR_ONEND;
471 static nsHtml5AttributeName* ATTR_ONINPUT;
472 static nsHtml5AttributeName* ATTR_POINTER_EVENTS;
473 static nsHtml5AttributeName* ATTR_POINTS;
474 static nsHtml5AttributeName* ATTR_POINTSATX;
475 static nsHtml5AttributeName* ATTR_POINTSATY;
476 static nsHtml5AttributeName* ATTR_POINTSATZ;
477 static nsHtml5AttributeName* ATTR_SPAN;
478 static nsHtml5AttributeName* ATTR_STANDBY;
479 static nsHtml5AttributeName* ATTR_TRANSFORM_ORIGIN;
480 static nsHtml5AttributeName* ATTR_TRANSFORM;
481 static nsHtml5AttributeName* ATTR_VLINK;
482 static nsHtml5AttributeName* ATTR_WHEN;
483 static nsHtml5AttributeName* ATTR_XLINK_HREF;
484 static nsHtml5AttributeName* ATTR_XLINK_TITLE;
485 static nsHtml5AttributeName* ATTR_XLINK_ROLE;
486 static nsHtml5AttributeName* ATTR_XLINK_ARCROLE;
487 static nsHtml5AttributeName* ATTR_XMLNS_XLINK;
488 static nsHtml5AttributeName* ATTR_XMLNS;
489 static nsHtml5AttributeName* ATTR_XLINK_TYPE;
490 static nsHtml5AttributeName* ATTR_XLINK_SHOW;
491 static nsHtml5AttributeName* ATTR_XLINK_ACTUATE;
492 static nsHtml5AttributeName* ATTR_AUTOPLAY;
493 static nsHtml5AttributeName* ATTR_AUTOCOMPLETE;
494 static nsHtml5AttributeName* ATTR_AUTOFOCUS;
495 static nsHtml5AttributeName* ATTR_AUTOCAPITALIZE;
496 static nsHtml5AttributeName* ATTR_BGCOLOR;
497 static nsHtml5AttributeName* ATTR_COLOR_PROFILE;
498 static nsHtml5AttributeName* ATTR_COLOR_RENDERING;
499 static nsHtml5AttributeName* ATTR_COLOR_INTERPOLATION;
500 static nsHtml5AttributeName* ATTR_COLOR;
501 static nsHtml5AttributeName* ATTR_COLOR_INTERPOLATION_FILTERS;
502 static nsHtml5AttributeName* ATTR_ENCODING;
503 static nsHtml5AttributeName* ATTR_EXPONENT;
504 static nsHtml5AttributeName* ATTR_FLOOD_COLOR;
505 static nsHtml5AttributeName* ATTR_FLOOD_OPACITY;
506 static nsHtml5AttributeName* ATTR_LQUOTE;
507 static nsHtml5AttributeName* ATTR_NUMOCTAVES;
508 static nsHtml5AttributeName* ATTR_NOMODULE;
509 static nsHtml5AttributeName* ATTR_ONLOAD;
510 static nsHtml5AttributeName* ATTR_ONMOUSEWHEEL;
511 static nsHtml5AttributeName* ATTR_ONMOUSEENTER;
512 static nsHtml5AttributeName* ATTR_ONMOUSEOVER;
513 static nsHtml5AttributeName* ATTR_ONFOCUSIN;
514 static nsHtml5AttributeName* ATTR_ONCONTEXTMENU;
515 static nsHtml5AttributeName* ATTR_ONZOOM;
516 static nsHtml5AttributeName* ATTR_ONCOPY;
517 static nsHtml5AttributeName* ATTR_ONMOUSELEAVE;
518 static nsHtml5AttributeName* ATTR_ONMOUSEMOVE;
519 static nsHtml5AttributeName* ATTR_ONMOUSEUP;
520 static nsHtml5AttributeName* ATTR_ONFOCUS;
521 static nsHtml5AttributeName* ATTR_ONMOUSEOUT;
522 static nsHtml5AttributeName* ATTR_ONFOCUSOUT;
523 static nsHtml5AttributeName* ATTR_ONMOUSEDOWN;
524 static nsHtml5AttributeName* ATTR_TO;
525 static nsHtml5AttributeName* ATTR_RQUOTE;
526 static nsHtml5AttributeName* ATTR_STROKE_LINECAP;
527 static nsHtml5AttributeName* ATTR_STROKE_DASHARRAY;
528 static nsHtml5AttributeName* ATTR_STROKE_DASHOFFSET;
529 static nsHtml5AttributeName* ATTR_STROKE_LINEJOIN;
530 static nsHtml5AttributeName* ATTR_STROKE_MITERLIMIT;
531 static nsHtml5AttributeName* ATTR_STROKE;
532 static nsHtml5AttributeName* ATTR_SCROLLING;
533 static nsHtml5AttributeName* ATTR_STROKE_WIDTH;
534 static nsHtml5AttributeName* ATTR_STROKE_OPACITY;
535 static nsHtml5AttributeName* ATTR_COMPACT;
536 static nsHtml5AttributeName* ATTR_CLIP;
537 static nsHtml5AttributeName* ATTR_CLIP_RULE;
538 static nsHtml5AttributeName* ATTR_CLIP_PATH;
539 static nsHtml5AttributeName* ATTR_CLIPPATHUNITS;
540 static nsHtml5AttributeName* ATTR_DISPLAY;
541 static nsHtml5AttributeName* ATTR_DISPLAYSTYLE;
542 static nsHtml5AttributeName* ATTR_GLYPH_ORIENTATION_VERTICAL;
543 static nsHtml5AttributeName* ATTR_GLYPH_ORIENTATION_HORIZONTAL;
544 static nsHtml5AttributeName* ATTR_GLYPHREF;
545 static nsHtml5AttributeName* ATTR_HTTP_EQUIV;
546 static nsHtml5AttributeName* ATTR_KEYPOINTS;
547 static nsHtml5AttributeName* ATTR_LOOP;
548 static nsHtml5AttributeName* ATTR_PROPERTY;
549 static nsHtml5AttributeName* ATTR_SCOPED;
550 static nsHtml5AttributeName* ATTR_STEP;
551 static nsHtml5AttributeName* ATTR_SHAPE_RENDERING;
552 static nsHtml5AttributeName* ATTR_SCOPE;
553 static nsHtml5AttributeName* ATTR_SHAPE;
554 static nsHtml5AttributeName* ATTR_SLOPE;
555 static nsHtml5AttributeName* ATTR_STOP_COLOR;
556 static nsHtml5AttributeName* ATTR_STOP_OPACITY;
557 static nsHtml5AttributeName* ATTR_TEMPLATE;
558 static nsHtml5AttributeName* ATTR_WRAP;
559 static nsHtml5AttributeName* ATTR_ABBR;
560 static nsHtml5AttributeName* ATTR_ATTRIBUTENAME;
561 static nsHtml5AttributeName* ATTR_ATTRIBUTETYPE;
562 static nsHtml5AttributeName* ATTR_CHAR;
563 static nsHtml5AttributeName* ATTR_COORDS;
564 static nsHtml5AttributeName* ATTR_CHAROFF;
565 static nsHtml5AttributeName* ATTR_CHARSET;
566 static nsHtml5AttributeName* ATTR_NOWRAP;
567 static nsHtml5AttributeName* ATTR_NOHREF;
568 static nsHtml5AttributeName* ATTR_ONDRAG;
569 static nsHtml5AttributeName* ATTR_ONDRAGENTER;
570 static nsHtml5AttributeName* ATTR_ONDRAGOVER;
571 static nsHtml5AttributeName* ATTR_ONDRAGEND;
572 static nsHtml5AttributeName* ATTR_ONDROP;
573 static nsHtml5AttributeName* ATTR_ONDRAGDROP;
574 static nsHtml5AttributeName* ATTR_ONERROR;
575 static nsHtml5AttributeName* ATTR_OPERATOR;
576 static nsHtml5AttributeName* ATTR_OVERFLOW;
577 static nsHtml5AttributeName* ATTR_ONDRAGSTART;
578 static nsHtml5AttributeName* ATTR_ONDRAGLEAVE;
579 static nsHtml5AttributeName* ATTR_STARTOFFSET;
580 static nsHtml5AttributeName* ATTR_START;
581 static nsHtml5AttributeName* ATTR_AS;
582 static nsHtml5AttributeName* ATTR_AXIS;
583 static nsHtml5AttributeName* ATTR_BIAS;
584 static nsHtml5AttributeName* ATTR_COLSPAN;
585 static nsHtml5AttributeName* ATTR_CLASSID;
586 static nsHtml5AttributeName* ATTR_CROSSORIGIN;
587 static nsHtml5AttributeName* ATTR_COLS;
588 static nsHtml5AttributeName* ATTR_CURSOR;
589 static nsHtml5AttributeName* ATTR_CLOSURE;
590 static nsHtml5AttributeName* ATTR_CLOSE;
591 static nsHtml5AttributeName* ATTR_CLASS;
592 static nsHtml5AttributeName* ATTR_IS;
593 static nsHtml5AttributeName* ATTR_KEYSYSTEM;
594 static nsHtml5AttributeName* ATTR_KEYSPLINES;
595 static nsHtml5AttributeName* ATTR_LOWSRC;
596 static nsHtml5AttributeName* ATTR_MAXSIZE;
597 static nsHtml5AttributeName* ATTR_MINSIZE;
598 static nsHtml5AttributeName* ATTR_OFFSET;
599 static nsHtml5AttributeName* ATTR_PRESERVEALPHA;
600 static nsHtml5AttributeName* ATTR_PRESERVEASPECTRATIO;
601 static nsHtml5AttributeName* ATTR_ROWSPAN;
602 static nsHtml5AttributeName* ATTR_ROWSPACING;
603 static nsHtml5AttributeName* ATTR_ROWS;
604 static nsHtml5AttributeName* ATTR_SRCSET;
605 static nsHtml5AttributeName* ATTR_SUBSCRIPTSHIFT;
606 static nsHtml5AttributeName* ATTR_VERSION;
607 static nsHtml5AttributeName* ATTR_ALTTEXT;
608 static nsHtml5AttributeName* ATTR_CONTENTEDITABLE;
609 static nsHtml5AttributeName* ATTR_CONTROLS;
610 static nsHtml5AttributeName* ATTR_CONTENT;
611 static nsHtml5AttributeName* ATTR_CONTEXTMENU;
612 static nsHtml5AttributeName* ATTR_DEPTH;
613 static nsHtml5AttributeName* ATTR_ENCTYPE;
614 static nsHtml5AttributeName* ATTR_FONT_STRETCH;
615 static nsHtml5AttributeName* ATTR_FILTER;
616 static nsHtml5AttributeName* ATTR_FONTWEIGHT;
617 static nsHtml5AttributeName* ATTR_FONT_WEIGHT;
618 static nsHtml5AttributeName* ATTR_FONTSTYLE;
619 static nsHtml5AttributeName* ATTR_FONT_STYLE;
620 static nsHtml5AttributeName* ATTR_FONTFAMILY;
621 static nsHtml5AttributeName* ATTR_FONT_FAMILY;
622 static nsHtml5AttributeName* ATTR_FONT_VARIANT;
623 static nsHtml5AttributeName* ATTR_FONT_SIZE_ADJUST;
624 static nsHtml5AttributeName* ATTR_FILTERUNITS;
625 static nsHtml5AttributeName* ATTR_FONTSIZE;
626 static nsHtml5AttributeName* ATTR_FONT_SIZE;
627 static nsHtml5AttributeName* ATTR_KEYTIMES;
628 static nsHtml5AttributeName* ATTR_LETTER_SPACING;
629 static nsHtml5AttributeName* ATTR_LIST;
630 static nsHtml5AttributeName* ATTR_MULTIPLE;
631 static nsHtml5AttributeName* ATTR_RT;
632 static nsHtml5AttributeName* ATTR_ONSTOP;
633 static nsHtml5AttributeName* ATTR_ONSTART;
634 static nsHtml5AttributeName* ATTR_POSTER;
635 static nsHtml5AttributeName* ATTR_PATTERNTRANSFORM;
636 static nsHtml5AttributeName* ATTR_PATTERN;
637 static nsHtml5AttributeName* ATTR_PATTERNUNITS;
638 static nsHtml5AttributeName* ATTR_PATTERNCONTENTUNITS;
639 static nsHtml5AttributeName* ATTR_RESTART;
640 static nsHtml5AttributeName* ATTR_STITCHTILES;
641 static nsHtml5AttributeName* ATTR_SYSTEMLANGUAGE;
642 static nsHtml5AttributeName* ATTR_TEXT_RENDERING;
643 static nsHtml5AttributeName* ATTR_TEXT_DECORATION;
644 static nsHtml5AttributeName* ATTR_TEXT_ANCHOR;
645 static nsHtml5AttributeName* ATTR_TEXTLENGTH;
646 static nsHtml5AttributeName* ATTR_TEXT;
647 static nsHtml5AttributeName* ATTR_WRITING_MODE;
648 static nsHtml5AttributeName* ATTR_WIDTH;
649 static nsHtml5AttributeName* ATTR_ACCUMULATE;
650 static nsHtml5AttributeName* ATTR_COLUMNSPAN;
651 static nsHtml5AttributeName* ATTR_COLUMNLINES;
652 static nsHtml5AttributeName* ATTR_COLUMNALIGN;
653 static nsHtml5AttributeName* ATTR_COLUMNSPACING;
654 static nsHtml5AttributeName* ATTR_COLUMNWIDTH;
655 static nsHtml5AttributeName* ATTR_GROUPALIGN;
656 static nsHtml5AttributeName* ATTR_INPUTMODE;
657 static nsHtml5AttributeName* ATTR_ONSUBMIT;
658 static nsHtml5AttributeName* ATTR_ONCUT;
659 static nsHtml5AttributeName* ATTR_REQUIRED;
660 static nsHtml5AttributeName* ATTR_REQUIREDFEATURES;
661 static nsHtml5AttributeName* ATTR_RESULT;
662 static nsHtml5AttributeName* ATTR_REQUIREDEXTENSIONS;
663 static nsHtml5AttributeName* ATTR_VALUES;
664 static nsHtml5AttributeName* ATTR_VALUETYPE;
665 static nsHtml5AttributeName* ATTR_VALUE;
666 static nsHtml5AttributeName* ATTR_ELEVATION;
667 static nsHtml5AttributeName* ATTR_VIEWTARGET;
668 static nsHtml5AttributeName* ATTR_VIEWBOX;
669 static nsHtml5AttributeName* ATTR_CX;
670 static nsHtml5AttributeName* ATTR_DX;
671 static nsHtml5AttributeName* ATTR_FX;
672 static nsHtml5AttributeName* ATTR_RX;
673 static nsHtml5AttributeName* ATTR_REFX;
674 static nsHtml5AttributeName* ATTR_BY;
675 static nsHtml5AttributeName* ATTR_CY;
676 static nsHtml5AttributeName* ATTR_DY;
677 static nsHtml5AttributeName* ATTR_FY;
678 static nsHtml5AttributeName* ATTR_RY;
679 static nsHtml5AttributeName* ATTR_REFY;
681 private:
682 static nsHtml5AttributeName** ATTRIBUTE_NAMES;
683 static staticJArray<int32_t, int32_t> ATTRIBUTE_HASHES;
685 public:
686 static void initializeStatics();
687 static void releaseStatics();
690 #endif