OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 3 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // | 167 // |
168 // The main failures in the approximation are as follows: | 168 // The main failures in the approximation are as follows: |
169 // | 169 // |
170 // * The first set of character tokens emitted for a <pre> element might | 170 // * The first set of character tokens emitted for a <pre> element might |
171 // contain an extra leading newline. | 171 // contain an extra leading newline. |
172 // * The replacement of U+0000 with U+FFFD will not be sensitive to the | 172 // * The replacement of U+0000 with U+FFFD will not be sensitive to the |
173 // tree builder's insertion mode. | 173 // tree builder's insertion mode. |
174 // * CDATA sections in foreign content will be tokenized as bogus comments | 174 // * CDATA sections in foreign content will be tokenized as bogus comments |
175 // instead of as character tokens. | 175 // instead of as character tokens. |
176 // | 176 // |
177 void updateStateFor(const String& tagName); | 177 void updateStateFor(const AtomicString& tagName); |
178 | 178 |
179 bool forceNullCharacterReplacement() const { return m_forceNullCharacterRepl
acement; } | 179 bool forceNullCharacterReplacement() const { return m_forceNullCharacterRepl
acement; } |
180 void setForceNullCharacterReplacement(bool value) { m_forceNullCharacterRepl
acement = value; } | 180 void setForceNullCharacterReplacement(bool value) { m_forceNullCharacterRepl
acement = value; } |
181 | 181 |
182 bool shouldAllowCDATA() const { return m_shouldAllowCDATA; } | 182 bool shouldAllowCDATA() const { return m_shouldAllowCDATA; } |
183 void setShouldAllowCDATA(bool value) { m_shouldAllowCDATA = value; } | 183 void setShouldAllowCDATA(bool value) { m_shouldAllowCDATA = value; } |
184 | 184 |
185 State state() const { return m_state; } | 185 State state() const { return m_state; } |
186 void setState(State state) { m_state = state; } | 186 void setState(State state) { m_state = state; } |
187 | 187 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 // token (e.g., when lexing script). We buffer the name of the end tag | 282 // token (e.g., when lexing script). We buffer the name of the end tag |
283 // token here so we remember it next time we re-enter the tokenizer. | 283 // token here so we remember it next time we re-enter the tokenizer. |
284 Vector<LChar, 32> m_bufferedEndTagName; | 284 Vector<LChar, 32> m_bufferedEndTagName; |
285 | 285 |
286 HTMLParserOptions m_options; | 286 HTMLParserOptions m_options; |
287 }; | 287 }; |
288 | 288 |
289 } | 289 } |
290 | 290 |
291 #endif | 291 #endif |
OLD | NEW |