Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #include "nsMemory.h" |
michael@0 | 7 | #include "nsStaticAtom.h" |
michael@0 | 8 | #include "nsEditProperty.h" |
michael@0 | 9 | |
michael@0 | 10 | using namespace mozilla; |
michael@0 | 11 | |
michael@0 | 12 | #define EDITOR_ATOM(name_, value_) nsIAtom* nsEditProperty::name_ = 0; |
michael@0 | 13 | #include "nsEditPropertyAtomList.h" // IWYU pragma: keep |
michael@0 | 14 | #undef EDITOR_ATOM |
michael@0 | 15 | |
michael@0 | 16 | /* From the HTML 4.0 DTD, |
michael@0 | 17 | |
michael@0 | 18 | INLINE: |
michael@0 | 19 | <!-- %inline; covers inline or "text-level" elements --> |
michael@0 | 20 | <!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %formctrl;"> |
michael@0 | 21 | <!ENTITY % fontstyle "TT | I | B | BIG | SMALL"> |
michael@0 | 22 | <!ENTITY % phrase "EM | STRONG | DFN | CODE | |
michael@0 | 23 | SAMP | KBD | VAR | CITE | ABBR | ACRONYM" > |
michael@0 | 24 | <!ENTITY % special |
michael@0 | 25 | "A | IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO"> |
michael@0 | 26 | <!ENTITY % formctrl "INPUT | SELECT | TEXTAREA | LABEL | BUTTON"> |
michael@0 | 27 | |
michael@0 | 28 | BLOCK: |
michael@0 | 29 | <!ENTITY % block |
michael@0 | 30 | "P | %heading (h1-h6); | %list (UL | OL); | %preformatted (PRE); | DL | DIV | NOSCRIPT | |
michael@0 | 31 | BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS"> |
michael@0 | 32 | |
michael@0 | 33 | But what about BODY, TR, TD, TH, CAPTION, COL, COLGROUP, THEAD, TFOOT, LI, DT, DD, LEGEND, etc.? |
michael@0 | 34 | |
michael@0 | 35 | |
michael@0 | 36 | */ |
michael@0 | 37 | |
michael@0 | 38 | #define EDITOR_ATOM(name_, value_) NS_STATIC_ATOM_BUFFER(name_##_buffer, value_) |
michael@0 | 39 | #include "nsEditPropertyAtomList.h" // IWYU pragma: keep |
michael@0 | 40 | #undef EDITOR_ATOM |
michael@0 | 41 | |
michael@0 | 42 | void |
michael@0 | 43 | nsEditProperty::RegisterAtoms() |
michael@0 | 44 | { |
michael@0 | 45 | // inline tags |
michael@0 | 46 | static const nsStaticAtom property_atoms[] = { |
michael@0 | 47 | #define EDITOR_ATOM(name_, value_) NS_STATIC_ATOM(name_##_buffer, &name_), |
michael@0 | 48 | #include "nsEditPropertyAtomList.h" // IWYU pragma: keep |
michael@0 | 49 | #undef EDITOR_ATOM |
michael@0 | 50 | }; |
michael@0 | 51 | |
michael@0 | 52 | NS_RegisterStaticAtoms(property_atoms); |
michael@0 | 53 | } |