| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class CORE_EXPORT HTMLTokenizer { | 40 class CORE_EXPORT HTMLTokenizer { |
| 41 WTF_MAKE_NONCOPYABLE(HTMLTokenizer); | 41 WTF_MAKE_NONCOPYABLE(HTMLTokenizer); |
| 42 USING_FAST_MALLOC(HTMLTokenizer); | 42 USING_FAST_MALLOC(HTMLTokenizer); |
| 43 | 43 |
| 44 public: | 44 public: |
| 45 static std::unique_ptr<HTMLTokenizer> create( | 45 static std::unique_ptr<HTMLTokenizer> create( |
| 46 const HTMLParserOptions& options) { | 46 const HTMLParserOptions& options) { |
| 47 return wrapUnique(new HTMLTokenizer(options)); | 47 return WTF::wrapUnique(new HTMLTokenizer(options)); |
| 48 } | 48 } |
| 49 ~HTMLTokenizer(); | 49 ~HTMLTokenizer(); |
| 50 | 50 |
| 51 void reset(); | 51 void reset(); |
| 52 | 52 |
| 53 enum State { | 53 enum State { |
| 54 DataState, | 54 DataState, |
| 55 CharacterReferenceInDataState, | 55 CharacterReferenceInDataState, |
| 56 RCDATAState, | 56 RCDATAState, |
| 57 CharacterReferenceInRCDATAState, | 57 CharacterReferenceInRCDATAState, |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 // token (e.g., when lexing script). We buffer the name of the end tag | 263 // token (e.g., when lexing script). We buffer the name of the end tag |
| 264 // token here so we remember it next time we re-enter the tokenizer. | 264 // token here so we remember it next time we re-enter the tokenizer. |
| 265 Vector<LChar, 32> m_bufferedEndTagName; | 265 Vector<LChar, 32> m_bufferedEndTagName; |
| 266 | 266 |
| 267 HTMLParserOptions m_options; | 267 HTMLParserOptions m_options; |
| 268 }; | 268 }; |
| 269 | 269 |
| 270 } // namespace blink | 270 } // namespace blink |
| 271 | 271 |
| 272 #endif | 272 #endif |
| OLD | NEW |