Skip to content

Commit 46aca0c

Browse files
committed
Mozilla bug 1724920 - Sort headers in the generated parts of the HTML parser.
1 parent ffab48f commit 46aca0c

1 file changed

Lines changed: 18 additions & 15 deletions

File tree

translator-src/nu/validator/htmlparser/cpptranslate/CppTypes.java

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -81,33 +81,36 @@ public class CppTypes {
8181
reservedWords.add("unicode");
8282
}
8383

84-
private static final String[] TREE_BUILDER_INCLUDES = { "nsContentUtils", "nsAtom", "nsHtml5AtomTable",
85-
"nsHtml5String", "nsNameSpaceManager", "nsIContent", "nsTraceRefcnt", "jArray", "nsHtml5DocumentMode",
86-
"nsHtml5ArrayCopy", "nsHtml5Parser", "nsGkAtoms", "nsHtml5TreeOperation", "nsHtml5StateSnapshot",
87-
"nsHtml5StackNode", "nsHtml5TreeOpExecutor", "nsHtml5StreamParser", "nsAHtml5TreeBuilderState",
88-
"nsHtml5Highlighter", "nsHtml5PlainTextUtils", "nsHtml5ViewSourceUtils", "mozilla/ImportScanner",
89-
"mozilla/Likely", "nsIContentHandle", "nsHtml5OplessBuilder", };
90-
91-
private static final String[] TOKENIZER_INCLUDES = { "nsAtom",
92-
"nsHtml5AtomTable", "nsHtml5String", "nsIContent", "nsTraceRefcnt",
93-
"jArray", "nsHtml5DocumentMode", "nsHtml5ArrayCopy",
94-
"nsHtml5NamedCharacters", "nsHtml5NamedCharactersAccel",
95-
"nsGkAtoms", "nsAHtml5TreeBuilderState", "nsHtml5Macros",
96-
"nsHtml5Highlighter", "nsHtml5TokenizerLoopPolicies" };
84+
private static final String[] TREE_BUILDER_INCLUDES = { "jArray",
85+
"mozilla/ImportScanner", "mozilla/Likely",
86+
"nsAHtml5TreeBuilderState", "nsAtom", "nsContentUtils", "nsGkAtoms",
87+
"nsHtml5ArrayCopy", "nsHtml5AtomTable", "nsHtml5DocumentMode",
88+
"nsHtml5Highlighter", "nsHtml5OplessBuilder", "nsHtml5Parser",
89+
"nsHtml5PlainTextUtils", "nsHtml5StackNode", "nsHtml5StateSnapshot",
90+
"nsHtml5StreamParser", "nsHtml5String", "nsHtml5TreeOperation",
91+
"nsHtml5TreeOpExecutor", "nsHtml5ViewSourceUtils", "nsIContent",
92+
"nsIContentHandle", "nsNameSpaceManager", "nsTraceRefcnt", };
93+
94+
private static final String[] TOKENIZER_INCLUDES = { "jArray",
95+
"nsAHtml5TreeBuilderState", "nsAtom", "nsGkAtoms",
96+
"nsHtml5ArrayCopy", "nsHtml5AtomTable", "nsHtml5DocumentMode",
97+
"nsHtml5Highlighter", "nsHtml5Macros", "nsHtml5NamedCharacters",
98+
"nsHtml5NamedCharactersAccel", "nsHtml5String",
99+
"nsHtml5TokenizerLoopPolicies", "nsIContent", "nsTraceRefcnt" };
97100

98101
private static final String[] INCLUDES = { "nsAtom", "nsHtml5AtomTable",
99102
"nsHtml5String", "nsNameSpaceManager", "nsIContent",
100103
"nsTraceRefcnt", "jArray", "nsHtml5ArrayCopy",
101104
"nsAHtml5TreeBuilderState", "nsGkAtoms", "nsHtml5ByteReadable",
102105
"nsHtml5Macros", "nsIContentHandle", "nsHtml5Portability",
103-
"nsHtml5ContentCreatorFunction"};
106+
"nsHtml5ContentCreatorFunction" };
104107

105108
private static final String[] OTHER_DECLATIONS = {};
106109

107110
private static final String[] TREE_BUILDER_OTHER_DECLATIONS = {};
108111

109112
private static final String[] NAMED_CHARACTERS_INCLUDES = { "jArray",
110-
"nscore", "nsDebug", "mozilla/Logging", "nsMemory" };
113+
"mozilla/Logging", "nscore", "nsDebug", "nsMemory" };
111114

112115
private static final String[] FORWARD_DECLARATIONS = { "nsHtml5StreamParser" };
113116

0 commit comments

Comments
 (0)