Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/parser/html/nsHtml5TokenizerHSupplement.h
Line
Count
Source (jump to first uncovered line)
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5
inline nsHtml5HtmlAttributes*
6
GetAttributes()
7
0
{
8
0
  return attributes;
9
0
}
10
11
/**
12
 * Makes sure the buffers are large enough to be able to tokenize aLength
13
 * UTF-16 code units before having to make the buffers larger.
14
 *
15
 * @param aLength the number of UTF-16 code units to be tokenized before the
16
 *                next call to this method.
17
 * @return true if successful; false if out of memory
18
 */
19
bool
20
EnsureBufferSpace(int32_t aLength);
21
22
nsAutoPtr<nsHtml5Highlighter> mViewSource;
23
24
/**
25
 * Starts handling text/plain. This is a one-way initialization. There is
26
 * no corresponding EndPlainText() call.
27
 */
28
void
29
StartPlainText();
30
31
void
32
EnableViewSource(nsHtml5Highlighter* aHighlighter);
33
34
bool
35
FlushViewSource();
36
37
void
38
StartViewSource(const nsAutoString& aTitle);
39
40
void
41
EndViewSource();
42
43
void
44
errGarbageAfterLtSlash();
45
46
void
47
errLtSlashGt();
48
49
void
50
errWarnLtSlashInRcdata();
51
52
void
53
errCharRefLacksSemicolon();
54
55
void
56
errNoDigitsInNCR();
57
58
void
59
errGtInSystemId();
60
61
void
62
errGtInPublicId();
63
64
void
65
errNamelessDoctype();
66
67
void
68
errConsecutiveHyphens();
69
70
void
71
errPrematureEndOfComment();
72
73
void
74
errBogusComment();
75
76
void
77
errUnquotedAttributeValOrNull(char16_t c);
78
79
void
80
errSlashNotFollowedByGt();
81
82
void
83
errNoSpaceBetweenAttributes();
84
85
void
86
errLtOrEqualsOrGraveInUnquotedAttributeOrNull(char16_t c);
87
88
void
89
errAttributeValueMissing();
90
91
void
92
errBadCharBeforeAttributeNameOrNull(char16_t c);
93
94
void
95
errEqualsSignBeforeAttributeName();
96
97
void
98
errBadCharAfterLt(char16_t c);
99
100
void
101
errLtGt();
102
103
void
104
errProcessingInstruction();
105
106
void
107
errUnescapedAmpersandInterpretedAsCharacterReference();
108
109
void
110
errNotSemicolonTerminated();
111
112
void
113
errNoNamedCharacterMatch();
114
115
void
116
errQuoteBeforeAttributeName(char16_t c);
117
118
void
119
errQuoteOrLtInAttributeNameOrNull(char16_t c);
120
121
void
122
errExpectedPublicId();
123
124
void
125
errBogusDoctype();
126
127
void
128
maybeErrAttributesOnEndTag(nsHtml5HtmlAttributes* attrs);
129
130
void
131
maybeErrSlashInEndTag(bool selfClosing);
132
133
char16_t
134
errNcrNonCharacter(char16_t ch);
135
136
void
137
errAstralNonCharacter(int32_t ch);
138
139
void
140
errNcrSurrogate();
141
142
char16_t
143
errNcrControlChar(char16_t ch);
144
145
void
146
errNcrCr();
147
148
void
149
errNcrInC1Range();
150
151
void
152
errEofInPublicId();
153
154
void
155
errEofInComment();
156
157
void
158
errEofInDoctype();
159
160
void
161
errEofInAttributeValue();
162
163
void
164
errEofInAttributeName();
165
166
void
167
errEofWithoutGt();
168
169
void
170
errEofInTagName();
171
172
void
173
errEofInEndTag();
174
175
void
176
errEofAfterLt();
177
178
void
179
errNcrOutOfRange();
180
181
void
182
errNcrUnassigned();
183
184
void
185
errDuplicateAttribute();
186
187
void
188
errEofInSystemId();
189
190
void
191
errExpectedSystemId();
192
193
void
194
errMissingSpaceBeforeDoctypeName();
195
196
void
197
errHyphenHyphenBang();
198
199
void
200
errNcrControlChar();
201
202
void
203
errNcrZero();
204
205
void
206
errNoSpaceBetweenDoctypeSystemKeywordAndQuote();
207
208
void
209
errNoSpaceBetweenPublicAndSystemIds();
210
211
void
212
errNoSpaceBetweenDoctypePublicKeywordAndQuote();