| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 // instead of as character tokens. | 154 // instead of as character tokens. |
| 155 // | 155 // |
| 156 void updateStateFor(const String& tagName); | 156 void updateStateFor(const String& tagName); |
| 157 | 157 |
| 158 bool forceNullCharacterReplacement() const { return m_forceNullCharacterRepl
acement; } | 158 bool forceNullCharacterReplacement() const { return m_forceNullCharacterRepl
acement; } |
| 159 void setForceNullCharacterReplacement(bool value) { m_forceNullCharacterRepl
acement = value; } | 159 void setForceNullCharacterReplacement(bool value) { m_forceNullCharacterRepl
acement = value; } |
| 160 | 160 |
| 161 bool shouldAllowCDATA() const { return m_shouldAllowCDATA; } | 161 bool shouldAllowCDATA() const { return m_shouldAllowCDATA; } |
| 162 void setShouldAllowCDATA(bool value) { m_shouldAllowCDATA = value; } | 162 void setShouldAllowCDATA(bool value) { m_shouldAllowCDATA = value; } |
| 163 | 163 |
| 164 State state() const { return m_state; } | 164 State getState() const { return m_state; } |
| 165 void setState(State state) { m_state = state; } | 165 void setState(State state) { m_state = state; } |
| 166 | 166 |
| 167 inline bool shouldSkipNullCharacters() const | 167 inline bool shouldSkipNullCharacters() const |
| 168 { | 168 { |
| 169 return !m_forceNullCharacterReplacement | 169 return !m_forceNullCharacterReplacement |
| 170 && (m_state == HTMLTokenizer::DataState | 170 && (m_state == HTMLTokenizer::DataState |
| 171 || m_state == HTMLTokenizer::RCDATAState | 171 || m_state == HTMLTokenizer::RCDATAState |
| 172 || m_state == HTMLTokenizer::RAWTEXTState); | 172 || m_state == HTMLTokenizer::RAWTEXTState); |
| 173 } | 173 } |
| 174 | 174 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 // token (e.g., when lexing script). We buffer the name of the end tag | 261 // token (e.g., when lexing script). We buffer the name of the end tag |
| 262 // token here so we remember it next time we re-enter the tokenizer. | 262 // token here so we remember it next time we re-enter the tokenizer. |
| 263 Vector<LChar, 32> m_bufferedEndTagName; | 263 Vector<LChar, 32> m_bufferedEndTagName; |
| 264 | 264 |
| 265 HTMLParserOptions m_options; | 265 HTMLParserOptions m_options; |
| 266 }; | 266 }; |
| 267 | 267 |
| 268 } // namespace blink | 268 } // namespace blink |
| 269 | 269 |
| 270 #endif | 270 #endif |
| OLD | NEW |