Bug 1400777 - Slim down nsElementTable.h

* Remove eHTMLTags
* De-expose HTML group constants[]
* De-expose gHTMLElements[]
* Split nsHTMLElement
* Clean up nsElementTable.{cpp,h}
* Fixup for eHTMLTag removal in Parser

Tag #1375
This commit is contained in:
Matt A. Tobin 2020-04-17 06:33:16 -04:00 committed by Roy Tam
commit a665a8796a
5 changed files with 82 additions and 110 deletions

View file

@ -583,7 +583,7 @@ HTMLEditUtils::SupportsAlignAttr(nsIDOMNode* aNode)
struct ElementInfo final
{
#ifdef DEBUG
eHTMLTags mTag;
nsHTMLTag mTag;
#endif
uint32_t mGroup;
uint32_t mCanContainGroups;
@ -794,7 +794,7 @@ HTMLEditUtils::CanContain(int32_t aParent, int32_t aChild)
// Special-case button.
if (aParent == eHTMLTag_button) {
static const eHTMLTags kButtonExcludeKids[] = {
static const nsHTMLTag kButtonExcludeKids[] = {
eHTMLTag_a,
eHTMLTag_fieldset,
eHTMLTag_form,