| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 DOCTYPESystemIdentifierSingleQuotedState, | 115 DOCTYPESystemIdentifierSingleQuotedState, |
| 116 AfterDOCTYPESystemIdentifierState, | 116 AfterDOCTYPESystemIdentifierState, |
| 117 BogusDOCTYPEState, | 117 BogusDOCTYPEState, |
| 118 CDATASectionState, | 118 CDATASectionState, |
| 119 // These CDATA states are not in the HTML5 spec, but we use them interna
lly. | 119 // These CDATA states are not in the HTML5 spec, but we use them interna
lly. |
| 120 CDATASectionRightSquareBracketState, | 120 CDATASectionRightSquareBracketState, |
| 121 CDATASectionDoubleRightSquareBracketState, | 121 CDATASectionDoubleRightSquareBracketState, |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 struct Checkpoint { | 124 struct Checkpoint { |
| 125 STACK_ALLOCATED(); |
| 125 HTMLParserOptions options; | 126 HTMLParserOptions options; |
| 126 State state; | 127 State state; |
| 127 UChar additionalAllowedCharacter; | 128 UChar additionalAllowedCharacter; |
| 128 bool skipNextNewLine; | 129 bool skipNextNewLine; |
| 129 bool shouldAllowCDATA; | 130 bool shouldAllowCDATA; |
| 130 | 131 |
| 131 Checkpoint() | 132 Checkpoint() |
| 132 : options(0) | 133 : options(0) |
| 133 , state() | 134 , state() |
| 134 , additionalAllowedCharacter('\0') | 135 , additionalAllowedCharacter('\0') |
| (...skipping 147 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 | 283 // 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. | 284 // token here so we remember it next time we re-enter the tokenizer. |
| 284 Vector<LChar, 32> m_bufferedEndTagName; | 285 Vector<LChar, 32> m_bufferedEndTagName; |
| 285 | 286 |
| 286 HTMLParserOptions m_options; | 287 HTMLParserOptions m_options; |
| 287 }; | 288 }; |
| 288 | 289 |
| 289 } | 290 } |
| 290 | 291 |
| 291 #endif | 292 #endif |
| OLD | NEW |