Line data Source code
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 0 : inline nsHtml5HtmlAttributes* GetAttributes()
6 : {
7 0 : return attributes;
8 : }
9 :
10 : /**
11 : * Makes sure the buffers are large enough to be able to tokenize aLength
12 : * UTF-16 code units before having to make the buffers larger.
13 : *
14 : * @param aLength the number of UTF-16 code units to be tokenized before the
15 : * next call to this method.
16 : * @return true if successful; false if out of memory
17 : */
18 : bool EnsureBufferSpace(int32_t aLength);
19 :
20 : nsAutoPtr<nsHtml5Highlighter> mViewSource;
21 :
22 : /**
23 : * Starts handling text/plain. This is a one-way initialization. There is
24 : * no corresponding EndPlainText() call.
25 : */
26 : void StartPlainText();
27 :
28 : void EnableViewSource(nsHtml5Highlighter* aHighlighter);
29 :
30 : bool FlushViewSource();
31 :
32 : void StartViewSource(const nsAutoString& aTitle);
33 :
34 : void EndViewSource();
35 :
36 : void errGarbageAfterLtSlash();
37 :
38 : void errLtSlashGt();
39 :
40 : void errWarnLtSlashInRcdata();
41 :
42 : void errCharRefLacksSemicolon();
43 :
44 : void errNoDigitsInNCR();
45 :
46 : void errGtInSystemId();
47 :
48 : void errGtInPublicId();
49 :
50 : void errNamelessDoctype();
51 :
52 : void errConsecutiveHyphens();
53 :
54 : void errPrematureEndOfComment();
55 :
56 : void errBogusComment();
57 :
58 : void errUnquotedAttributeValOrNull(char16_t c);
59 :
60 : void errSlashNotFollowedByGt();
61 :
62 : void errNoSpaceBetweenAttributes();
63 :
64 : void errLtOrEqualsOrGraveInUnquotedAttributeOrNull(char16_t c);
65 :
66 : void errAttributeValueMissing();
67 :
68 : void errBadCharBeforeAttributeNameOrNull(char16_t c);
69 :
70 : void errEqualsSignBeforeAttributeName();
71 :
72 : void errBadCharAfterLt(char16_t c);
73 :
74 : void errLtGt();
75 :
76 : void errProcessingInstruction();
77 :
78 : void errUnescapedAmpersandInterpretedAsCharacterReference();
79 :
80 : void errNotSemicolonTerminated();
81 :
82 : void errNoNamedCharacterMatch();
83 :
84 : void errQuoteBeforeAttributeName(char16_t c);
85 :
86 : void errQuoteOrLtInAttributeNameOrNull(char16_t c);
87 :
88 : void errExpectedPublicId();
89 :
90 : void errBogusDoctype();
91 :
92 : void maybeErrAttributesOnEndTag(nsHtml5HtmlAttributes* attrs);
93 :
94 : void maybeErrSlashInEndTag(bool selfClosing);
95 :
96 : char16_t errNcrNonCharacter(char16_t ch);
97 :
98 : void errAstralNonCharacter(int32_t ch);
99 :
100 : void errNcrSurrogate();
101 :
102 : char16_t errNcrControlChar(char16_t ch);
103 :
104 : void errNcrCr();
105 :
106 : void errNcrInC1Range();
107 :
108 : void errEofInPublicId();
109 :
110 : void errEofInComment();
111 :
112 : void errEofInDoctype();
113 :
114 : void errEofInAttributeValue();
115 :
116 : void errEofInAttributeName();
117 :
118 : void errEofWithoutGt();
119 :
120 : void errEofInTagName();
121 :
122 : void errEofInEndTag();
123 :
124 : void errEofAfterLt();
125 :
126 : void errNcrOutOfRange();
127 :
128 : void errNcrUnassigned();
129 :
130 : void errDuplicateAttribute();
131 :
132 : void errEofInSystemId();
133 :
134 : void errExpectedSystemId();
135 :
136 : void errMissingSpaceBeforeDoctypeName();
137 :
138 : void errHyphenHyphenBang();
139 :
140 : void errNcrControlChar();
141 :
142 : void errNcrZero();
143 :
144 : void errNoSpaceBetweenDoctypeSystemKeywordAndQuote();
145 :
146 : void errNoSpaceBetweenPublicAndSystemIds();
147 :
148 : void errNoSpaceBetweenDoctypePublicKeywordAndQuote();
|