| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 static void parseDocumentFragment(const String&, DocumentFragment*, Element*
contextElement, ParserContentPolicy = AllowScriptingContent); | 76 static void parseDocumentFragment(const String&, DocumentFragment*, Element*
contextElement, ParserContentPolicy = AllowScriptingContent); |
| 77 | 77 |
| 78 HTMLTokenizer* tokenizer() const { return m_tokenizer.get(); } | 78 HTMLTokenizer* tokenizer() const { return m_tokenizer.get(); } |
| 79 | 79 |
| 80 virtual TextPosition textPosition() const OVERRIDE FINAL; | 80 virtual TextPosition textPosition() const OVERRIDE FINAL; |
| 81 virtual OrdinalNumber lineNumber() const OVERRIDE FINAL; | 81 virtual OrdinalNumber lineNumber() const OVERRIDE FINAL; |
| 82 | 82 |
| 83 struct ParsedChunk { | 83 struct ParsedChunk { |
| 84 OwnPtr<CompactHTMLTokenStream> tokens; | 84 OwnPtr<CompactHTMLTokenStream> tokens; |
| 85 HTMLTokenizer::State tokenizerState; | |
| 86 }; | 85 }; |
| 87 void didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>); | 86 void didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>); |
| 88 | 87 |
| 89 virtual void appendBytes(const char* bytes, size_t length) OVERRIDE; | 88 virtual void appendBytes(const char* bytes, size_t length) OVERRIDE; |
| 90 virtual void flush() OVERRIDE FINAL; | 89 virtual void flush() OVERRIDE FINAL; |
| 91 | 90 |
| 92 UseCounter* useCounter() { return UseCounter::getFrom(contextForParsingSessi
on()); } | 91 UseCounter* useCounter() { return UseCounter::getFrom(contextForParsingSessi
on()); } |
| 93 | 92 |
| 94 protected: | 93 protected: |
| 95 virtual void insert(const SegmentedString&) OVERRIDE FINAL; | 94 virtual void insert(const SegmentedString&) OVERRIDE FINAL; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 170 |
| 172 bool m_isFragment; | 171 bool m_isFragment; |
| 173 bool m_endWasDelayed; | 172 bool m_endWasDelayed; |
| 174 bool m_haveBackgroundParser; | 173 bool m_haveBackgroundParser; |
| 175 unsigned m_pumpSessionNestingLevel; | 174 unsigned m_pumpSessionNestingLevel; |
| 176 }; | 175 }; |
| 177 | 176 |
| 178 } | 177 } |
| 179 | 178 |
| 180 #endif | 179 #endif |
| OLD | NEW |