diff -r 000000000000 -r 6474c204b198 editor/libeditor/html/nsEditProperty.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/editor/libeditor/html/nsEditProperty.cpp Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,53 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "nsMemory.h" +#include "nsStaticAtom.h" +#include "nsEditProperty.h" + +using namespace mozilla; + +#define EDITOR_ATOM(name_, value_) nsIAtom* nsEditProperty::name_ = 0; +#include "nsEditPropertyAtomList.h" // IWYU pragma: keep +#undef EDITOR_ATOM + +/* From the HTML 4.0 DTD, + +INLINE: + + + + + + + +BLOCK: + + +But what about BODY, TR, TD, TH, CAPTION, COL, COLGROUP, THEAD, TFOOT, LI, DT, DD, LEGEND, etc.? + + +*/ + +#define EDITOR_ATOM(name_, value_) NS_STATIC_ATOM_BUFFER(name_##_buffer, value_) +#include "nsEditPropertyAtomList.h" // IWYU pragma: keep +#undef EDITOR_ATOM + +void +nsEditProperty::RegisterAtoms() +{ + // inline tags + static const nsStaticAtom property_atoms[] = { +#define EDITOR_ATOM(name_, value_) NS_STATIC_ATOM(name_##_buffer, &name_), +#include "nsEditPropertyAtomList.h" // IWYU pragma: keep +#undef EDITOR_ATOM + }; + + NS_RegisterStaticAtoms(property_atoms); +}