summaryrefslogtreecommitdiffstats
path: root/parser/htmlparser/nsHTMLTags.h
diff options
context:
space:
mode:
Diffstat (limited to 'parser/htmlparser/nsHTMLTags.h')
-rw-r--r--parser/htmlparser/nsHTMLTags.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/parser/htmlparser/nsHTMLTags.h b/parser/htmlparser/nsHTMLTags.h
index 8f0c86b4b..27a23b89f 100644
--- a/parser/htmlparser/nsHTMLTags.h
+++ b/parser/htmlparser/nsHTMLTags.h
@@ -17,9 +17,12 @@ class nsIAtom;
To change the list of tags, see nsHTMLTagList.h
+ These enum values are used as the index of array in various places.
+ If we change the structure of the enum by adding entries to it or removing
+ entries from it _directly_, not via nsHTMLTagList.h, don't forget to update
+ dom/bindings/BindingUtils.cpp and dom/html/nsHTMLContentSink.cpp as well.
*/
-#define HTML_TAG(_tag, _classname) eHTMLTag_##_tag,
-#define HTML_HTMLELEMENT_TAG(_tag) eHTMLTag_##_tag,
+#define HTML_TAG(_tag, _classname, _interfacename) eHTMLTag_##_tag,
#define HTML_OTHER(_tag) eHTMLTag_##_tag,
enum nsHTMLTag {
/* this enum must be first and must be zero */
@@ -31,7 +34,6 @@ enum nsHTMLTag {
eHTMLTag_userdefined
};
#undef HTML_TAG
-#undef HTML_HTMLELEMENT_TAG
#undef HTML_OTHER
// All tags before eHTMLTag_text are HTML tags